Show More
@@ -350,16 +350,12 class localrepository(repo.repository): | |||
|
350 | 350 | the branch, open heads come before closed''' |
|
351 | 351 | bt = {} |
|
352 | 352 | for bn, heads in self.branchmap().iteritems(): |
|
353 |
|
|
|
354 |
for |
|
|
355 | h = heads[i] | |
|
353 | tip = heads[-1] | |
|
354 | for h in reversed(heads): | |
|
356 | 355 | if 'close' not in self.changelog.read(h)[5]: |
|
357 |
|
|
|
356 | tip = h | |
|
358 | 357 | break |
|
359 | # no open heads were found | |
|
360 | if head is None: | |
|
361 | head = heads[-1] | |
|
362 | bt[bn] = head | |
|
358 | bt[bn] = tip | |
|
363 | 359 | return bt |
|
364 | 360 | |
|
365 | 361 |
General Comments 0
You need to be logged in to leave comments.
Login now