changeset 15918:4f9853e7f690

graft: add test to check the phase of new changesets Graft actually do not keep the phase of the source changesets: no need to change the graft code and add test to check this behaviour.
author Alain Leufroy <alain.leufroy@logilab.fr>
date Tue, 17 Jan 2012 11:08:23 +0100
parents e66084ef8449
children 69e792cf7851
files tests/test-graft.t
diffstat 1 files changed, 31 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-graft.t	Tue Jan 17 09:12:14 2012 +0100
+++ b/tests/test-graft.t	Tue Jan 17 11:08:23 2012 +0100
@@ -22,6 +22,24 @@
   $ hg merge -q default --tool internal:local
   $ hg branch -q default
   $ hg ci -m6
+  $ hg phase --public 3
+  $ hg phase --force --secret 6
+
+  $ hg --config extensions.graphlog= log -G --template '{author}@{rev}.{phase}: {desc}\n'
+  @    test@6.secret: 6
+  |\
+  | o  test@5.draft: 5
+  | |
+  o |  test@4.draft: 4
+  |/
+  o  baz@3.public: 3
+  |
+  o  test@2.public: 2
+  |
+  o  bar@1.public: 1
+  |
+  o  test@0.public: 0
+  
 
 Need to specify a rev:
 
@@ -181,30 +199,30 @@
 
 View graph:
 
-  $ hg --config extensions.graphlog= log -G --template '{author}@{rev}: {desc}\n'
-  @  test@11: 3
+  $ hg --config extensions.graphlog= log -G --template '{author}@{rev}.{phase}: {desc}\n'
+  @  test@11.draft: 3
   |
-  o  test@10: 4
+  o  test@10.draft: 4
   |
-  o  test@9: 5
+  o  test@9.draft: 5
   |
-  o  bar@8: 1
+  o  bar@8.draft: 1
   |
-  o  foo@7: 2
+  o  foo@7.draft: 2
   |
-  | o    test@6: 6
+  | o    test@6.secret: 6
   | |\
-  | | o  test@5: 5
+  | | o  test@5.draft: 5
   | | |
-  | o |  test@4: 4
+  | o |  test@4.draft: 4
   | |/
-  | o  baz@3: 3
+  | o  baz@3.public: 3
   | |
-  | o  test@2: 2
+  | o  test@2.public: 2
   | |
-  | o  bar@1: 1
+  | o  bar@1.public: 1
   |/
-  o  test@0: 0
+  o  test@0.public: 0
   
 Graft again onto another branch should preserve the original source
   $ hg up -q 0