Skip to content

Instantly share code, notes, and snippets.

@sr105
Created June 10, 2014 19:06
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 sr105/82c079db5bef640ef190 to your computer and use it in GitHub Desktop.
Save sr105/82c079db5bef640ef190 to your computer and use it in GitHub Desktop.
Desktop$ hg init TestHg
Desktop$ cd TestHg/
TestHg$ touch A
TestHg$ hg ci -Am "First A"
adding A
TestHg$ mkdir sub1
TestHg$ hg cp A sub1/A
TestHg$ hg ci -Am "sub1 A"
TestHg$ mkdir sub2
TestHg$ hg cp A sub2/A
TestHg$ echo sub2 >> sub2/A
TestHg$ hg ci -Am "sub2/A"
TestHg$ hg log --follow sub2/A
changeset: 2:1d34c980f109
tag: tip
summary: sub2/A
changeset: 0:b203ee16a37e
summary: First A
TestHg$ hg log --follow sub1/A
changeset: 1:43420fa1cba5
summary: sub1 A
changeset: 0:b203ee16a37e
summary: First A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment