Linuxism in "hg clone"? Does not work on NetBSD

Matt Mackall mpm at selenic.com
Wed Aug 3 10:45:51 CDT 2005


On Wed, Aug 03, 2005 at 11:43:28AM +0200, Stephane Bortzmeyer wrote:
> % 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).

Yep, fixed in tip.

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial mailing list