Show More
@@ -1436,13 +1436,14 b' def heads(ui, repo, *branchrevs, **opts)' | |||
|
1436 | 1436 | descendants.add(startrev) |
|
1437 | 1437 | heads += [h for h in ls if repo.changelog.rev(h) in descendants] |
|
1438 | 1438 | |
|
1439 |
|
|
|
1440 |
|
|
|
1441 | ||
|
1442 |
|
|
|
1443 |
|
|
|
1444 |
|
|
|
1445 | ||
|
1439 | if not opts.get('closed'): | |
|
1440 | heads = [h for h in heads if not repo[h].extra().get('close')] | |
|
1441 | ||
|
1442 | if opts.get('active') and branchrevs: | |
|
1443 | dagheads = repo.heads(start) | |
|
1444 | heads = [h for h in heads if h in dagheads] | |
|
1445 | ||
|
1446 | if branchrevs: | |
|
1446 | 1447 | haveheads = set(repo[h].branch() for h in heads) |
|
1447 | 1448 | if branches - haveheads: |
|
1448 | 1449 | headless = ', '.join(encode(b) for b in branches - haveheads) |
@@ -143,12 +143,6 b' user: test' | |||
|
143 | 143 | date: Thu Jan 01 00:00:09 1970 +0000 |
|
144 | 144 | summary: reopen branch with a change |
|
145 | 145 | |
|
146 | changeset: 11:c84627f3c15d | |
|
147 | branch: b | |
|
148 | user: test | |
|
149 | date: Thu Jan 01 00:00:09 1970 +0000 | |
|
150 | summary: prune bad branch | |
|
151 | ||
|
152 | 146 | changeset: 7:10ff5895aa57 |
|
153 | 147 | branch: a branch name much longer than the default justification used by branches |
|
154 | 148 | user: test |
General Comments 0
You need to be logged in to leave comments.
Login now