##// END OF EJS Templates
tags: drop nested function
Matt Mackall -
r8854:980f5b7c default
parent child Browse files
Show More
@@ -290,10 +290,9 b' class localrepository(repo.repository):'
290 globaltags[k] = an, ah
290 globaltags[k] = an, ah
291 tagtypes[k] = tagtype
291 tagtypes[k] = tagtype
292
292
293 def tagctxs():
294 seen = set()
293 seen = set()
295 f = None
294 f = None
296 ret = []
295 ctxs = []
297 for node in self.heads():
296 for node in self.heads():
298 try:
297 try:
299 fnode = self[node].filenode('.hgtags')
298 fnode = self[node].filenode('.hgtags')
@@ -305,11 +304,10 b' class localrepository(repo.repository):'
305 f = self.filectx('.hgtags', fileid=fnode)
304 f = self.filectx('.hgtags', fileid=fnode)
306 else:
305 else:
307 f = f.filectx(fnode)
306 f = f.filectx(fnode)
308 ret.append(f)
307 ctxs.append(f)
309 return reversed(ret)
310
308
311 # read the tags file from each head, ending with the tip
309 # read the tags file from each head, ending with the tip
312 for f in tagctxs():
310 for f in reversed(ctxs):
313 readtags(f.data().splitlines(), f, "global")
311 readtags(f.data().splitlines(), f, "global")
314
312
315 try:
313 try:
General Comments 0
You need to be logged in to leave comments. Login now