Mercurial > hg
changeset 16024:7c967c4a6144 stable
phase: accept old style revision specification
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Mon, 30 Jan 2012 18:06:57 +0100 |
parents | 90f8b8dd0326 |
children | 6697498bdd83 |
files | mercurial/commands.py |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Mon Jan 30 11:32:09 2012 -0600 +++ b/mercurial/commands.py Mon Jan 30 18:06:57 2012 +0100 @@ -4226,17 +4226,20 @@ if not revs: raise util.Abort(_('no revisions specified')) + revs = scmutil.revrange(repo, revs) + lock = None ret = 0 if targetphase is None: # display - for ctx in repo.set('%lr', revs): + for r in revs: + ctx = repo[r] ui.write('%i: %s\n' % (ctx.rev(), ctx.phasestr())) else: lock = repo.lock() try: # set phase - nodes = [ctx.node() for ctx in repo.set('%lr', revs)] + nodes = [ctx.node() for ctx in repo.set('%ld', revs)] if not nodes: raise util.Abort(_('empty revision set')) olddata = repo._phaserev[:]