Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 17993:1a6f8820eb71
clfilter: introduce an "unfiltered" method on localrepo
This commit is part of the changelog level filtering effort. It returns
the main "unfiltered" version of a repo-like object. For localrepo this
means the same localrepo object. But this method will be overwritten
by the filtered versions of a repository to return the core unfiltered
version of the repo.
Introducing this simple method first allows later commits to prepare
for the use of a filtered version of a repository.
A new repo method is added because a lot of users may call it. At the
end of this series of commits, about 40 calls exist in core and hgext.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Wed, 21 Nov 2012 00:36:29 +0100 |
parents | 7f5dab94e48c |
children | 8899bf48116a |
comparison
equal
deleted
inserted
replaced
17992:c95210b82c0e | 17993:1a6f8820eb71 |
---|---|
260 parts.pop() | 260 parts.pop() |
261 return False | 261 return False |
262 | 262 |
263 def peer(self): | 263 def peer(self): |
264 return localpeer(self) # not cached to avoid reference cycle | 264 return localpeer(self) # not cached to avoid reference cycle |
265 | |
266 def unfiltered(self): | |
267 """Return unfiltered version of the repository | |
268 | |
269 Intended to be ovewritten by filtered repo.""" | |
270 return self | |
265 | 271 |
266 @filecache('bookmarks') | 272 @filecache('bookmarks') |
267 def _bookmarks(self): | 273 def _bookmarks(self): |
268 return bookmarks.bmstore(self) | 274 return bookmarks.bmstore(self) |
269 | 275 |