##// END OF EJS Templates
phases: emit phases to pushkey protocol in deterministic order...
Gregory Szorc -
r32000:511a6266 default
parent child Browse files
Show More
@@ -116,6 +116,7 b' from . import ('
116 error,
116 error,
117 smartset,
117 smartset,
118 txnutil,
118 txnutil,
119 util,
119 )
120 )
120
121
121 allphases = public, draft, secret = range(3)
122 allphases = public, draft, secret = range(3)
@@ -386,7 +387,8 b' def retractboundary(repo, tr, targetphas'
386
387
387 def listphases(repo):
388 def listphases(repo):
388 """List phases root for serialization over pushkey"""
389 """List phases root for serialization over pushkey"""
389 keys = {}
390 # Use ordered dictionary so behavior is deterministic.
391 keys = util.sortdict()
390 value = '%i' % draft
392 value = '%i' % draft
391 for root in repo._phasecache.phaseroots[draft]:
393 for root in repo._phasecache.phaseroots[draft]:
392 keys[hex(root)] = value
394 keys[hex(root)] = value
General Comments 0
You need to be logged in to leave comments. Login now