[PATCH 01 of 12] localrepo: add an unused dictionary for arbitrary labels

Sean Farley sean.michael.farley at gmail.com
Mon Aug 18 16:17:57 CDT 2014


# HG changeset patch
# User Sean Farley <sean.michael.farley at gmail.com>
# Date 1396216512 18000
#      Sun Mar 30 16:55:12 2014 -0500
# Node ID ed72c4bcbbbcab7f75f6b86fee6c67aa45590e7c
# Parent  8dda6f6ff564d8fe6ac7b8ce4c74eb9bfb5de14a
localrepo: add an unused dictionary for arbitrary labels

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -301,10 +301,13 @@ class localrepository(object):
         # - new obsolescence marker,
         # - working directory parent change,
         # - bookmark changes
         self.filteredrevcache = {}
 
+        # dictionary of arbitrary labels, e.g. _labels["foo"]["bar] = node
+        self._labels = {}
+
     def close(self):
         pass
 
     def _restrictcapabilities(self, caps):
         # bundle2 is not ready for prime time, drop it unless explicitly


More information about the Mercurial-devel mailing list