Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 1221:89f899caecb5
clone: directory names take precedence over symbolic names
If source matches both a directory name and a symbolic
name to repo, the directory will be taken.
author | TK Soh <teekaysoh@yahoo.com> |
---|---|
date | Thu, 08 Sep 2005 12:10:59 -0700 |
parents | 8baa29e36b14 |
children | a5cb17a2d240 |
comparison
equal
deleted
inserted
replaced
1220:8baa29e36b14 | 1221:89f899caecb5 |
---|---|
612 ui.setconfig("ui", "ssh", opts['ssh']) | 612 ui.setconfig("ui", "ssh", opts['ssh']) |
613 if opts['remotecmd']: | 613 if opts['remotecmd']: |
614 ui.setconfig("ui", "remotecmd", opts['remotecmd']) | 614 ui.setconfig("ui", "remotecmd", opts['remotecmd']) |
615 | 615 |
616 d = Dircleanup(dest) | 616 d = Dircleanup(dest) |
617 source = ui.expandpath(source) | 617 if not os.path.exists(source): |
618 source = ui.expandpath(source) | |
618 abspath = source | 619 abspath = source |
619 other = hg.repository(ui, source) | 620 other = hg.repository(ui, source) |
620 | 621 |
621 if other.dev() != -1: | 622 if other.dev() != -1: |
622 abspath = os.path.abspath(source) | 623 abspath = os.path.abspath(source) |