Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 18253:a32255dee859
hidden: drop of the repo.hiddenrevs property
It does not have any user left
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Thu, 03 Jan 2013 18:52:59 +0100 |
parents | e3504d7ff760 |
children | 753acee7d6dd |
comparison
equal
deleted
inserted
replaced
18252:3f1552c6bf71 | 18253:a32255dee859 |
---|---|
347 if store and not obsolete._enabled: | 347 if store and not obsolete._enabled: |
348 # message is rare enough to not be translated | 348 # message is rare enough to not be translated |
349 msg = 'obsolete feature not enabled but %i markers found!\n' | 349 msg = 'obsolete feature not enabled but %i markers found!\n' |
350 self.ui.warn(msg % len(list(store))) | 350 self.ui.warn(msg % len(list(store))) |
351 return store | 351 return store |
352 | |
353 @property | |
354 @unfiltered | |
355 def hiddenrevs(self): | |
356 """hiddenrevs: revs that should be hidden by command and tools | |
357 | |
358 This set is carried on the repo to ease initialization and lazy | |
359 loading; it'll probably move back to changelog for efficiency and | |
360 consistency reasons. | |
361 | |
362 Note that the hiddenrevs will needs invalidations when | |
363 - a new changesets is added (possible unstable above extinct) | |
364 - a new obsolete marker is added (possible new extinct changeset) | |
365 | |
366 hidden changesets cannot have non-hidden descendants | |
367 """ | |
368 return repoview.filteredrevs(self, 'hidden') | |
369 | 352 |
370 @storecache('00changelog.i') | 353 @storecache('00changelog.i') |
371 def changelog(self): | 354 def changelog(self): |
372 c = changelog.changelog(self.sopener) | 355 c = changelog.changelog(self.sopener) |
373 if 'HG_PENDING' in os.environ: | 356 if 'HG_PENDING' in os.environ: |