##// END OF EJS Templates
phase: accept old style revision specification
Pierre-Yves David -
r16024:7c967c4a stable
parent child Browse files
Show More
@@ -4226,17 +4226,20 b' def phase(ui, repo, *revs, **opts):'
4226 4226 if not revs:
4227 4227 raise util.Abort(_('no revisions specified'))
4228 4228
4229 revs = scmutil.revrange(repo, revs)
4230
4229 4231 lock = None
4230 4232 ret = 0
4231 4233 if targetphase is None:
4232 4234 # display
4233 for ctx in repo.set('%lr', revs):
4235 for r in revs:
4236 ctx = repo[r]
4234 4237 ui.write('%i: %s\n' % (ctx.rev(), ctx.phasestr()))
4235 4238 else:
4236 4239 lock = repo.lock()
4237 4240 try:
4238 4241 # set phase
4239 nodes = [ctx.node() for ctx in repo.set('%lr', revs)]
4242 nodes = [ctx.node() for ctx in repo.set('%ld', revs)]
4240 4243 if not nodes:
4241 4244 raise util.Abort(_('empty revision set'))
4242 4245 olddata = repo._phaserev[:]
General Comments 0
You need to be logged in to leave comments. Login now