diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-02-23 07:04:12 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-02-23 07:04:12 +0000 |
commit | 494c2b50078f901bffa9c99bfcea90d48e722c07 (patch) | |
tree | 4b0a12a3164e39e239d079c309daca154309b8da | |
parent | 35f075d8ad7d0ff190bcfec42e7ea061a8255e92 (diff) | |
download | redmine-494c2b50078f901bffa9c99bfcea90d48e722c07.tar.gz redmine-494c2b50078f901bffa9c99bfcea90d48e722c07.zip |
scm: mercurial: annotate path encoding support in helper (#2664).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4930 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | lib/redmine/scm/adapters/mercurial/redminehelper.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/redmine/scm/adapters/mercurial/redminehelper.py b/lib/redmine/scm/adapters/mercurial/redminehelper.py index 9d498dfcc..fa36dfe47 100644 --- a/lib/redmine/scm/adapters/mercurial/redminehelper.py +++ b/lib/redmine/scm/adapters/mercurial/redminehelper.py @@ -119,6 +119,9 @@ def _manifest(ui, repo, path, rev): ui.write('</manifest>\n') +def rhannotate(ui, repo, *pats, **opts): + return commands.annotate(ui, repo, *map(urllib.unquote, pats), **opts) + def rhcat(ui, repo, file1, *pats, **opts): return commands.cat(ui, repo, urllib.unquote(file1), *map(urllib.unquote, pats), **opts) @@ -159,6 +162,13 @@ def rhsummary(ui, repo, **opts): # This extension should be compatible with Mercurial 0.9.5. # Note that Mercurial 0.9.5 doesn't have extensions.wrapfunction(). cmdtable = { + 'rhannotate': (rhannotate, + [('r', 'rev', '', 'revision'), + ('u', 'user', None, 'list the author (long with -v)'), + ('n', 'number', None, 'list the revision number (default)'), + ('c', 'changeset', None, 'list the changeset'), + ], + 'hg rhannotate [-r REV] [-f] [-a] [-u] [-d] [-n] [-c] [-l] FILE...'), 'rhcat': (rhcat, [('r', 'rev', '', 'revision')], 'hg rhcat ([-r REV] ...) FILE...'), |