Skip to content

Instantly share code, notes, and snippets.

@qwzybug
Created May 15, 2009 03:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qwzybug/112038 to your computer and use it in GitHub Desktop.
Save qwzybug/112038 to your computer and use it in GitHub Desktop.
Glaukopis-Athena:Desktop d$ mkdir hgcase
Glaukopis-Athena:Desktop d$ cd hgcase
Glaukopis-Athena:hgcase d$ hg init
Glaukopis-Athena:hgcase d$ touch foo.txt
Glaukopis-Athena:hgcase d$ hg st
? foo.txt
Glaukopis-Athena:hgcase d$ hg add foo.txt
Glaukopis-Athena:hgcase d$ hg commit -m "foo"
Glaukopis-Athena:hgcase d$ hg rm foo.txt
Glaukopis-Athena:hgcase d$ touch FOO.txt
Glaukopis-Athena:hgcase d$ hg add FOO.txt
Glaukopis-Athena:hgcase d$ hg st
A FOO.txt
R foo.txt
Glaukopis-Athena:hgcase d$ hg commit -m "FOO"
Glaukopis-Athena:hgcase d$ cd ..
Glaukopis-Athena:Desktop d$ hg clone hgcase hgcase2
updating working directory
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
Glaukopis-Athena:Desktop d$ cd hgcase2
Glaukopis-Athena:hgcase2 d$ ls
FOO.txt
Glaukopis-Athena:hgcase2 d$ cd ../hgcase
Glaukopis-Athena:hgcase d$ mv FOO.txt foo.txt
Glaukopis-Athena:hgcase d$ hg st
? foo.txt
Glaukopis-Athena:hgcase d$ hg add foo.txt
Glaukopis-Athena:hgcase d$ hg commit -m "foo again"
Glaukopis-Athena:hgcase d$ cd ../hgcase2
Glaukopis-Athena:hgcase2 d$ hg pull
pulling from /Users/d/Desktop/hgcase
searching for changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 0 changes to 0 files
(run 'hg update' to get a working copy)
Glaukopis-Athena:hgcase2 d$ hg update
abort: case-folding collision between foo.txt and FOO.txt
Glaukopis-Athena:hgcase2 d$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment