changeset 4174 | a2335e832e16 |
parent 4156 | 30857b5779f8 |
child 4176 | f9bbcebcacea |
child 4182 | ba51a8225a60 |
child 4195 | e8ee8fdeddb1 |
--- a/mercurial/commands.py Sat Mar 10 22:03:23 2007 -0300 +++ b/mercurial/commands.py Sat Mar 10 17:36:27 2007 -0800 @@ -2544,7 +2544,11 @@ else: raise util.Abort(_("branch %s not found") % branch) else: - node = node and repo.lookup(node) or repo.changelog.tip() + if node: + node = repo.lookup(node) + else: + wc = repo.workingctx() + node = repo.branchtags()[wc.branch()] return node def verify(ui, repo):