Mercurial > public > mercurial-scm > hg-stable
diff mercurial/statichttprepo.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 | 72319005f5fb |
children | 3c2419e07df5 |
line wrap: on
line diff
--- a/mercurial/statichttprepo.py Sun Dec 14 16:22:24 2014 -0800 +++ b/mercurial/statichttprepo.py Sun Dec 14 12:53:50 2014 -0800 @@ -8,7 +8,7 @@ # GNU General Public License version 2 or any later version. from i18n import _ -import changelog, byterange, url, error +import changelog, byterange, url, error, namespaces import localrepo, manifest, util, scmutil, store import urllib, urllib2, errno, os @@ -106,6 +106,8 @@ self.vfs = self.opener self._phasedefaults = [] + self.names = namespaces.namespaces(self) + try: requirements = scmutil.readrequires(self.opener, self.supported) except IOError, inst: