Mercurial > public > mercurial-scm > hg
comparison mercurial/scmutil.py @ 38250:d0abd7949ea3
phases: use "published" in the phase movement message
Using "published" seems smoother than "became public" and more in line with the
"phase.publishing" configuration.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Tue, 05 Jun 2018 02:50:25 +0200 |
parents | 1e9c357d3ddf |
children | 79dd61a4554f |
comparison
equal
deleted
inserted
replaced
38249:1e9c357d3ddf | 38250:d0abd7949ea3 |
---|---|
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 local changesets became public\n') | 1500 repo.ui.status(_('%d local changesets published\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) |