Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 965:a425123e6afe
Use post-expanded clone pathname as default
author | mpm@selenic.com |
---|---|
date | Fri, 19 Aug 2005 22:48:43 -0800 |
parents | 84355e3e4493 |
children | 022bcc738389 |
comparison
equal
deleted
inserted
replaced
964:3f37720e7dc7 | 965:a425123e6afe |
---|---|
493 ui.setconfig("ui", "ssh", opts['ssh']) | 493 ui.setconfig("ui", "ssh", opts['ssh']) |
494 if opts['remotecmd']: | 494 if opts['remotecmd']: |
495 ui.setconfig("ui", "remotecmd", opts['remotecmd']) | 495 ui.setconfig("ui", "remotecmd", opts['remotecmd']) |
496 | 496 |
497 d = Dircleanup(dest) | 497 d = Dircleanup(dest) |
498 source = ui.expandpath(source) | |
498 abspath = source | 499 abspath = source |
499 source = ui.expandpath(source) | |
500 other = hg.repository(ui, source) | 500 other = hg.repository(ui, source) |
501 | 501 |
502 if other.dev() != -1: | 502 if other.dev() != -1: |
503 abspath = os.path.abspath(source) | 503 abspath = os.path.abspath(source) |
504 copyfile = (os.stat(dest).st_dev == other.dev() | 504 copyfile = (os.stat(dest).st_dev == other.dev() |