Patchwork D4136: changegroup: record changelogdone after fully consuming its data

login
register
mail settings
Submitter phabricator
Date Aug. 7, 2018, 5:26 p.m.
Message ID <4a01a3c50ff9729c462306ae13a47e02@localhost.localdomain>
Download mbox | patch
Permalink /patch/33410/
State Not Applicable
Headers show

Comments

phabricator - Aug. 7, 2018, 5:26 p.m.
indygreg updated this revision to Diff 10063.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4136?vs=10007&id=10063

REVISION DETAIL
  https://phab.mercurial-scm.org/D4136

AFFECTED FILES
  mercurial/changegroup.py

CHANGE DETAILS




To: indygreg, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py
--- a/mercurial/changegroup.py
+++ b/mercurial/changegroup.py
@@ -607,7 +607,6 @@ 
         if self._nextclrevtolocalrev is not None:
             self._clrevtolocalrev = self._nextclrevtolocalrev
             self._nextclrevtolocalrev = None
-        self._changelogdone = True
 
         return closechunk()
 
@@ -730,6 +729,8 @@ 
 
         self._verbosenote(_('%8.i (changelog)\n') % size)
 
+        self._changelogdone = True
+
         clrevorder = clstate['clrevorder']
         mfs = clstate['mfs']
         changedfiles = clstate['changedfiles']