mercurial/commands.py
changeset 10345 bc2866bdf3e0
parent 10340 2e9656d284cc
child 10346 e2db50cae6e6
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)