diff 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
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: