##// END OF EJS Templates
bookmarks: merge lookup into localrepo
Matt Mackall -
r13363:999f616b default
parent child Browse files
Show More
@@ -134,11 +134,6 b' def reposetup(ui, repo):'
134 return
134 return
135
135
136 class bookmark_repo(repo.__class__):
136 class bookmark_repo(repo.__class__):
137 def lookup(self, key):
138 if key in self._bookmarks:
139 key = self._bookmarks[key]
140 return super(bookmark_repo, self).lookup(key)
141
142 def pull(self, remote, heads=None, force=False):
137 def pull(self, remote, heads=None, force=False):
143 result = super(bookmark_repo, self).pull(remote, heads, force)
138 result = super(bookmark_repo, self).pull(remote, heads, force)
144
139
@@ -520,6 +520,8 b' class localrepository(repo.repository):'
520 n = self.changelog._match(key)
520 n = self.changelog._match(key)
521 if n:
521 if n:
522 return n
522 return n
523 if key in self._bookmarks:
524 return self._bookmarks[key]
523 if key in self.tags():
525 if key in self.tags():
524 return self.tags()[key]
526 return self.tags()[key]
525 if key in self.branchtags():
527 if key in self.branchtags():
General Comments 0
You need to be logged in to leave comments. Login now