Mercurial > hg
changeset 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 | 9501cde4c034 |
children | e2db50cae6e6 |
files | mercurial/commands.py tests/test-branches.out |
diffstat | 2 files changed, 20 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Sat Feb 06 16:50:00 2010 +0100 +++ b/mercurial/commands.py Sat Feb 06 19:00:50 2010 +0100 @@ -1419,9 +1419,6 @@ closed = opts.get('closed') hideinactive, _heads = opts.get('active'), None if not branchrevs: - if closed: - raise error.Abort(_('you must specify a branch to use --closed')) - # Assume we're looking repo-wide heads if no revs were specified. heads = repo.heads(start) else:
--- a/tests/test-branches.out Sat Feb 06 16:50:00 2010 +0100 +++ b/tests/test-branches.out Sat Feb 06 19:00:50 2010 +0100 @@ -63,7 +63,26 @@ c 6:589736a22561 (inactive) a 5:d8cbc61dbaa6 (inactive) default 0:19709c5a4e75 (inactive) -abort: you must specify a branch to use --closed +changeset: 10:bfbe841b666e +branch: b +tag: tip +user: test +date: Thu Jan 01 00:00:09 1970 +0000 +summary: adding another cset to branch b + +changeset: 8:eebb944467c9 +branch: b +parent: 4:aee39cd168d0 +user: test +date: Thu Jan 01 00:00:07 1970 +0000 +summary: adding cset to branch b + +changeset: 7:10ff5895aa57 +branch: a branch name much longer than the default justification used by branches +user: test +date: Thu Jan 01 00:00:06 1970 +0000 +summary: Adding d branch + changeset: 10:bfbe841b666e branch: b tag: tip