# HG changeset patch # User Lee Cantey # Date 1127407647 25200 # Node ID 32f6cae83db75e0d1d30e3b562d0615245db3354 # Parent d37a46859acdb887d709a428670b59d7d17cd051 Fix setting of hg default when using --pull on clone of local repository. diff -r d37a46859acd -r 32f6cae83db7 mercurial/commands.py --- a/mercurial/commands.py Thu Sep 22 09:47:03 2005 -0700 +++ b/mercurial/commands.py Thu Sep 22 09:47:27 2005 -0700 @@ -630,10 +630,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