Skip to content
Snippets Groups Projects
Commit 667df8f4 authored by Pierre-Yves David's avatar Pierre-Yves David
Browse files

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.
parent 21b3513d
No related branches found
No related tags found
No related merge requests found
......@@ -127,6 +127,7 @@
self._generaldelta = False
self._realopener = opener
self._delayed = False
self._delaybuf = []
self._divert = False
self.filteredrevs = frozenset()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment