- ingo@aeolus:~/hg-test$ hg glog -l5
- @ 7:36479da8f266 tip foo2 2014-11-11 14:07 +0100 (planetmaker)
- | Move foo2
- |
- o 6:0b428aa7bdf8 2014-11-11 14:06 +0100 (planetmaker)
- | copy foo
- |
- o 5:888a9a6be6b3 2014-04-17 14:22 +0200 (planetmaker)
- | -Add: New cool feature
- |
- o 4:0602f70b6892 2014-04-17 14:22 +0200 (planetmaker)
- | -Codechange: Introduce foo in preparation for cool stuff
- |
- o 0:4cd637edd9b5 2014-04-17 14:20 +0200 (planetmaker)
- -Add: Initial check-in
- ingo@aeolus:~/hg-test$ vi foo22
- ingo@aeolus:~/hg-test$ hg diff
- diff --git a/foo22 b/foo22
- --- a/foo22
- +++ b/foo22
- @@ -1,1 +1,2 @@
- foo is boo!
- +blah
- ingo@aeolus:~/hg-test$ hg ci -m "Commit accidential blah"
- ingo@aeolus:~/hg-test$ hg revert foo22 -r7
- ingo@aeolus:~/hg-test$ hg commit --amend
- ingo@aeolus:~/hg-test$ cat foo22
- foo is boo!
- ingo@aeolus:~/hg-test$ hg glog -l5
- @ 10:0591700c7e4c tip foo2 2014-11-14 14:19 +0100 (planetmaker)
- | UnCommit accidential blah
- |
- o 7:36479da8f266 2014-11-11 14:07 +0100 (planetmaker)
- | Move foo2
- |
- o 6:0b428aa7bdf8 2014-11-11 14:06 +0100 (planetmaker)
- | copy foo
- |
- o 5:888a9a6be6b3 2014-04-17 14:22 +0200 (planetmaker)
- | -Add: New cool feature
- |
- o 4:0602f70b6892 2014-04-17 14:22 +0200 (planetmaker)
- | -Codechange: Introduce foo in preparation for cool stuff
- |
- ingo@aeolus:~/hg-test$ hg export 10
- # HG changeset patch
- # User planetmaker <planetmaker@openttd.org>
- # Date 1415971170 -3600
- # Fri Nov 14 14:19:30 2014 +0100
- # Node ID 0591700c7e4cc3b769318bca0e5ef506e82f9778
- # Parent 36479da8f2668218a3c99347cf90a15dd24e98d0
- UnCommit accidential blah
- ingo@aeolus:~/hg-test$