##// 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 290 globaltags[k] = an, ah
291 291 tagtypes[k] = tagtype
292 292
293 def tagctxs():
294 293 seen = set()
295 294 f = None
296 ret = []
295 ctxs = []
297 296 for node in self.heads():
298 297 try:
299 298 fnode = self[node].filenode('.hgtags')
@@ -305,11 +304,10 b' class localrepository(repo.repository):'
305 304 f = self.filectx('.hgtags', fileid=fnode)
306 305 else:
307 306 f = f.filectx(fnode)
308 ret.append(f)
309 return reversed(ret)
307 ctxs.append(f)
310 308
311 309 # read the tags file from each head, ending with the tip
312 for f in tagctxs():
310 for f in reversed(ctxs):
313 311 readtags(f.data().splitlines(), f, "global")
314 312
315 313 try:
General Comments 0
You need to be logged in to leave comments. Login now