tests/test-obsolete.t
changeset 150 f12fd2410a60
parent 144 f387658d6d22
child 206 80f602e6ae8a
--- a/tests/test-obsolete.t	Tue Mar 20 11:02:11 2012 +0100
+++ b/tests/test-obsolete.t	Tue Mar 20 15:10:53 2012 +0100
@@ -339,3 +339,54 @@
   0
   - 1f0dee641bb7
 
+check rebase compat
+
+  $ hg --config extensions.graphlog= glog -r 'not extinct()'  --template='{rev} - {node|short}\n'
+  o  8 - 159dfc9fa5d3
+  |
+  | o  4 - 725c380fe99b
+  | |
+  o |  3 - 0d3f46688ccc
+  |/
+  o  1 - 7c3bad9141dc
+  |
+  o  0 - 1f0dee641bb7
+  
+
+  $ hg --config extensions.graphlog= glog  --template='{rev} - {node|short}\n'
+  o  9 - 83b5778897ad
+  
+  o  8 - 159dfc9fa5d3
+  |
+  | o  7 - 909a0fb57e5d
+  |/
+  | o  6 - 95de7fc6918d
+  |/
+  | o  5 - a7a6f2b5d8a5
+  |/
+  | o  4 - 725c380fe99b
+  | |
+  o |  3 - 0d3f46688ccc
+  |/
+  | o  2 - 4538525df7e2
+  |/
+  o  1 - 7c3bad9141dc
+  |
+  o  0 - 1f0dee641bb7
+  
+
+should not rebase extinct changeset
+
+  $ hg --config extensions.hgext.rebase= rebase -b 3 -d 4 --traceback
+  $ hg --config extensions.graphlog= glog -r 'not extinct()'  --template='{rev} - {node|short}\n'
+  @  11 - 9468a5f5d8b2
+  |
+  o  10 - 2033b4e49474
+  |
+  o  4 - 725c380fe99b
+  |
+  o  1 - 7c3bad9141dc
+  |
+  o  0 - 1f0dee641bb7
+  
+