Show More
@@ -5219,13 +5219,13 b' def phase(ui, repo, *revs, **opts):' | |||||
5219 | # look for specified revision |
|
5219 | # look for specified revision | |
5220 | revs = list(revs) |
|
5220 | revs = list(revs) | |
5221 | revs.extend(opts[b'rev']) |
|
5221 | revs.extend(opts[b'rev']) | |
5222 |
if |
|
5222 | if revs: | |
|
5223 | revs = scmutil.revrange(repo, revs) | |||
|
5224 | else: | |||
5223 | # display both parents as the second parent phase can influence |
|
5225 | # display both parents as the second parent phase can influence | |
5224 | # the phase of a merge commit |
|
5226 | # the phase of a merge commit | |
5225 | revs = [c.rev() for c in repo[None].parents()] |
|
5227 | revs = [c.rev() for c in repo[None].parents()] | |
5226 |
|
5228 | |||
5227 | revs = scmutil.revrange(repo, revs) |
|
|||
5228 |
|
||||
5229 | ret = 0 |
|
5229 | ret = 0 | |
5230 | if targetphase is None: |
|
5230 | if targetphase is None: | |
5231 | # display |
|
5231 | # display |
General Comments 0
You need to be logged in to leave comments.
Login now