diff mercurial/commands.py @ 3071:547d1a4aa105

hg merge: fix lookup of branch add some tests for branch usage
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Fri, 08 Sep 2006 02:16:16 +0200
parents 15526271eafb
children bc3fe3b5b785
line wrap: on
line diff
--- a/mercurial/commands.py	Fri Sep 08 01:07:21 2006 +0200
+++ b/mercurial/commands.py	Fri Sep 08 02:16:16 2006 +0200
@@ -1940,7 +1940,7 @@
     revision to merge with must be provided.
     """
 
-    if node:
+    if node or branch:
         node = _lookup(repo, node, branch)
     else:
         heads = repo.heads()