diff mercurial/commands.py @ 1315:32f6cae83db7

Fix setting of hg default when using --pull on clone of local repository.
author Lee Cantey <lcantey@gmail.com>
date Thu, 22 Sep 2005 09:47:27 -0700
parents d37a46859acd
children 008d3666bf41
line wrap: on
line diff
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -630,10 +630,11 @@ def clone(ui, source, dest=None, **opts)
     other = hg.repository(ui, source)
 
     copy = False
-    if not opts['pull'] and other.dev() != -1:
+    if other.dev() != -1:
         abspath = os.path.abspath(source)
-        copy = True
-
+        if not opts['pull']:
+            copy = True
+        
     if copy:
         try:
             # we use a lock here because if we race with commit, we