Changing the directory names

Shridhar Daithankar ghodechhap at ghodechhap.net
Tue Jan 19 12:01:00 CST 2010


On Tuesday 19 January 2010 23:04:21 Octavian Rasnita wrote:
> Hi,
> 
> How can HG handle the change in the directory names?
> 
> For example, by mistake I put a name of "Directory" for a directory, but it
> should have been "directory".
> The app was working fine under Windows because this OS doesn't care about
> lower/upper case, but when I transfered it on the server, it crashed
> miserably.

Try following on server
$ hg mv Directory directory 

Here is what it does
$ hg init .

$ mkdir Directory

$ echo test >Directory/a.txt

$ hg add Directory/a.txt
adding Directory/a.txt

$ hg ci -m"Initial"
Directory/a.txt
committed changeset 0:32572b82d7265216511a5ffa1a180a6fc2ef7b99

$ hg mv Directory/ directory
moving Directory/a.txt to directory/a.txt

$ hg ci -m"rename"
directory/a.txt
 directory/a.txt: copy 
Directory/a.txt:47e1a02b8587f450522a1cb73c3ef8ed21f2f923
committed changeset 1:67ab11ff59ad070deb612cd31b41d0b1cc902088

$ ls
directory


-- 
 Shridhar


More information about the Mercurial mailing list