mercurial/commands.py
changeset 48115 b067d22dc6ad
parent 48032 12966768595a
child 48116 5ced12cfa41b
equal deleted inserted replaced
48114:73bcfde21fc2 48115:b067d22dc6ad
  5217             targetphase = idx
  5217             targetphase = idx
  5218 
  5218 
  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 not revs:
  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 
       
  5227     revs = scmutil.revrange(repo, revs)
       
  5228 
  5228 
  5229     ret = 0
  5229     ret = 0
  5230     if targetphase is None:
  5230     if targetphase is None:
  5231         # display
  5231         # display
  5232         for r in revs:
  5232         for r in revs: