[PATCH 1 of 1] Fix setting of hg default when using --pull on clone of local repository

Lee Cantey lcantey at gmail.com
Wed Sep 21 17:26:09 CDT 2005


# HG changeset patch
# User Lee Cantey <lcantey at gmail.com>
# Node ID d0135f3081297bf13105cb221dcafe29416fa0a8
# Parent  1546c2aa6b309b631669aeeca6b97e8adc2feb7c
Fix setting of hg default when using --pull on clone of local repository.

diff -r 1546c2aa6b30 -r d0135f308129 mercurial/commands.py
--- a/mercurial/commands.py	Wed Sep 21 04:35:51 2005
+++ b/mercurial/commands.py	Wed Sep 21 22:25:32 2005
@@ -629,10 +629,11 @@
     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


More information about the Mercurial mailing list