[PATCH 1 of 9 RFC] localrepo: add an unused dictionary for arbitrary markers

Sean Farley sean.michael.farley at gmail.com
Sun Mar 30 18:08:59 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 bd7ad5e093455aefd73e1c66ad1ea260eb3051a3
# Parent  8a6a86c9a5b58ccc020de1ff0429e72dfa5599fc
localrepo: add an unused dictionary for arbitrary markers

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -269,10 +269,13 @@ class localrepository(object):
         # - new obsolescence marker,
         # - working directory parent change,
         # - bookmark changes
         self.filteredrevcache = {}
 
+        # dictionary of arbitrary markers, e.g. _markers["foo"]["bar] = node
+        self._markers = {}
+
     def close(self):
         pass
 
     def _restrictcapabilities(self, caps):
         return caps


More information about the Mercurial-devel mailing list