Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 10345:bc2866bdf3e0
commands: allow --closed even for topological heads displays
But it actually only starts working later on.
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Sat, 06 Feb 2010 19:00:50 +0100 |
parents | 2e9656d284cc |
children | e2db50cae6e6 |
comparison
equal
deleted
inserted
replaced
10344:9501cde4c034 | 10345:bc2866bdf3e0 |
---|---|
1417 start = None | 1417 start = None |
1418 | 1418 |
1419 closed = opts.get('closed') | 1419 closed = opts.get('closed') |
1420 hideinactive, _heads = opts.get('active'), None | 1420 hideinactive, _heads = opts.get('active'), None |
1421 if not branchrevs: | 1421 if not branchrevs: |
1422 if closed: | |
1423 raise error.Abort(_('you must specify a branch to use --closed')) | |
1424 # Assume we're looking repo-wide heads if no revs were specified. | |
1425 heads = repo.heads(start) | 1422 heads = repo.heads(start) |
1426 | 1423 |
1427 else: | 1424 else: |
1428 if hideinactive: | 1425 if hideinactive: |
1429 dagheads = repo.heads(start) | 1426 dagheads = repo.heads(start) |