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

Mike Neuman mcn at EnGarde.com
Tue Oct 2 10:47:11 CDT 2007


You're right, I just didn't transcribe that part, but I did do the add. 
Here are the exact commands I just ran again:

% mkdir test-rep
% cd test-rep
% hg init .
% mkdir dir1 dir2
% touch dir1/file1
% hg add dir1/file1
% hg commit -m "test"
% cd dir1
% hg mv file1 ../dir2
abort: /home/mcn/test-rep/dir2/file1 not under root
% cd ..
% hg log -v
changeset:   0:020838924ec8
tag:         tip
user:        Mike Neuman <mcn at EnGarde.com>
date:        Tue Oct 02 08:39:13 2007 -0700
files:       dir1/file1
description:
test

% hg mv dir1/file1 dir2
(Success)

----

Here's one other interesting tidbit. The above was run on a FreeBSD 6.2 
machine. If I run the exact same sequence on a Linux machine, it works 
fine. Both are the same version of Mercurial (0.9.4).

FreeBSD: uname -a
FreeBSD hostname 6.2-RELEASE FreeBSD 6.2-RELEASE #10: Wed Sep  5 
17:27:56 PDT 2007  mcn at hostname:/usr/src/sys/amd64/compile/HOSTNAME  amd64

Linux: uname -a
Linux hostname 2.6.19-1.2895.fc6 #1 SMP Wed Jan 10 19:28:18 EST 2007 
i686 i686 i386 GNU/Linux

----

Thanks again!

-Mike


More information about the Mercurial mailing list