Mercurial > hg
comparison mercurial/phases.py @ 17535:63e302be813f
en-us: serialization
author | timeless@mozdev.org |
---|---|
date | Fri, 17 Aug 2012 13:58:19 -0700 |
parents | 97eff00046de |
children | 31f32a96e1e3 |
comparison
equal
deleted
inserted
replaced
17534:c5f7c4b515a4 | 17535:63e302be813f |
---|---|
310 # client phase data. | 310 # client phase data. |
311 keys['publishing'] = 'True' | 311 keys['publishing'] = 'True' |
312 return keys | 312 return keys |
313 | 313 |
314 def pushphase(repo, nhex, oldphasestr, newphasestr): | 314 def pushphase(repo, nhex, oldphasestr, newphasestr): |
315 """List phases root for serialisation over pushkey""" | 315 """List phases root for serialization over pushkey""" |
316 lock = repo.lock() | 316 lock = repo.lock() |
317 try: | 317 try: |
318 currentphase = repo[nhex].phase() | 318 currentphase = repo[nhex].phase() |
319 newphase = abs(int(newphasestr)) # let's avoid negative index surprise | 319 newphase = abs(int(newphasestr)) # let's avoid negative index surprise |
320 oldphase = abs(int(oldphasestr)) # let's avoid negative index surprise | 320 oldphase = abs(int(oldphasestr)) # let's avoid negative index surprise |