##// END OF EJS Templates
obsolete: mark unreachable extinct changesets as hidden...
Pierre-Yves.David@ens-lyon.org -
r17208:8018f234 default
parent child Browse files
Show More
@@ -131,12 +131,6 b' class localrepository(object):'
131 # Callback are in the form: func(repo, roots) --> processed root.
131 # Callback are in the form: func(repo, roots) --> processed root.
132 # This list it to be filled by extension during repo setup
132 # This list it to be filled by extension during repo setup
133 self._phasedefaults = []
133 self._phasedefaults = []
134 # hiddenrevs: revs that should be hidden by command and tools
135 #
136 # This set is carried on the repo to ease initialisation and lazy
137 # loading it'll probably move back to changelog for efficienty and
138 # consistency reason
139 self.hiddenrevs = set()
140 try:
134 try:
141 self.ui.readconfig(self.join("hgrc"), self.root)
135 self.ui.readconfig(self.join("hgrc"), self.root)
142 extensions.loadall(self.ui)
136 extensions.loadall(self.ui)
@@ -297,6 +291,25 b' class localrepository(object):'
297 store = obsolete.obsstore(self.sopener)
291 store = obsolete.obsstore(self.sopener)
298 return store
292 return store
299
293
294 @propertycache
295 def hiddenrevs(self):
296 """hiddenrevs: revs that should be hidden by command and tools
297
298 This set is carried on the repo to ease initialisation and lazy
299 loading it'll probably move back to changelog for efficienty and
300 consistency reason
301
302 Note that the hiddenrevs will needs invalidations when
303 - a new changesets is added (possible unstable above extinct)
304 - a new obsolete marker is added (possible new extinct changeset)
305 """
306 hidden = set()
307 if self.obsstore:
308 ### hide extinct changeset that are not accessible by any mean
309 hiddenquery = 'extinct() - ::(. + bookmark() + tagged())'
310 hidden.update(self.revs(hiddenquery))
311 return hidden
312
300 @storecache('00changelog.i')
313 @storecache('00changelog.i')
301 def changelog(self):
314 def changelog(self):
302 c = changelog.changelog(self.sopener)
315 c = changelog.changelog(self.sopener)
@@ -76,23 +76,6 b' Check that graphlog detect that a change'
76 | date: Thu Jan 01 00:00:00 1970 +0000
76 | date: Thu Jan 01 00:00:00 1970 +0000
77 | summary: add new_3_c
77 | summary: add new_3_c
78 |
78 |
79 | x changeset: 4:ca819180edb9
80 |/ parent: 1:7c3bad9141dc
81 | user: test
82 | date: Thu Jan 01 00:00:00 1970 +0000
83 | summary: add new_2_c
84 |
85 | x changeset: 3:cdbce2fbb163
86 |/ parent: 1:7c3bad9141dc
87 | user: test
88 | date: Thu Jan 01 00:00:00 1970 +0000
89 | summary: add new_c
90 |
91 | x changeset: 2:245bde4270cd
92 |/ user: test
93 | date: Thu Jan 01 00:00:00 1970 +0000
94 | summary: add original_c
95 |
96 o changeset: 1:7c3bad9141dc
79 o changeset: 1:7c3bad9141dc
97 | user: test
80 | user: test
98 | date: Thu Jan 01 00:00:00 1970 +0000
81 | date: Thu Jan 01 00:00:00 1970 +0000
@@ -115,18 +98,6 b' Check that public changeset are not acco'
115 | date: Thu Jan 01 00:00:00 1970 +0000
98 | date: Thu Jan 01 00:00:00 1970 +0000
116 | summary: add new_3_c
99 | summary: add new_3_c
117 |
100 |
118 | x changeset: 4:ca819180edb9
119 |/ parent: 1:7c3bad9141dc
120 | user: test
121 | date: Thu Jan 01 00:00:00 1970 +0000
122 | summary: add new_2_c
123 |
124 | x changeset: 3:cdbce2fbb163
125 |/ parent: 1:7c3bad9141dc
126 | user: test
127 | date: Thu Jan 01 00:00:00 1970 +0000
128 | summary: add new_c
129 |
130 | o changeset: 2:245bde4270cd
101 | o changeset: 2:245bde4270cd
131 |/ user: test
102 |/ user: test
132 | date: Thu Jan 01 00:00:00 1970 +0000
103 | date: Thu Jan 01 00:00:00 1970 +0000
General Comments 0
You need to be logged in to leave comments. Login now