hg rename under OS X
Martin Geisler
mg at aragost.com
Mon Nov 1 10:26:43 CDT 2010
Klaasmer <klaasmer at gmail.com> writes:
(Sending the traceback back to the list -- please use "reply to all".)
> Hi Martin,
>
> ok, here we go:
>
> When I call
>
> hg rename --traceback /Users/klaas/Documents/ws/Klaqtools/test.sh /Users/klaas/Documents/ws/Klaqtools/test.txt2
>
> I get as an output:
>
> Traceback (most recent call last):
> File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial/dispatch.py", line 54, in _runcatch
> return _dispatch(ui, args)
> File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial/dispatch.py", line 494, in _dispatch
> cmdpats, cmdoptions)
> File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial/dispatch.py", line 355, in runcommand
> ret = _runcommand(ui, options, cmd, d)
> File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial/dispatch.py", line 545, in _runcommand
> return checkargs()
> File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial/dispatch.py", line 499, in checkargs
> return cmdfunc()
> File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial/dispatch.py", line 492, in <lambda>
> d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
> File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial/util.py", line 420, in check
> return func(*args, **kwargs)
> File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial/commands.py", line 2968, in rename
> return cmdutil.copy(ui, repo, pats, opts, rename=True)
> File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial/cmdutil.py", line 536, in copy
> if copyfile(abssrc, relsrc, targetpath(abssrc), exact):
> File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial/cmdutil.py", line 366, in copyfile
> abstarget = util.canonpath(repo.root, cwd, otarget)
> File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial/util.py", line 334, in canonpath
> raise Abort('%s not under root' % myname)
> Abort: /Users/klaas/Documents/ws/Klaqtools/test.txt2 not under root
> abort: /Users/klaas/Documents/ws/Klaqtools/test.txt2 not under root
>
> I used the absolute path names, because MercurialEclipse does the same.
Interesting -- I just tried with the tip version of Mercurial (version
1.6.4+264-53cfde2b3cf9) and I could not reproduce the problem.
I have added a test for this here:
http://hg.intevation.org/mercurial/crew/rev/f2fd909053d9
I suggest you try updating MercurialEclipse and/or Mercurial, unless you
are already using the latest version.
> Thanks for your help!!
>
> Klaas.
--
Martin Geisler
aragost Trifork
Professional Mercurial support
http://aragost.com/mercurial/
More information about the Mercurial
mailing list