Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 675:49de76abc4da
hg clone stored path fix
# HG changeset patch
# User Mikael Berthe <mikael@lilotux.net>
# Node ID a08808d8ffd811c1174216c598da5c27d20bc2c9
# Parent b3bba126b04ab2f24274a1bcf5a224c6317c8e0d
hg clone stored path fix
The abspath() has been lost in changeset 634 (da5378d39269).
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 10 Jul 2005 16:15:20 -0800 |
parents | 6513ba7d858a |
children | 0cfc5966b2c2 |
comparison
equal
deleted
inserted
replaced
674:6513ba7d858a | 675:49de76abc4da |
---|---|
384 d = dircleanup(dest) | 384 d = dircleanup(dest) |
385 link = 0 | 385 link = 0 |
386 abspath = source | 386 abspath = source |
387 source = ui.expandpath(source) | 387 source = ui.expandpath(source) |
388 other = hg.repository(ui, source) | 388 other = hg.repository(ui, source) |
389 | |
390 if other.dev() != -1: | |
391 abspath = os.path.abspath(source) | |
389 | 392 |
390 if other.dev() != -1 and os.stat(dest).st_dev == other.dev(): | 393 if other.dev() != -1 and os.stat(dest).st_dev == other.dev(): |
391 ui.note("cloning by hardlink\n") | 394 ui.note("cloning by hardlink\n") |
392 util.system("cp -al '%s'/.hg '%s'/.hg" % (source, dest)) | 395 util.system("cp -al '%s'/.hg '%s'/.hg" % (source, dest)) |
393 try: | 396 try: |