[BUG] symbolic and dir name clash when cloning
TK Soh
teekaysoh at yahoo.com
Sat Sep 3 02:04:59 CDT 2005
Currently if a directory name clashes with symbolic name, the symbolic name
will be used. I think clone should take the directory instead.
# HG changeset patch
# User TK Soh <teekaysoh at yahoo.com>
# Node ID 031a143f48461e8bb23e603f5528890122c3c600
# Parent c165cbf56bb117ebdd226aea950e67b543a665e7
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.
diff -r c165cbf56bb1 -r 031a143f4846 mercurial/commands.py
--- a/mercurial/commands.py Thu Sep 1 19:13:56 2005
+++ b/mercurial/commands.py Sat Sep 3 06:58:26 2005
@@ -594,7 +594,8 @@
ui.setconfig("ui", "remotecmd", opts['remotecmd'])
d = Dircleanup(dest)
- source = ui.expandpath(source)
+ if not os.path.exists(source):
+ source = ui.expandpath(source)
abspath = source
other = hg.repository(ui, source)
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Mercurial
mailing list