Bug Report: hg {copy, rename, mv} with ".." to an empty directory fails with obscure error

Matt Mackall mpm at selenic.com
Tue Oct 2 17:32:10 CDT 2007


On Tue, Oct 02, 2007 at 12:22:27PM -0700, Mike Neuman wrote:
> Matt Mackall wrote:
> >>abort: /home/mcn/test-rep/dir2/file1 not under root
> >That's a very interesting tidbit. Are there any symlinks or the like
> >in your path? Linux getcwd is a fast syscall due to the dcache, but
> >other UNIXen tend to have to walk the directory tree in libc.
> 
>   Yes! This seems to be the problem.
> 
>   /home is actually a symlink to /usr/home (which is the default on all 
> FreeBSD machines)
> 
>   If I run this same test on my FreeBSD machine from the /tmp directory 
> (which is not a symlink), everything works fine.

Well I can't seem to reproduce it on Linux, symlink or no.

Can you try adding some debugging prints to
mercurial/util.py:canonpath and see if you can catch it doing
something obviously dumb?

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial mailing list