##// END OF EJS Templates
mq: prefer a loop to a double-for list comprehension...
Kevin Bullock -
r20119:1648e44e default
parent child Browse files
Show More
@@ -1204,7 +1204,9 b' class queue(object):'
1204 diffopts = self.diffopts()
1204 diffopts = self.diffopts()
1205 wlock = repo.wlock()
1205 wlock = repo.wlock()
1206 try:
1206 try:
1207 heads = [h for hs in repo.branchmap().itervalues() for h in hs]
1207 heads = []
1208 for hs in repo.branchmap().itervalues():
1209 heads.extend(hs)
1208 if not heads:
1210 if not heads:
1209 heads = [nullid]
1211 heads = [nullid]
1210 if repo.dirstate.p1() not in heads and not exact:
1212 if repo.dirstate.p1() not in heads and not exact:
General Comments 0
You need to be logged in to leave comments. Login now