tests/test-evolve-public-content-divergent-corner-cases.t
branchmercurial-4.7
changeset 5367 cb5983c0287f
parent 5162 a7fb433faab6
parent 5364 be5aa681c122
child 5368 844b1ad5b34b
equal deleted inserted replaced
5283:02cc51ca6795 5367:cb5983c0287f
   135   merge:[4] added c
   135   merge:[4] added c
   136   with: [5] updated c
   136   with: [5] updated c
   137   base: [2] added c
   137   base: [2] added c
   138   rebasing "other" content-divergent changeset f5f9b4fc8b77 on c9241b0f2d5b
   138   rebasing "other" content-divergent changeset f5f9b4fc8b77 on c9241b0f2d5b
   139   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   139   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   140   committed as 3b336cbee992
   140   committed as 0941937e8302
   141   working directory is now at 3b336cbee992
   141   working directory is now at 0941937e8302
   142 
   142 
   143   $ hg glog -p
   143   $ hg glog -p
   144   @  8:3b336cbee992 phase-divergent update to c0d7ee6604ea:
   144   @  8:0941937e8302 phase-divergent update to c0d7ee6604ea:
   145   |   draft
   145   |   draft
   146   |
   146   |
   147   |  diff -r c0d7ee6604ea -r 3b336cbee992 c
   147   |  diff -r c0d7ee6604ea -r 0941937e8302 c
   148   |  --- a/c	Thu Jan 01 00:00:00 1970 +0000
   148   |  --- a/c	Thu Jan 01 00:00:00 1970 +0000
   149   |  +++ b/c	Thu Jan 01 00:00:00 1970 +0000
   149   |  +++ b/c	Thu Jan 01 00:00:00 1970 +0000
   150   |  @@ -1,1 +1,2 @@
   150   |  @@ -1,1 +1,2 @@
   151   |   c
   151   |   c
   152   |  +cc
   152   |  +cc
   364      +++ b/a	Thu Jan 01 00:00:00 1970 +0000
   364      +++ b/a	Thu Jan 01 00:00:00 1970 +0000
   365      @@ -0,0 +1,1 @@
   365      @@ -0,0 +1,1 @@
   366      +a
   366      +a
   367   
   367   
   368 
   368 
       
   369   $ hg debugobsolete
       
   370   9150fe93bec603cd88d05cda9f6ff13420cb53e9 93cd84bbdacaeb8f881c29a609dbdd30c38cbc57 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'prune', 'user': 'test'}
       
   371   9150fe93bec603cd88d05cda9f6ff13420cb53e9 e568fd1029bbe9d506275bbb9a034a0509d80324 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '13', 'operation': 'prune', 'user': 'test'}
   369   $ hg obslog --all --rev tip --patch
   372   $ hg obslog --all --rev tip --patch
   370   @  93cd84bbdaca (5) added d
   373   @  93cd84bbdaca (5) added d
       
   374   |    amended(content) from 9150fe93bec6 using prune by test (Thu Jan 01 00:00:00 1970 +0000)
       
   375   |      diff -r 9150fe93bec6 -r 93cd84bbdaca d
       
   376   |      --- a/d	Thu Jan 01 00:00:00 1970 +0000
       
   377   |      +++ b/d	Thu Jan 01 00:00:00 1970 +0000
       
   378   |      @@ -1,1 +1,1 @@
       
   379   |      -d
       
   380   |      +dd
       
   381   |
   371   |
   382   |
   372   | *  e568fd1029bb (4) added c e
   383   | *  e568fd1029bb (4) added c e
   373   |/
   384   |/     rewritten(description, parent, content) from 9150fe93bec6 using prune by test (Thu Jan 01 00:00:00 1970 +0000)
       
   385   |        (No patch available, changesets rebased)
       
   386   |
   374   x  9150fe93bec6 (3) added d
   387   x  9150fe93bec6 (3) added d
   375        amended(content) as 93cd84bbdaca using prune by test (Thu Jan 01 00:00:00 1970 +0000)
       
   376          diff -r 9150fe93bec6 -r 93cd84bbdaca d
       
   377          --- a/d	Thu Jan 01 00:00:00 1970 +0000
       
   378          +++ b/d	Thu Jan 01 00:00:00 1970 +0000
       
   379          @@ -1,1 +1,1 @@
       
   380          -d
       
   381          +dd
       
   382   
       
   383        rewritten(description, parent, content) as e568fd1029bb using prune by test (Thu Jan 01 00:00:00 1970 +0000)
       
   384          (No patch available, changesets rebased)
       
   385   
   388   
   386 
   389 
   387   $ hg evolve --content-divergent --any --update
   390   $ hg evolve --content-divergent --any --update
   388   merge:[5] added d
   391   merge:[5] added d
   389   with: [4] added c e
   392   with: [4] added c e
   441   $ hg resolve -m d
   444   $ hg resolve -m d
   442   (no more unresolved files)
   445   (no more unresolved files)
   443   continue: hg evolve --continue
   446   continue: hg evolve --continue
   444 
   447 
   445   $ hg evolve --continue
   448   $ hg evolve --continue
   446   committed as bc1f4610744c
   449   committed as bb4d94ae1a5a
   447   working directory is now at bc1f4610744c
   450   working directory is now at bb4d94ae1a5a
   448 
   451 
   449   $ hg export
   452   $ hg export
   450   # HG changeset patch
   453   # HG changeset patch
   451   # User test
   454   # User test
   452   # Date 0 0
   455   # Date 0 0
   453   #      Thu Jan 01 00:00:00 1970 +0000
   456   #      Thu Jan 01 00:00:00 1970 +0000
   454   # Node ID bc1f4610744c6aa0e851d3876a61bfff6243b31c
   457   # Node ID bb4d94ae1a5ac031ba524ef30850f32b9b50a560
   455   # Parent  93cd84bbdacaeb8f881c29a609dbdd30c38cbc57
   458   # Parent  93cd84bbdacaeb8f881c29a609dbdd30c38cbc57
   456   phase-divergent update to 93cd84bbdaca:
   459   phase-divergent update to 93cd84bbdaca:
   457   
   460   
   458   added c e
   461   added c e
   459   
   462   
   460   diff -r 93cd84bbdaca -r bc1f4610744c d
   463   diff -r 93cd84bbdaca -r bb4d94ae1a5a d
   461   --- a/d	Thu Jan 01 00:00:00 1970 +0000
   464   --- a/d	Thu Jan 01 00:00:00 1970 +0000
   462   +++ b/d	Thu Jan 01 00:00:00 1970 +0000
   465   +++ b/d	Thu Jan 01 00:00:00 1970 +0000
   463   @@ -1,1 +1,1 @@
   466   @@ -1,1 +1,1 @@
   464   -dd
   467   -dd
   465   +resolved
   468   +resolved
   466   diff -r 93cd84bbdaca -r bc1f4610744c e
   469   diff -r 93cd84bbdaca -r bb4d94ae1a5a e
   467   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   470   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   468   +++ b/e	Thu Jan 01 00:00:00 1970 +0000
   471   +++ b/e	Thu Jan 01 00:00:00 1970 +0000
   469   @@ -0,0 +1,1 @@
   472   @@ -0,0 +1,1 @@
   470   +e
   473   +e
   471 
   474 
   749   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   752   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
   750   +++ b/c_F	Thu Jan 01 00:00:00 1970 +0000
   753   +++ b/c_F	Thu Jan 01 00:00:00 1970 +0000
   751   @@ -0,0 +1,1 @@
   754   @@ -0,0 +1,1 @@
   752   +c_F
   755   +c_F
   753 
   756 
       
   757   $ hg debugobsolete
       
   758   4ab2719bbab9c0f4addf11ab7fa3cf3e1a832c2d c7d2d47c7240562be5cbd1a24080dd0396178709 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '4', 'operation': 'rebase', 'user': 'test'}
       
   759   77ccbf8d837e0eb67e09569335146263e7d61551 a52ac76b45f523a039fc4a938d79874f4bdb1a85 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '4', 'operation': 'rebase', 'user': 'test'}
       
   760   4ab2719bbab9c0f4addf11ab7fa3cf3e1a832c2d b4a584aea4bd8d771184530d445a582251275f37 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '4', 'operation': 'rebase', 'user': 'test'}
       
   761   77ccbf8d837e0eb67e09569335146263e7d61551 8ae8db670b4ad2385b9e008122af42ef6048a675 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '4', 'operation': 'rebase', 'user': 'test'}
       
   762   b4a584aea4bd8d771184530d445a582251275f37 0773642cfa95002f7937f44bec95dd208564c64e 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '4', 'operation': 'evolve', 'user': 'test'}
       
   763   0773642cfa95002f7937f44bec95dd208564c64e c7d2d47c7240562be5cbd1a24080dd0396178709 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '0', 'operation': 'evolve', 'user': 'test'}
       
   764   8ae8db670b4ad2385b9e008122af42ef6048a675 6a87ed4aa31771f9041ca1260a91f7185f38f15c 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '4', 'operation': 'evolve', 'user': 'test'}
       
   765   6a87ed4aa31771f9041ca1260a91f7185f38f15c a52ac76b45f523a039fc4a938d79874f4bdb1a85 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '0', 'operation': 'evolve', 'user': 'test'}
   754   $ hg obslog --rev a52ac76b45f5
   766   $ hg obslog --rev a52ac76b45f5
   755   @    a52ac76b45f5 (8) c_F
   767   @    a52ac76b45f5 (8) c_F
   756   |\
   768   |\     rewritten from 6a87ed4aa317 using evolve by test (Thu Jan 01 00:00:00 1970 +0000)
       
   769   | |    rebased(parent) from 77ccbf8d837e using rebase by test (Thu Jan 01 00:00:00 1970 +0000)
       
   770   | |
   757   x |  6a87ed4aa317 (12) c_F
   771   x |  6a87ed4aa317 (12) c_F
   758   | |    rewritten as a52ac76b45f5 using evolve by test (Thu Jan 01 00:00:00 1970 +0000)
   772   | |    rebased(parent) from 8ae8db670b4a using evolve by test (Thu Jan 01 00:00:00 1970 +0000)
   759   | |
   773   | |
   760   x |  8ae8db670b4a (10) c_F
   774   x |  8ae8db670b4a (10) c_F
   761   |/     rebased(parent) as 6a87ed4aa317 using evolve by test (Thu Jan 01 00:00:00 1970 +0000)
   775   |/     rebased(parent) from 77ccbf8d837e using rebase by test (Thu Jan 01 00:00:00 1970 +0000)
   762   |
   776   |
   763   x  77ccbf8d837e (6) c_F
   777   x  77ccbf8d837e (6) c_F
   764        rebased(parent) as 8ae8db670b4a using rebase by test (Thu Jan 01 00:00:00 1970 +0000)
   778   
   765        rebased(parent) as a52ac76b45f5 using rebase by test (Thu Jan 01 00:00:00 1970 +0000)
       
   766