mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 15:57:43 +03:00
phase: document the replace method
This is a minor documentation update to answer a co-worker question.
This commit is contained in:
parent
d05c4e4635
commit
9c488819f9
@ -171,6 +171,7 @@ class phasecache(object):
|
||||
return ph
|
||||
|
||||
def replace(self, phcache):
|
||||
"""replace all values in 'self' with content of phcache"""
|
||||
for a in 'phaseroots dirty opener _phaserevs _phasesets'.split():
|
||||
setattr(self, a, getattr(phcache, a))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user