comparison mercurial/scmutil.py @ 38249:1e9c357d3ddf

phase: clarify the message about movement on command changeset The current message is a bit generic. Since we only print it for phase movement on changeset already common before the pull, we add "local" to the message in and attempt to clarify what changeset the phase movement affected.
author Boris Feld <boris.feld@octobus.net>
date Tue, 05 Jun 2018 01:49:52 +0200
parents eb9835014d20
children d0abd7949ea3
comparison
equal deleted inserted replaced
38248:99ab72b867b7 38249:1e9c357d3ddf
1495 rev for rev, (old, new) in phasetracking.iteritems() 1495 rev for rev, (old, new) in phasetracking.iteritems()
1496 if new == phases.public and rev not in newrevs 1496 if new == phases.public and rev not in newrevs
1497 ] 1497 ]
1498 if not published: 1498 if not published:
1499 return 1499 return
1500 repo.ui.status(_('%d changesets became public\n') 1500 repo.ui.status(_('%d local changesets became public\n')
1501 % len(published)) 1501 % len(published))
1502 1502
1503 def nodesummaries(repo, nodes, maxnumnodes=4): 1503 def nodesummaries(repo, nodes, maxnumnodes=4):
1504 if len(nodes) <= maxnumnodes or repo.ui.verbose: 1504 if len(nodes) <= maxnumnodes or repo.ui.verbose:
1505 return ' '.join(short(h) for h in nodes) 1505 return ' '.join(short(h) for h in nodes)