# HG changeset patch # User Pierre-Yves David # Date 1434409584 25200 # Node ID a13c18c14ade55515fdee74b9eedc39d047c4d6a # Parent 97528adbf74b30335b67cc21d88046d58fa564af phase: document the replace method This is a minor documentation update to answer a co-worker question. diff -r 97528adbf74b -r a13c18c14ade mercurial/phases.py --- a/mercurial/phases.py Mon Jun 15 16:16:02 2015 -0700 +++ b/mercurial/phases.py Mon Jun 15 16:06:24 2015 -0700 @@ -171,6 +171,7 @@ 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))