##// END OF EJS Templates
remove unnecessary list comprehensions...
Martin Geisler -
r13412:58c497d0 default
parent child Browse files
Show More
@@ -722,7 +722,8 b' class workingctx(changectx):'
722
722
723 def tags(self):
723 def tags(self):
724 t = []
724 t = []
725 [t.extend(p.tags()) for p in self.parents()]
725 for p in self.parents():
726 t.extend(p.tags())
726 return t
727 return t
727
728
728 def children(self):
729 def children(self):
@@ -86,7 +86,8 b' def ignore(root, files, warn):'
86 (f, inst.strerror))
86 (f, inst.strerror))
87
87
88 allpats = []
88 allpats = []
89 [allpats.extend(patlist) for patlist in pats.values()]
89 for patlist in pats.values():
90 allpats.extend(patlist)
90 if not allpats:
91 if not allpats:
91 return util.never
92 return util.never
92
93
@@ -1242,7 +1242,8 b' class localrepository(repo.repository):'
1242 self.ui.status(_("skipping missing subrepository: %s\n")
1242 self.ui.status(_("skipping missing subrepository: %s\n")
1243 % subpath)
1243 % subpath)
1244
1244
1245 [l.sort() for l in r]
1245 for l in r:
1246 l.sort()
1246 return r
1247 return r
1247
1248
1248 def heads(self, start=None):
1249 def heads(self, start=None):
General Comments 0
You need to be logged in to leave comments. Login now