# HG changeset patch # User Pierre-Yves David # Date 1400619308 25200 # Node ID 667df8f478d14335e65b4cf2395709666c2acf61 # Parent 21b3513d43e47fbb90fe717f23a3367031ea6578 changelog: ensure changelog._delaybuf is initialized The ``localrepo.writepending`` method is using the ``changelog._delaybuff`` attribute to know if it has anything to do. However the ``changelog._delaybuff`` is never initialised at ``__init__`` time. This can lead to crash when using bundle2 for part that never touch the changelog. We simply initialize it to its base value. This is scheduled for stable as it both trivial and blocking for experimenting with bundle2. diff -r 21b3513d43e4 -r 667df8f478d1 mercurial/changelog.py --- a/mercurial/changelog.py Thu May 22 22:05:26 2014 +0900 +++ b/mercurial/changelog.py Tue May 20 13:55:08 2014 -0700 @@ -127,6 +127,7 @@ self._generaldelta = False self._realopener = opener self._delayed = False + self._delaybuf = [] self._divert = False self.filteredrevs = frozenset()