Mercurial > public > mercurial-scm > hg-stable
diff tests/test-log.t @ 17207:62c56c94c77e
hidden: move hiddenrevs set on the repository
This set is always accessed through the repo for now. Having this set
carried by the changelog make it complicated to:
- initialize it, computing hidden set may involve revset call
- lazy compute it, (1) only the changelog can detect someone access it,
(2) only the repo have enought knowledge to compute it.
In later version I expect he changelog to apply filtering itself and the set to
be carried by changelog again.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Mon, 16 Jul 2012 17:44:46 +0200 |
parents | 6f71167292f2 |
children | 6d218e47cf9b |
line wrap: on
line diff
--- a/tests/test-log.t Fri Jul 13 14:38:49 2012 +0200 +++ b/tests/test-log.t Mon Jul 16 17:44:46 2012 +0200 @@ -1146,7 +1146,7 @@ > def reposetup(ui, repo): > for line in repo.opener('hidden'): > ctx = repo[line.strip()] - > repo.changelog.hiddenrevs.add(ctx.rev()) + > repo.hiddenrevs.add(ctx.rev()) > EOF $ echo '[extensions]' >> $HGRCPATH $ echo "hidden=$HGTMP/testhidden.py" >> $HGRCPATH