Mercurial > hg > mercurial-source
diff mercurial/phases.py @ 23643:b8260abfeb7d
bundlerepo: implement safe phasecache
This patch makes bundlerepo use a subclass of phasecache that will allow phase
boundaries to be moved around, but will never write them to the underlying
repository.
author | Eric Sumner <ericsumner@fb.com> |
---|---|
date | Thu, 18 Dec 2014 11:38:48 -0800 (2014-12-18) |
parents | 936b0ff34346 |
children | 37a92908a382 |
line wrap: on
line diff
--- a/mercurial/phases.py +++ b/mercurial/phases.py @@ -161,7 +161,7 @@ def copy(self): # Shallow copy meant to ensure isolation in # advance/retractboundary(), nothing more. - ph = phasecache(None, None, _load=False) + ph = self.__class__(None, None, _load=False) ph.phaseroots = self.phaseroots[:] ph.dirty = self.dirty ph.opener = self.opener