hg rename under OS X

Martin Geisler mg at aragost.com
Mon Nov 1 10:01:17 CDT 2010


Klaasmer <klaasmer at gmail.com> writes:

> Hello,
>
> I'm using MercurialEclipse 1.6.0(http://javaforge.com/project/HGE)
> under OS X. When I try to rename a file that's under Mercurial control
> within eclipse, I get an '<xyfilename> not under root' exception and
> the rename will not happen. I tracked this down to the method
>
> def canonpath(root, cwd, myname) in mercurial/util.py
>
> Here method os.stat(newfilename) is called and throws an exception:
>
> OSError: [Errno 2] No such file or directory:
> '/Users/username/Documents/project/newname.txt'
>
> Even when I do the rename from the command line, I get the same error.
> I'm using Mercurial version 1.6.4. Can anyone comment on this? Any
> help appreciated!

It's cool that you have debugged it to figure out which function causes
the problem. But please show us the commands too -- something like:

  $ hg rename --traceback oldname.txt newname.txt

We need to be able to reproduce it in order to fix the problem.

-- 
Martin Geisler

aragost Trifork
Professional Mercurial support
http://aragost.com/mercurial/


More information about the Mercurial mailing list