Copied changes into a different directory and Mercurial does not notice it, why?
Steve - Gadget Barnes
gadgetsteve at hotmail.com
Sun Oct 2 05:30:19 UTC 2016
On 01/10/2016 22:29, Yves S. Garret wrote:
> 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.
>
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial
>
Which OS are you on and how are you copying the directory? I have just
tried to reproduce your issue, (hg 3.9.1 on Win10), and I am not seeing
the problem:
F:\toolbuild\repo>xcopy foo\stuff bar\stuff
Does bar\stuff specify a file name
or directory name on the target
(F = file, D = directory)? D
foo\stuff\morestuff.txt
1 File(s) copied
F:\toolbuild\repo>dir bar
Volume in drive F is SharedData
Volume Serial Number is D481-EE26
Directory of F:\toolbuild\repo\bar
02/10/2016 06:21 <DIR> .
02/10/2016 06:21 <DIR> ..
02/10/2016 06:21 <DIR> stuff
0 File(s) 0 bytes
3 Dir(s) 251,855,003,648 bytes free
F:\toolbuild\repo>dir bar\stuff
Volume in drive F is SharedData
Volume Serial Number is D481-EE26
Directory of F:\toolbuild\repo\bar\stuff
02/10/2016 06:21 <DIR> .
02/10/2016 06:21 <DIR> ..
02/10/2016 06:18 13 morestuff.txt
1 File(s) 13 bytes
2 Dir(s) 251,855,003,648 bytes free
F:\toolbuild\repo>hg status
? bar\stuff\morestuff.txt
I have seen something a little similar due to a drive with an excessive
cashe time where the OS reported that file operations had finished when
they hadn't really.
--
Steve (Gadget) Barnes
Any opinions in this message are my personal opinions and do not reflect
those of my employer.
More information about the Mercurial
mailing list