[PATCH] localrepo: reset _phasesdirty flag after writing

Matt Mackall mpm at selenic.com
Thu Feb 16 14:28:06 CST 2012


On Wed, 2012-02-15 at 23:49 +0200, Idan Kamara wrote:
> # HG changeset patch
> # User Idan Kamara <idankk86 at gmail.com>
> # Date 1329342555 -7200
> # Branch stable
> # Node ID ca5e559a338e3419f96bba794e997b2ccd91e3fe
> # Parent  01ca8708e42c23c9b9c977d4b9ad55870df3337f
> localrepo: reset _phasesdirty flag after writing

Decided this belonged on stable, queued.

> diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
> --- a/mercurial/localrepo.py
> +++ b/mercurial/localrepo.py
> @@ -949,6 +949,7 @@
>              self.store.write()
>              if self._dirtyphases:
>                  phases.writeroots(self)
> +                self._dirtyphases = False
>              for k, ce in self._filecache.items():
>                  if k == 'dirstate':
>                      continue
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel


-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list