##// END OF EJS Templates
phase: filter out non-draft item in "draft root"...
Boris Feld -
r34817:e2c42f75 default
parent child Browse files
Show More
@@ -502,8 +502,10 b' def listphases(repo):'
502 # Use ordered dictionary so behavior is deterministic.
502 # Use ordered dictionary so behavior is deterministic.
503 keys = util.sortdict()
503 keys = util.sortdict()
504 value = '%i' % draft
504 value = '%i' % draft
505 cl = repo.unfiltered().changelog
505 for root in repo._phasecache.phaseroots[draft]:
506 for root in repo._phasecache.phaseroots[draft]:
506 keys[hex(root)] = value
507 if repo._phasecache.phase(repo, cl.rev(root)) <= draft:
508 keys[hex(root)] = value
507
509
508 if repo.publishing():
510 if repo.publishing():
509 # Add an extra data to let remote know we are a publishing
511 # Add an extra data to let remote know we are a publishing
General Comments 0
You need to be logged in to leave comments. Login now