[PATCH] update: remove unnecessary argument check

Kevin Bullock kbullock+mercurial at ringworld.org
Wed Oct 17 20:56:41 CDT 2012


# HG changeset patch
# User Kevin Bullock <kbullock at ringworld.org>
# Date 1336249854 18000
# Node ID 7ab849e4113bbd5fd90f6e416da2481b64876fb7
# Parent  72c234081ae1350220132c69750f5a093902a1e7
update: remove unnecessary argument check

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -5836,7 +5836,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


More information about the Mercurial-devel mailing list