mercurial/commands.py
changeset 3071 547d1a4aa105
parent 3068 15526271eafb
child 3072 bc3fe3b5b785
equal deleted inserted replaced
3070:9b480509658c 3071:547d1a4aa105
  1938     head revision, and the repository contains exactly one other head,
  1938     head revision, and the repository contains exactly one other head,
  1939     the other head is merged with by default.  Otherwise, an explicit
  1939     the other head is merged with by default.  Otherwise, an explicit
  1940     revision to merge with must be provided.
  1940     revision to merge with must be provided.
  1941     """
  1941     """
  1942 
  1942 
  1943     if node:
  1943     if node or branch:
  1944         node = _lookup(repo, node, branch)
  1944         node = _lookup(repo, node, branch)
  1945     else:
  1945     else:
  1946         heads = repo.heads()
  1946         heads = repo.heads()
  1947         if len(heads) > 2:
  1947         if len(heads) > 2:
  1948             raise util.Abort(_('repo has %d heads - '
  1948             raise util.Abort(_('repo has %d heads - '