tests/test-evolve-cycles.t
changeset 2575 9019d41998ab
parent 2484 262d684851dc
child 2587 cbc7a69116bd
equal deleted inserted replaced
2574:b6458de417bb 2575:9019d41998ab
     9   > interactive = true
     9   > interactive = true
    10   > [phases]
    10   > [phases]
    11   > publish=False
    11   > publish=False
    12   > [extensions]
    12   > [extensions]
    13   > evolve =
    13   > evolve =
       
    14   > [experimental]
       
    15   > evolution.effect-flags = yes
    14   > EOF
    16   > EOF
    15 
    17 
    16 Test with cycle
    18 Test with cycle
    17 ===============
    19 ===============
    18 
    20 
    84 
    86 
    85 Check that debugobshistory never crash on a cycle
    87 Check that debugobshistory never crash on a cycle
    86 
    88 
    87   $ hg obslog "desc(A)" --hidden
    89   $ hg obslog "desc(A)" --hidden
    88   @  2a34000d3544 (1) A
    90   @  2a34000d3544 (1) A
    89   |    rewritten by test (*) as c473644ee0e9 (glob)
    91   |    rewritten(description, parent, content) by test (*) as c473644ee0e9 (glob)
    90   |
    92   |
    91   x  a8df460dbbfe (3) C
    93   x  a8df460dbbfe (3) C
    92   |    rewritten by test (*) as 2a34000d3544 (glob)
    94   |    rewritten(description, parent, content) by test (*) as 2a34000d3544 (glob)
    93   |
    95   |
    94   x  c473644ee0e9 (2) B
    96   x  c473644ee0e9 (2) B
    95   |    rewritten by test (*) as a8df460dbbfe (glob)
    97   |    rewritten(description, parent, content) by test (*) as a8df460dbbfe (glob)
    96   |
    98   |
    97 
    99 
    98   $ hg obslog "desc(B)" --hidden
   100   $ hg obslog "desc(B)" --hidden
    99   @  2a34000d3544 (1) A
   101   @  2a34000d3544 (1) A
   100   |    rewritten by test (*) as c473644ee0e9 (glob)
   102   |    rewritten(description, parent, content) by test (*) as c473644ee0e9 (glob)
   101   |
   103   |
   102   x  a8df460dbbfe (3) C
   104   x  a8df460dbbfe (3) C
   103   |    rewritten by test (*) as 2a34000d3544 (glob)
   105   |    rewritten(description, parent, content) by test (*) as 2a34000d3544 (glob)
   104   |
   106   |
   105   x  c473644ee0e9 (2) B
   107   x  c473644ee0e9 (2) B
   106   |    rewritten by test (*) as a8df460dbbfe (glob)
   108   |    rewritten(description, parent, content) by test (*) as a8df460dbbfe (glob)
   107   |
   109   |
   108 
   110 
   109   $ hg obslog "desc(C)" --hidden
   111   $ hg obslog "desc(C)" --hidden
   110   @  2a34000d3544 (1) A
   112   @  2a34000d3544 (1) A
   111   |    rewritten by test (*) as c473644ee0e9 (glob)
   113   |    rewritten(description, parent, content) by test (*) as c473644ee0e9 (glob)
   112   |
   114   |
   113   x  a8df460dbbfe (3) C
   115   x  a8df460dbbfe (3) C
   114   |    rewritten by test (*) as 2a34000d3544 (glob)
   116   |    rewritten(description, parent, content) by test (*) as 2a34000d3544 (glob)
   115   |
   117   |
   116   x  c473644ee0e9 (2) B
   118   x  c473644ee0e9 (2) B
   117   |    rewritten by test (*) as a8df460dbbfe (glob)
   119   |    rewritten(description, parent, content) by test (*) as a8df460dbbfe (glob)
   118   |
   120   |
   119 
   121 
   120 Check that all option don't crash on a cycle either
   122 Check that all option don't crash on a cycle either
   121 
   123 
   122   $ hg obslog "desc(C)" --hidden --all
   124   $ hg obslog "desc(C)" --hidden --all
   123   @  2a34000d3544 (1) A
   125   @  2a34000d3544 (1) A
   124   |    rewritten by test (*) as c473644ee0e9 (glob)
   126   |    rewritten(description, parent, content) by test (*) as c473644ee0e9 (glob)
   125   |
   127   |
   126   x  a8df460dbbfe (3) C
   128   x  a8df460dbbfe (3) C
   127   |    rewritten by test (*) as 2a34000d3544 (glob)
   129   |    rewritten(description, parent, content) by test (*) as 2a34000d3544 (glob)
   128   |
   130   |
   129   x  c473644ee0e9 (2) B
   131   x  c473644ee0e9 (2) B
   130   |    rewritten by test (*) as a8df460dbbfe (glob)
   132   |    rewritten(description, parent, content) by test (*) as a8df460dbbfe (glob)
   131   |
   133   |
   132 
   134 
   133 Test with multiple cyles
   135 Test with multiple cyles
   134 ========================
   136 ========================
   135 
   137 
   241 
   243 
   242 Check that debugobshistory never crash on a cycle
   244 Check that debugobshistory never crash on a cycle
   243 
   245 
   244   $ hg obslog "desc(D)" --hidden
   246   $ hg obslog "desc(D)" --hidden
   245   x  0da815c333f6 (5) E
   247   x  0da815c333f6 (5) E
   246   |    rewritten by test (*) as d9f908fde1a1 (glob)
   248   |    rewritten(description, parent, content) by test (*) as d9f908fde1a1 (glob)
   247   |
   249   |
   248   @    868d2e0eb19c (4) D
   250   @    868d2e0eb19c (4) D
   249   |\     rewritten by test (*) as 0da815c333f6 (glob)
   251   |\     rewritten(description, parent, content) by test (*) as 0da815c333f6 (glob)
   250   | |
   252   | |
   251   | x  d9f908fde1a1 (6) F
   253   | x  d9f908fde1a1 (6) F
   252   | |    rewritten by test (*) as 868d2e0eb19c (glob)
   254   | |    rewritten(description, parent, content) by test (*) as 868d2e0eb19c (glob)
   253   | |
   255   | |
   254   +---x  2a34000d3544 (1) A
   256   +---x  2a34000d3544 (1) A
   255   | |      rewritten by test (*) as c473644ee0e9 (glob)
   257   | |      rewritten(description, parent, content) by test (*) as c473644ee0e9 (glob)
   256   | |
   258   | |
   257   x |  a8df460dbbfe (3) C
   259   x |  a8df460dbbfe (3) C
   258   | |    rewritten by test (*) as 2a34000d3544, 868d2e0eb19c (glob)
   260   | |    rewritten(description, parent, content) by test (*) as 2a34000d3544, 868d2e0eb19c (glob)
   259   | |
   261   | |
   260   x |  c473644ee0e9 (2) B
   262   x |  c473644ee0e9 (2) B
   261   | |    rewritten by test (*) as a8df460dbbfe (glob)
   263   | |    rewritten(description, parent, content) by test (*) as a8df460dbbfe (glob)
   262   | |
   264   | |
   263 Check that all option don't crash either on a cycle
   265 Check that all option don't crash either on a cycle
   264   $ hg obslog --all --hidden "desc(F)"
   266   $ hg obslog --all --hidden "desc(F)"
   265   x  0da815c333f6 (5) E
   267   x  0da815c333f6 (5) E
   266   |    rewritten by test (*) as d9f908fde1a1 (glob)
   268   |    rewritten(description, parent, content) by test (*) as d9f908fde1a1 (glob)
   267   |
   269   |
   268   @    868d2e0eb19c (4) D
   270   @    868d2e0eb19c (4) D
   269   |\     rewritten by test (*) as 0da815c333f6 (glob)
   271   |\     rewritten(description, parent, content) by test (*) as 0da815c333f6 (glob)
   270   | |
   272   | |
   271   | x  d9f908fde1a1 (6) F
   273   | x  d9f908fde1a1 (6) F
   272   | |    rewritten by test (*) as 868d2e0eb19c (glob)
   274   | |    rewritten(description, parent, content) by test (*) as 868d2e0eb19c (glob)
   273   | |
   275   | |
   274   +---x  2a34000d3544 (1) A
   276   +---x  2a34000d3544 (1) A
   275   | |      rewritten by test (*) as c473644ee0e9 (glob)
   277   | |      rewritten(description, parent, content) by test (*) as c473644ee0e9 (glob)
   276   | |
   278   | |
   277   x |  a8df460dbbfe (3) C
   279   x |  a8df460dbbfe (3) C
   278   | |    rewritten by test (*) as 2a34000d3544, 868d2e0eb19c (glob)
   280   | |    rewritten(description, parent, content) by test (*) as 2a34000d3544, 868d2e0eb19c (glob)
   279   | |
   281   | |
   280   x |  c473644ee0e9 (2) B
   282   x |  c473644ee0e9 (2) B
   281   | |    rewritten by test (*) as a8df460dbbfe (glob)
   283   | |    rewritten(description, parent, content) by test (*) as a8df460dbbfe (glob)
   282   | |
   284   | |
   283 Check the json output is valid in this case
   285 Check the json output is valid in this case
   284 
   286 
   285   $ hg obslog "desc(D)" --hidden --no-graph -Tjson | python -m json.tool
   287   $ hg obslog "desc(D)" --hidden --no-graph -Tjson | python -m json.tool
   286   [
   288   [
   287       {
   289       {
   288           "debugobshistory.markers": [
   290           "debugobshistory.markers": [
   289               {
   291               {
       
   292                   "debugobshistory.effect": [
       
   293                       "description",
       
   294                       "parent",
       
   295                       "content"
       
   296                   ],
   290                   "debugobshistory.marker_date": [
   297                   "debugobshistory.marker_date": [
   291                       *, (glob)
   298                       *, (glob)
   292                       0
   299                       0
   293                   ],
   300                   ],
   294                   "debugobshistory.marker_user": "test",
   301                   "debugobshistory.marker_user": "test",
   303           "debugobshistory.shortdescription": "D"
   310           "debugobshistory.shortdescription": "D"
   304       },
   311       },
   305       {
   312       {
   306           "debugobshistory.markers": [
   313           "debugobshistory.markers": [
   307               {
   314               {
       
   315                   "debugobshistory.effect": [
       
   316                       "description",
       
   317                       "parent",
       
   318                       "content"
       
   319                   ],
   308                   "debugobshistory.marker_date": [
   320                   "debugobshistory.marker_date": [
   309                       *, (glob)
   321                       *, (glob)
   310                       0
   322                       0
   311                   ],
   323                   ],
   312                   "debugobshistory.marker_user": "test",
   324                   "debugobshistory.marker_user": "test",
   321           "debugobshistory.shortdescription": "F"
   333           "debugobshistory.shortdescription": "F"
   322       },
   334       },
   323       {
   335       {
   324           "debugobshistory.markers": [
   336           "debugobshistory.markers": [
   325               {
   337               {
       
   338                   "debugobshistory.effect": [
       
   339                       "description",
       
   340                       "parent",
       
   341                       "content"
       
   342                   ],
   326                   "debugobshistory.marker_date": [
   343                   "debugobshistory.marker_date": [
   327                       *, (glob)
   344                       *, (glob)
   328                       0
   345                       0
   329                   ],
   346                   ],
   330                   "debugobshistory.marker_user": "test",
   347                   "debugobshistory.marker_user": "test",
   339           "debugobshistory.shortdescription": "E"
   356           "debugobshistory.shortdescription": "E"
   340       },
   357       },
   341       {
   358       {
   342           "debugobshistory.markers": [
   359           "debugobshistory.markers": [
   343               {
   360               {
       
   361                   "debugobshistory.effect": [
       
   362                       "description",
       
   363                       "parent",
       
   364                       "content"
       
   365                   ],
   344                   "debugobshistory.marker_date": [
   366                   "debugobshistory.marker_date": [
   345                       *, (glob)
   367                       *, (glob)
   346                       0
   368                       0
   347                   ],
   369                   ],
   348                   "debugobshistory.marker_user": "test",
   370                   "debugobshistory.marker_user": "test",
   358           "debugobshistory.shortdescription": "C"
   380           "debugobshistory.shortdescription": "C"
   359       },
   381       },
   360       {
   382       {
   361           "debugobshistory.markers": [
   383           "debugobshistory.markers": [
   362               {
   384               {
       
   385                   "debugobshistory.effect": [
       
   386                       "description",
       
   387                       "parent",
       
   388                       "content"
       
   389                   ],
   363                   "debugobshistory.marker_date": [
   390                   "debugobshistory.marker_date": [
   364                       *, (glob)
   391                       *, (glob)
   365                       0
   392                       0
   366                   ],
   393                   ],
   367                   "debugobshistory.marker_user": "test",
   394                   "debugobshistory.marker_user": "test",
   376           "debugobshistory.shortdescription": "B"
   403           "debugobshistory.shortdescription": "B"
   377       },
   404       },
   378       {
   405       {
   379           "debugobshistory.markers": [
   406           "debugobshistory.markers": [
   380               {
   407               {
       
   408                   "debugobshistory.effect": [
       
   409                       "description",
       
   410                       "parent",
       
   411                       "content"
       
   412                   ],
   381                   "debugobshistory.marker_date": [
   413                   "debugobshistory.marker_date": [
   382                       *, (glob)
   414                       *, (glob)
   383                       0
   415                       0
   384                   ],
   416                   ],
   385                   "debugobshistory.marker_user": "test",
   417                   "debugobshistory.marker_user": "test",