# HG changeset patch # User Kevin Bullock # Date 2012-05-05 20:30:54 # Node ID b11d181b87ba1f25fde4aab70fc7c5c2b7f85c92 # Parent dc7010ed01016df926c4e234dd0129de731c5d77 update: remove unnecessary argument check diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -5848,7 +5848,7 @@ def update(ui, repo, node=None, rev=None # with no argument, we also move the current bookmark, if any movemarkfrom = None - if rev is None or node == '': + if rev is None: movemarkfrom = repo['.'].node() # if we defined a bookmark, we have to remember the original bookmark name