diff options
author | Papoteur <papoteur@mageialinux-online.org> | 2015-12-22 22:19:26 +0100 |
---|---|---|
committer | Papoteur <papoteur@mageialinux-online.org> | 2015-12-22 22:19:26 +0100 |
commit | 82844dbd73543888c7e30389481c3074c1bd6c54 (patch) | |
tree | 8129545aaf05c362dd1d9973436b6969a3f02dfe | |
parent | ad1e0dfb950bb7e6a35b58e452eebefbef55fb57 (diff) | |
download | mgarepo-82844dbd73543888c7e30389481c3074c1bd6c54.tar mgarepo-82844dbd73543888c7e30389481c3074c1bd6c54.tar.gz mgarepo-82844dbd73543888c7e30389481c3074c1bd6c54.tar.bz2 mgarepo-82844dbd73543888c7e30389481c3074c1bd6c54.tar.xz mgarepo-82844dbd73543888c7e30389481c3074c1bd6c54.zip |
add -s option for log command to get releases log (enhancement mga#12948).
-rw-r--r-- | MgaRepo/commands/log.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/MgaRepo/commands/log.py b/MgaRepo/commands/log.py index 69058b9..2181125 100644 --- a/MgaRepo/commands/log.py +++ b/MgaRepo/commands/log.py @@ -18,6 +18,7 @@ Options: -l LIMIT Limit of log entries to show -r REV Show a specific revision -M Do not use the mirror (use the main repository) + -s Show release path Examples: mgarepo log mutt @@ -33,6 +34,8 @@ def parse_options(): parser.add_option("-r", dest="revision", type="string", default=None) parser.add_option("-M", "--no-mirror", action="callback", callback=disable_mirror) + parser.add_option("-s", dest="releases", action="store_true", + default=False) opts, args = parser.parse_args() if len(args): opts.pkgdirurl = package_url(args[0]) @@ -40,9 +43,9 @@ def parse_options(): parser.error("log requires a package name") return opts -def svn_log(pkgdirurl, verbose=False, limit=None, revision=None): +def svn_log(pkgdirurl, verbose=False, limit=None, revision=None, releases=None): mirror.info(pkgdirurl) - url = checkout_url(pkgdirurl) + url = checkout_url(pkgdirurl, releases=releases) svncmd = config.get("global", "svn-command", "svn") args = [svncmd, "log", url] if verbose: |