Mercurial > public > mercurial-scm > hg-stable
diff mercurial/phases.py @ 23631: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 |
parents | 936b0ff34346 |
children | 37a92908a382 |
line wrap: on
line diff
--- a/mercurial/phases.py Thu Dec 18 11:30:10 2014 -0800 +++ b/mercurial/phases.py Thu Dec 18 11:38:48 2014 -0800 @@ -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