tests/test-split.t
branchmercurial-4.3
changeset 4174 e07e764c0f48
parent 3936 537fd9a86c06
parent 4173 e268f7fd7839
--- a/tests/test-split.t	Fri Oct 12 15:15:09 2018 +0200
+++ b/tests/test-split.t	Fri Oct 12 15:20:54 2018 +0200
@@ -39,7 +39,8 @@
   $ echo "change to a" >> _a
   $ hg amend
   $ hg debugobsolete
-  1334a80b33c3f9873edab728fbbcf500eab61d2e d2fe56e71366c2c5376c89960c281395062c0619 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'amend', 'user': 'test'}
+  1334a80b33c3f9873edab728fbbcf500eab61d2e d2fe56e71366c2c5376c89960c281395062c0619 0 (*) {'ef1': '8', 'user': 'test'} (glob)
+  06be89dfe2ae447383f30a2984933352757b6fb4 0 {1334a80b33c3f9873edab728fbbcf500eab61d2e} (*) {'ef1': '0', 'user': 'test'} (glob)
 
 To create commits with the number of split
   $ echo 0 > num
@@ -91,16 +92,17 @@
   no more change to split
 
   $ hg debugobsolete
-  1334a80b33c3f9873edab728fbbcf500eab61d2e d2fe56e71366c2c5376c89960c281395062c0619 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'amend', 'user': 'test'}
-  d2fe56e71366c2c5376c89960c281395062c0619 2d8abdb827cdf71ca477ef6985d7ceb257c53c1b 033b3f5ae73db67c10de938fb6f26b949aaef172 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '13', 'operation': 'split', 'user': 'test'}
+  1334a80b33c3f9873edab728fbbcf500eab61d2e d2fe56e71366c2c5376c89960c281395062c0619 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'user': 'test'}
+  06be89dfe2ae447383f30a2984933352757b6fb4 0 {1334a80b33c3f9873edab728fbbcf500eab61d2e} (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '0', 'user': 'test'}
+  d2fe56e71366c2c5376c89960c281395062c0619 2d8abdb827cdf71ca477ef6985d7ceb257c53c1b 033b3f5ae73db67c10de938fb6f26b949aaef172 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '13', 'user': 'test'}
   $ hg log -G
-  @  changeset:   6:033b3f5ae73d
+  @  changeset:   7:033b3f5ae73d
   |  tag:         tip
   |  user:        test
   |  date:        Thu Jan 01 00:00:00 1970 +0000
   |  summary:     split2
   |
-  o  changeset:   5:2d8abdb827cd
+  o  changeset:   6:2d8abdb827cd
   |  parent:      2:52149352b372
   |  user:        test
   |  date:        Thu Jan 01 00:00:00 1970 +0000
@@ -146,14 +148,14 @@
 Split a revision specified with -r
   $ echo "change to b" >> _b
   $ hg amend -m "_cprim"
-  2 new orphan changesets
+  2 new unstable changesets
   $ hg evolve --all
-  move:[5] split1
-  atop:[7] _cprim
-  move:[6] split2
+  move:[6] split1
+  atop:[9] _cprim
+  move:[7] split2
   working directory is now at * (glob)
   $ hg log -r "desc(_cprim)" -v -p
-  changeset:   7:b434287e665c
+  changeset:   9:b434287e665c
   parent:      1:37445b16603b
   user:        other-test-user
   date:        Thu Jan 01 00:00:00 1970 +0000
@@ -207,35 +209,37 @@
 remaining changes
 
   $ hg debugobsolete
-  1334a80b33c3f9873edab728fbbcf500eab61d2e d2fe56e71366c2c5376c89960c281395062c0619 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'amend', 'user': 'test'}
-  d2fe56e71366c2c5376c89960c281395062c0619 2d8abdb827cdf71ca477ef6985d7ceb257c53c1b 033b3f5ae73db67c10de938fb6f26b949aaef172 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '13', 'operation': 'split', 'user': 'test'}
-  52149352b372d39b19127d5bd2d488b1b63f9f85 b434287e665ce757ee5463a965cb3d119ca9e893 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '9', 'operation': 'amend', 'user': 'test'}
-  2d8abdb827cdf71ca477ef6985d7ceb257c53c1b e2b4afde39803bd42bb1374b230fca1b1e8cc868 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '4', 'operation': 'evolve', 'user': 'test'}
-  033b3f5ae73db67c10de938fb6f26b949aaef172 bb5e4f6020c74e7961a51fda635ea9df9b04dda8 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '4', 'operation': 'evolve', 'user': 'test'}
-  b434287e665ce757ee5463a965cb3d119ca9e893 ead2066d1dbf14833fe1069df1b735e4e9468c40 1188c4216eba37f18a1de6558564601d00ff2143 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '13', 'operation': 'split', 'user': 'test'}
+  1334a80b33c3f9873edab728fbbcf500eab61d2e d2fe56e71366c2c5376c89960c281395062c0619 0 (*) {'ef1': '8', 'user': 'test'} (glob)
+  06be89dfe2ae447383f30a2984933352757b6fb4 0 {1334a80b33c3f9873edab728fbbcf500eab61d2e} (*) {'ef1': '0', 'user': 'test'} (glob)
+  d2fe56e71366c2c5376c89960c281395062c0619 2d8abdb827cdf71ca477ef6985d7ceb257c53c1b 033b3f5ae73db67c10de938fb6f26b949aaef172 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '13', 'user': 'test'}
+  52149352b372d39b19127d5bd2d488b1b63f9f85 b434287e665ce757ee5463a965cb3d119ca9e893 0 (*) {'ef1': '9', 'user': 'test'} (glob)
+  7a4fc25a48a5797bb069563854455aecf738d8f2 0 {52149352b372d39b19127d5bd2d488b1b63f9f85} (*) {'ef1': '0', 'user': 'test'} (glob)
+  2d8abdb827cdf71ca477ef6985d7ceb257c53c1b e2b4afde39803bd42bb1374b230fca1b1e8cc868 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '4', 'user': 'test'}
+  033b3f5ae73db67c10de938fb6f26b949aaef172 bb5e4f6020c74e7961a51fda635ea9df9b04dda8 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '4', 'user': 'test'}
+  b434287e665ce757ee5463a965cb3d119ca9e893 ead2066d1dbf14833fe1069df1b735e4e9468c40 1188c4216eba37f18a1de6558564601d00ff2143 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '13', 'user': 'test'}
   $ hg evolve --all
-  move:[8] split1
-  atop:[11] split4
-  move:[9] split2
+  move:[10] split1
+  atop:[13] split4
+  move:[11] split2
   working directory is now at d74c6715e706
   $ hg log -G
-  @  changeset:   13:d74c6715e706
+  @  changeset:   15:d74c6715e706
   |  tag:         tip
   |  user:        test
   |  date:        Thu Jan 01 00:00:00 1970 +0000
   |  summary:     split2
   |
-  o  changeset:   12:3f134f739075
+  o  changeset:   14:3f134f739075
   |  user:        test
   |  date:        Thu Jan 01 00:00:00 1970 +0000
   |  summary:     split1
   |
-  o  changeset:   11:1188c4216eba
+  o  changeset:   13:1188c4216eba
   |  user:        other-test-user
   |  date:        Thu Jan 01 00:00:00 1970 +0000
   |  summary:     split4
   |
-  o  changeset:   10:ead2066d1dbf
+  o  changeset:   12:ead2066d1dbf
   |  parent:      1:37445b16603b
   |  user:        other-test-user
   |  date:        Thu Jan 01 00:00:00 1970 +0000
@@ -259,19 +263,19 @@
   $ echo "changetofilea" > _a
   $ hg amend
   $ hg book
-     bookA                     14:7a6b35779b85
-   * bookB                     14:7a6b35779b85
-  $ hg log -G -r "3f134f739075::"
-  @  changeset:   14:7a6b35779b85
+     bookA                     17:7a6b35779b85
+   * bookB                     17:7a6b35779b85
+  $ hg log -G -r "14::"
+  @  changeset:   17:7a6b35779b85
   |  bookmark:    bookA
   |  bookmark:    bookB
   |  tag:         tip
-  |  parent:      12:3f134f739075
+  |  parent:      14:3f134f739075
   |  user:        test
   |  date:        Thu Jan 01 00:00:00 1970 +0000
   |  summary:     split2
   |
-  o  changeset:   12:3f134f739075
+  o  changeset:   14:3f134f739075
   |  user:        test
   ~  date:        Thu Jan 01 00:00:00 1970 +0000
      summary:     split1
@@ -302,8 +306,8 @@
   
   created new head
   Done splitting? [yN] y
-  $ hg log -G -r "3f134f739075::"
-  @  changeset:   16:452a26648478
+  $ hg log -G -r "14::"
+  @  changeset:   19:452a26648478
   |  bookmark:    bookA
   |  bookmark:    bookB
   |  tag:         tip
@@ -311,20 +315,20 @@
   |  date:        Thu Jan 01 00:00:00 1970 +0000
   |  summary:     split6
   |
-  o  changeset:   15:1315679b77dc
-  |  parent:      12:3f134f739075
+  o  changeset:   18:1315679b77dc
+  |  parent:      14:3f134f739075
   |  user:        victor
   |  date:        Thu Jan 01 00:00:00 1970 +0000
   |  summary:     split5
   |
-  o  changeset:   12:3f134f739075
+  o  changeset:   14:3f134f739075
   |  user:        test
   ~  date:        Thu Jan 01 00:00:00 1970 +0000
      summary:     split1
   
   $ hg book
-     bookA                     16:452a26648478
-   * bookB                     16:452a26648478
+     bookA                     19:452a26648478
+   * bookB                     19:452a26648478
  
 Lastest revision is selected if multiple are given to -r
   $ hg split -r "desc(_a)::"
@@ -411,7 +415,7 @@
   active topic 'mytopic' grew its first changeset
   (see 'hg help topics' for more information)
   $ hg log -r . 
-  changeset:   18:26f72cfaf036
+  changeset:   21:26f72cfaf036
   branch:      new-branch
   tag:         tip
   topic:       mytopic
@@ -420,7 +424,7 @@
   summary:     Works on mytopic
   
   $ hg summary
-  parent: 18:26f72cfaf036 tip
+  parent: 21:26f72cfaf036 tip
    Works on mytopic
   branch: new-branch
   commit: 2 unknown (clean)
@@ -467,15 +471,15 @@
 Check that the topic is still here
 
   $ hg log -r "tip~1::"
-  changeset:   19:addcf498f19e
+  changeset:   22:addcf498f19e
   branch:      new-branch
   topic:       mytopic
-  parent:      17:fdb403258632
+  parent:      20:fdb403258632
   user:        test
   date:        Thu Jan 01 00:00:00 1970 +0000
   summary:     split7
   
-  changeset:   20:2532b288af61
+  changeset:   23:2532b288af61
   branch:      new-branch
   tag:         tip
   topic:       mytopic
@@ -494,7 +498,7 @@
   marked working directory as branch another-branch
   $ hg commit -m "To be splitted"
   $ hg log -G -l 3
-  @  changeset:   21:8dad923bdb9b
+  @  changeset:   24:8dad923bdb9b
   |  branch:      another-branch
   |  tag:         tip
   |  topic:       mytopic
@@ -502,17 +506,17 @@
   |  date:        Thu Jan 01 00:00:00 1970 +0000
   |  summary:     To be splitted
   |
-  o  changeset:   20:2532b288af61
+  o  changeset:   23:2532b288af61
   |  branch:      new-branch
   |  topic:       mytopic
   |  user:        test
   |  date:        Thu Jan 01 00:00:00 1970 +0000
   |  summary:     split8
   |
-  o  changeset:   19:addcf498f19e
+  o  changeset:   22:addcf498f19e
   |  branch:      new-branch
   ~  topic:       mytopic
-     parent:      17:fdb403258632
+     parent:      20:fdb403258632
      user:        test
      date:        Thu Jan 01 00:00:00 1970 +0000
      summary:     split7
@@ -559,7 +563,7 @@
 
 The splitted changesets should be on the 'another-branch'
   $ hg log -G -l 3
-  @  changeset:   23:56a59faa8af7
+  @  changeset:   26:56a59faa8af7
   |  branch:      another-branch
   |  tag:         tip
   |  topic:       mytopic
@@ -567,15 +571,15 @@
   |  date:        Thu Jan 01 00:00:00 1970 +0000
   |  summary:     split10
   |
-  o  changeset:   22:75695e3e2300
+  o  changeset:   25:75695e3e2300
   |  branch:      another-branch
   |  topic:       mytopic
-  |  parent:      20:2532b288af61
+  |  parent:      23:2532b288af61
   |  user:        test
   |  date:        Thu Jan 01 00:00:00 1970 +0000
   |  summary:     split9
   |
-  o  changeset:   20:2532b288af61
+  o  changeset:   23:2532b288af61
   |  branch:      new-branch
   ~  topic:       mytopic
      user:        test
@@ -595,7 +599,7 @@
   0 files updated, 0 files merged, 2 files removed, 0 files unresolved
 
   $ hg log -G -l 2
-  o  changeset:   24:b1020d17c364
+  o  changeset:   27:b1020d17c364
   |  branch:      yet-another-branch
   |  tag:         tip
   |  topic:       mytopic
@@ -603,7 +607,7 @@
   |  date:        Thu Jan 01 00:00:00 1970 +0000
   |  summary:     To be splitted again
   |
-  @  changeset:   23:56a59faa8af7
+  @  changeset:   26:56a59faa8af7
   |  branch:      another-branch
   ~  topic:       mytopic
      user:        test
@@ -635,7 +639,7 @@
   another-branch
 
   $ hg log -G -l 2
-  o  changeset:   24:b1020d17c364
+  o  changeset:   27:b1020d17c364
   |  branch:      yet-another-branch
   |  tag:         tip
   |  topic:       mytopic
@@ -643,7 +647,7 @@
   |  date:        Thu Jan 01 00:00:00 1970 +0000
   |  summary:     To be splitted again
   |
-  @  changeset:   23:56a59faa8af7
+  @  changeset:   26:56a59faa8af7
   |  branch:      another-branch
   ~  topic:       mytopic
      user:        test