D4155: changegroup: restore original behavior of _nextclrevtolocalrev

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Thu Aug 9 14:15:24 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG4f06e0360bad: changegroup: restore original behavior of _nextclrevtolocalrev (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4155?vs=10062&id=10138

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

AFFECTED FILES
  mercurial/changegroup.py

CHANGE DETAILS

diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py
--- a/mercurial/changegroup.py
+++ b/mercurial/changegroup.py
@@ -604,9 +604,9 @@
     def _close(self):
         # Ellipses serving mode.
         self._clrevtolocalrev.clear()
-        if self._nextclrevtolocalrev:
+        if self._nextclrevtolocalrev is not None:
             self._clrevtolocalrev = self._nextclrevtolocalrev
-            self._nextclrevtolocalrev.clear()
+            self._nextclrevtolocalrev = None
         self._changelogdone = True
 
         return closechunk()



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


More information about the Mercurial-devel mailing list