phase: document the replace method

This is a minor documentation update to answer a co-worker question.
This commit is contained in:
Pierre-Yves David 2015-06-15 16:06:24 -07:00
parent d05c4e4635
commit 9c488819f9

View File

@ -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))