mercurial/changegroup.py
changeset 38887 75d6139e69f9
parent 38886 66cf046ef60f
child 38888 c9315bc578bc
--- a/mercurial/changegroup.py	Thu Aug 02 09:53:22 2018 -0700
+++ b/mercurial/changegroup.py	Thu Aug 02 09:52:01 2018 -0700
@@ -544,6 +544,13 @@
             self._verbosenote = lambda s: None
 
     def close(self):
+        # Ellipses serving mode.
+        getattr(self, 'clrev_to_localrev', {}).clear()
+        if getattr(self, 'next_clrev_to_localrev', {}):
+            self.clrev_to_localrev = self.next_clrev_to_localrev
+            del self.next_clrev_to_localrev
+        self.changelog_done = True
+
         return closechunk()
 
     def fileheader(self, fname):