Linuxism in "hg clone"? Does not work on NetBSD
Stephane Bortzmeyer
stephane at sources.org
Wed Aug 3 04:43:28 CDT 2005
% hg clone /var/tmp/One
cp: unknown option -- a
This is probably because, in mercurial/commands.py, there is:
if other.dev() != -1 and os.stat(dest).st_dev == other.dev():
ui.note("cloning by hardlink\n")
util.system("cp -al '%s'/.hg '%s'/.hg" % (source, dest))
But -a is not standard, it is specific to GNU fileutils (Linux's cp
comes from it but not NetBSD's cp).
Mercurial 0.6b, NetBSD 2.0.1
More information about the Mercurial
mailing list