Mercurial > hg
comparison mercurial/phases.py @ 39272:160bd45cc6af
phase: explicitly exclude secret phase and above
The comment explicitly mention the secret phase so we should as well use that in
the code.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Tue, 05 Jun 2018 20:47:52 +0200 |
parents | fd7376fa60e7 |
children | b17d27ea61fb |
comparison
equal
deleted
inserted
replaced
39271:fd7376fa60e7 | 39272:160bd45cc6af |
---|---|
584 cl = repo.changelog | 584 cl = repo.changelog |
585 | 585 |
586 headsbyphase = [[] for i in allphases] | 586 headsbyphase = [[] for i in allphases] |
587 # No need to keep track of secret phase; any heads in the subset that | 587 # No need to keep track of secret phase; any heads in the subset that |
588 # are not mentioned are implicitly secret. | 588 # are not mentioned are implicitly secret. |
589 for phase in allphases[:-1]: | 589 for phase in allphases[:secret]: |
590 revset = "heads(%%ln & %s())" % phasenames[phase] | 590 revset = "heads(%%ln & %s())" % phasenames[phase] |
591 headsbyphase[phase] = [cl.node(r) for r in repo.revs(revset, subset)] | 591 headsbyphase[phase] = [cl.node(r) for r in repo.revs(revset, subset)] |
592 return headsbyphase | 592 return headsbyphase |
593 | 593 |
594 def updatephases(repo, trgetter, headsbyphase): | 594 def updatephases(repo, trgetter, headsbyphase): |