##// END OF EJS Templates
hgk: remove no longer needed debug-rev-parse command
Andrew Shadura -
r24515:c1fe7111 default
parent child Browse files
Show More
@@ -190,8 +190,8 b' proc getcommits {rargs} {'
190 }
190 }
191 }
191 }
192 if [catch {
192 if [catch {
193 set parse_args [concat --default HEAD $revargs]
193 set parse_args [concat tip $revargs]
194 set parse_temp [eval exec {$env(HG)} --config ui.report_untrusted=false debug-rev-parse $parse_args]
194 set parse_temp [eval exec {$env(HG)} --config ui.report_untrusted=false log --template '{node}\n' $parse_args]
195 regsub -all "\r\n" $parse_temp "\n" parse_temp
195 regsub -all "\r\n" $parse_temp "\n" parse_temp
196 set parsed_args [split $parse_temp "\n"]
196 set parsed_args [split $parse_temp "\n"]
197 } err] {
197 } err] {
@@ -301,22 +301,6 b' def revtree(ui, args, repo, full="tree",'
301 break
301 break
302 count += 1
302 count += 1
303
303
304 @command('debug-rev-parse',
305 [('', 'default', '', _('ignored'))],
306 _('REV'))
307 def revparse(ui, repo, *revs, **opts):
308 """parse given revisions"""
309 def revstr(rev):
310 if rev == 'HEAD':
311 rev = 'tip'
312 return revlog.hex(repo.lookup(rev))
313
314 for r in revs:
315 revrange = r.split(':', 1)
316 ui.write('%s\n' % revstr(revrange[0]))
317 if len(revrange) == 2:
318 ui.write('^%s\n' % revstr(revrange[1]))
319
320 # git rev-list tries to order things by date, and has the ability to stop
304 # git rev-list tries to order things by date, and has the ability to stop
321 # at a given commit without walking the whole repo. TODO add the stop
305 # at a given commit without walking the whole repo. TODO add the stop
322 # parameter
306 # parameter
General Comments 0
You need to be logged in to leave comments. Login now