diff mercurial/localrepo.py @ 23558:3198aac7a95d

namespaces: add bookmarks to the names data structure This marks the first use of abstracting our different types of named objects (bookmarks, tags, branches, etc.) and upcoming patches will use this to simplify logic.
author Sean Farley <sean.michael.farley@gmail.com>
date Sun, 14 Dec 2014 12:53:50 -0800
parents deabbe7ed54b
children 3c2419e07df5
line wrap: on
line diff
--- a/mercurial/localrepo.py	Sun Dec 14 16:22:24 2014 -0800
+++ b/mercurial/localrepo.py	Sun Dec 14 12:53:50 2014 -0800
@@ -18,6 +18,7 @@
 from lock import release
 import weakref, errno, os, time, inspect
 import branchmap, pathutil
+import namespaces
 propertycache = util.propertycache
 filecache = scmutil.filecache
 
@@ -297,6 +298,9 @@
         # - bookmark changes
         self.filteredrevcache = {}
 
+        # generic mapping between names and nodes
+        self.names = namespaces.namespaces(self)
+
     def close(self):
         pass