Show More
@@ -291,19 +291,18 b' class localrepository(repo.repository):' | |||
|
291 | 291 | tagtypes[k] = tagtype |
|
292 | 292 | |
|
293 | 293 | def tagnodes(): |
|
294 |
|
|
|
294 | seen = set() | |
|
295 | 295 | ret = [] |
|
296 |
for node in |
|
|
296 | for node in self.heads(): | |
|
297 | 297 | c = self[node] |
|
298 | 298 | try: |
|
299 | 299 | fnode = c.filenode('.hgtags') |
|
300 | 300 | except error.LookupError: |
|
301 | 301 | continue |
|
302 | ret.append((node, fnode)) | |
|
303 | if fnode in last: | |
|
304 |
|
|
|
305 | last[fnode] = len(ret) - 1 | |
|
306 | return [item for item in ret if item] | |
|
302 | if fnode not in seen: | |
|
303 | ret.append((node, fnode)) | |
|
304 | seen.add(fnode) | |
|
305 | return reversed(ret) | |
|
307 | 306 | |
|
308 | 307 | # read the tags file from each head, ending with the tip |
|
309 | 308 | f = None |
General Comments 0
You need to be logged in to leave comments.
Login now