Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/debugcommands.py @ 35942:2da4144e6716
py3: format revision number as '%d' in debugrevspec
Now "hg debugrevspec" works on Python 3.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 27 Jan 2018 17:13:51 +0900 |
parents | c8e2d6ed1f9e |
children | 5f029d03cf71 |
comparison
equal
deleted
inserted
replaced
35941:f0827211eb1f | 35942:2da4144e6716 |
---|---|
2205 if opts['show_set'] or (opts['show_set'] is None and ui.verbose): | 2205 if opts['show_set'] or (opts['show_set'] is None and ui.verbose): |
2206 ui.write(("* set:\n"), smartset.prettyformat(revs), "\n") | 2206 ui.write(("* set:\n"), smartset.prettyformat(revs), "\n") |
2207 if not opts['show_revs']: | 2207 if not opts['show_revs']: |
2208 return | 2208 return |
2209 for c in revs: | 2209 for c in revs: |
2210 ui.write("%s\n" % c) | 2210 ui.write("%d\n" % c) |
2211 | 2211 |
2212 @command('debugsetparents', [], _('REV1 [REV2]')) | 2212 @command('debugsetparents', [], _('REV1 [REV2]')) |
2213 def debugsetparents(ui, repo, rev1, rev2=None): | 2213 def debugsetparents(ui, repo, rev1, rev2=None): |
2214 """manually set the parents of the current working directory | 2214 """manually set the parents of the current working directory |
2215 | 2215 |