##// END OF EJS Templates
mq: refactor usage of repo.branchmap().iteritems() with itervalues()
Brodie Rao -
r19916:fb583a1e default
parent child Browse files
Show More
@@ -1204,9 +1204,7 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 = []
1207 heads = [h for hs in repo.branchmap().itervalues() for h in hs]
1208 for b, ls in repo.branchmap().iteritems():
1209 heads += ls
1210 if not heads:
1208 if not heads:
1211 heads = [nullid]
1209 heads = [nullid]
1212 if repo.dirstate.p1() not in heads and not exact:
1210 if repo.dirstate.p1() not in heads and not exact:
General Comments 0
You need to be logged in to leave comments. Login now