Show More
@@ -190,8 +190,8 b' proc getcommits {rargs} {' | |||
|
190 | 190 | } |
|
191 | 191 | } |
|
192 | 192 | if [catch { |
|
193 |
set parse_args [concat |
|
|
194 |
set parse_temp [eval exec {$env(HG)} --config ui.report_untrusted=false |
|
|
193 | set parse_args [concat tip $revargs] | |
|
194 | set parse_temp [eval exec {$env(HG)} --config ui.report_untrusted=false log --template '{node}\n' $parse_args] | |
|
195 | 195 | regsub -all "\r\n" $parse_temp "\n" parse_temp |
|
196 | 196 | set parsed_args [split $parse_temp "\n"] |
|
197 | 197 | } err] { |
@@ -301,22 +301,6 b' def revtree(ui, args, repo, full="tree",' | |||
|
301 | 301 | break |
|
302 | 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 | 304 | # git rev-list tries to order things by date, and has the ability to stop |
|
321 | 305 | # at a given commit without walking the whole repo. TODO add the stop |
|
322 | 306 | # parameter |
General Comments 0
You need to be logged in to leave comments.
Login now