Copied changes into a different directory and Mercurial does not notice it, why?

Yves S. Garret yoursurrogategod at gmail.com
Sat Oct 1 21:29:34 UTC 2016


Hi all,

I'm doing this in Linux, with Hg Version 3.9.1 and I do all of the work in
the command line.

Lets say in my repository, I have two directories, "foo" and "bar".  "foo"
has a directory called "stuff" and inside of "stuff" is a text file
"morestuff.txt".  Something like this:

repo/foo/stuff/morestuff.txt
  +  /bar

I copied the directory "stuff" (with "morestuff.txt") into "bar" via
command line.  I was fully expecting to see "morestuff.txt" displayed as an
unknown file after running hg status.  However, nothing was displayed at
all!

This was weird.  And every time I delete this and re-didi it, same result
(initially thought that I mis-typed and messed up something much much
earlier.)  Odd... so I made a small experiment.  I named a the directory
inside of "bar" "blah" and copied "morestuff.txt" into "blah", so it would
look like this:

repo/bar/blah/morestuff.txt

Now, when I run hg status, Mercurial clearly marks "morestuff.txt" as an
unknown file.

Why is this?  In the entire repository, am I not allowed to have
directories of the same name even if they are part of the filesystem at
different points?

This was very bizarre.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial/attachments/20161001/54bb3ed0/attachment.html>


More information about the Mercurial mailing list