Mercurial > hg
diff hgext/hgk.py @ 24515:c1fe7111b6bb
hgk: remove no longer needed debug-rev-parse command
author | Andrew Shadura <andrew@shadura.me> |
---|---|
date | Sat, 28 Mar 2015 21:33:47 +0100 |
parents | d01c767d8753 |
children | c2c1ce5e6db1 |
line wrap: on
line diff
--- a/hgext/hgk.py Sat Mar 28 21:24:57 2015 +0100 +++ b/hgext/hgk.py Sat Mar 28 21:33:47 2015 +0100 @@ -301,22 +301,6 @@ break count += 1 -@command('debug-rev-parse', - [('', 'default', '', _('ignored'))], - _('REV')) -def revparse(ui, repo, *revs, **opts): - """parse given revisions""" - def revstr(rev): - if rev == 'HEAD': - rev = 'tip' - return revlog.hex(repo.lookup(rev)) - - for r in revs: - revrange = r.split(':', 1) - ui.write('%s\n' % revstr(revrange[0])) - if len(revrange) == 2: - ui.write('^%s\n' % revstr(revrange[1])) - # git rev-list tries to order things by date, and has the ability to stop # at a given commit without walking the whole repo. TODO add the stop # parameter