changeset 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 62fb03e0d990
files contrib/hgk hgext/hgk.py
diffstat 2 files changed, 2 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/hgk	Sat Mar 28 21:24:57 2015 +0100
+++ b/contrib/hgk	Sat Mar 28 21:33:47 2015 +0100
@@ -190,8 +190,8 @@
 	}
     }
     if [catch {
-	set parse_args [concat --default HEAD $revargs]
-	set parse_temp [eval exec {$env(HG)} --config ui.report_untrusted=false debug-rev-parse $parse_args]
+	set parse_args [concat tip $revargs]
+	set parse_temp [eval exec {$env(HG)} --config ui.report_untrusted=false log --template '{node}\n' $parse_args]
 	regsub -all "\r\n" $parse_temp "\n" parse_temp
 	set parsed_args [split $parse_temp "\n"]
     } err] {
--- 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