tests/test-stablesort.t
changeset 3254 00e20077bccf
parent 3246 543708c3f754
child 3255 bb3f8c8c1232
equal deleted inserted replaced
3253:8dcb9e929a57 3254:00e20077bccf
     7   > [extensions]
     7   > [extensions]
     8   > hgext3rd.evolve =
     8   > hgext3rd.evolve =
     9   > [ui]
     9   > [ui]
    10   > logtemplate = "{rev} {node|short} {desc} {tags}\n"
    10   > logtemplate = "{rev} {node|short} {desc} {tags}\n"
    11   > [alias]
    11   > [alias]
    12   > showsort = debugstablesort --template="{node|short}\n" --method branchpoint
    12   > showsort = debugstablesort --template="{node|short}\n" --method basic-mergepoint
    13   > EOF
    13   > EOF
    14 
    14 
    15 
    15 
    16 
    16 
    17   $ checktopo () {
    17   $ checktopo () {
   111   1ea73414a91b
   111   1ea73414a91b
   112   66f7d451a68b
   112   66f7d451a68b
   113   fa942426a6fd
   113   fa942426a6fd
   114   2b6d669947cd
   114   2b6d669947cd
   115   43227190fef8
   115   43227190fef8
   116   bab5d5bf48bd
       
   117   b4594d867745
       
   118   e46a4836065c
       
   119   e7d9710d9fc6
       
   120   d62d843c9a01
       
   121   dcbb326fdec2
       
   122   ff43616e5d0f
       
   123   4c748ffd1a46
   116   4c748ffd1a46
   124   f0f3ef9a6cd5
   117   f0f3ef9a6cd5
   125   1d8d22637c2d
   118   1d8d22637c2d
   126   2702dd0c91e7
   119   2702dd0c91e7
       
   120   bab5d5bf48bd
       
   121   b4594d867745
       
   122   e7d9710d9fc6
       
   123   d62d843c9a01
       
   124   dcbb326fdec2
       
   125   e46a4836065c
       
   126   ff43616e5d0f
   127 
   127 
   128 Verify the topological order
   128 Verify the topological order
   129 ----------------------------
   129 ----------------------------
   130 
   130 
   131 Check we we did not issued a node before on ancestor
   131 Check we we did not issued a node before on ancestor
   136   === checking 1ea73414a91b ===
   136   === checking 1ea73414a91b ===
   137   === checking 66f7d451a68b ===
   137   === checking 66f7d451a68b ===
   138   === checking fa942426a6fd ===
   138   === checking fa942426a6fd ===
   139   === checking 2b6d669947cd ===
   139   === checking 2b6d669947cd ===
   140   === checking 43227190fef8 ===
   140   === checking 43227190fef8 ===
   141   === checking bab5d5bf48bd ===
       
   142   === checking b4594d867745 ===
       
   143   === checking e46a4836065c ===
       
   144   === checking e7d9710d9fc6 ===
       
   145   === checking d62d843c9a01 ===
       
   146   === checking dcbb326fdec2 ===
       
   147   === checking ff43616e5d0f ===
       
   148   === checking 4c748ffd1a46 ===
   141   === checking 4c748ffd1a46 ===
   149   === checking f0f3ef9a6cd5 ===
   142   === checking f0f3ef9a6cd5 ===
   150   === checking 1d8d22637c2d ===
   143   === checking 1d8d22637c2d ===
   151   === checking 2702dd0c91e7 ===
   144   === checking 2702dd0c91e7 ===
       
   145   === checking bab5d5bf48bd ===
       
   146   === checking b4594d867745 ===
       
   147   === checking e7d9710d9fc6 ===
       
   148   === checking d62d843c9a01 ===
       
   149   === checking dcbb326fdec2 ===
       
   150   === checking e46a4836065c ===
       
   151   === checking ff43616e5d0f ===
   152 
   152 
   153 Check stability
   153 Check stability
   154 ===============
   154 ===============
   155 
   155 
   156 have repo with changesets in orders
   156 have repo with changesets in orders
   407   B
   407   B
   408   C
   408   C
   409   D
   409   D
   410 
   410 
   411   $ python "$RUNTESTDIR/md5sum.py" *.all.order
   411   $ python "$RUNTESTDIR/md5sum.py" *.all.order
   412   0c6b2e6f15249c0359b0f93e28c5bd1c  A.all.order
   412   4f54f623da142833149055fb83022a7e  A.all.order
   413   0c6b2e6f15249c0359b0f93e28c5bd1c  B.all.order
   413   4f54f623da142833149055fb83022a7e  B.all.order
   414   0c6b2e6f15249c0359b0f93e28c5bd1c  C.all.order
   414   4f54f623da142833149055fb83022a7e  C.all.order
   415   0c6b2e6f15249c0359b0f93e28c5bd1c  D.all.order
   415   4f54f623da142833149055fb83022a7e  D.all.order
   416 
   416 
   417 one specific head
   417 one specific head
   418 
   418 
   419   $ for x in $repos; do
   419   $ for x in $repos; do
   420   >     hg -R repo_$x showsort --rev 'b4594d867745' > ${x}.b4594d867745.order;
   420   >     hg -R repo_$x showsort --rev 'b4594d867745' > ${x}.b4594d867745.order;
   615   01241442b3c2
   615   01241442b3c2
   616   2dc09a01254d
   616   2dc09a01254d
   617   abf57d94268b
   617   abf57d94268b
   618   529dfc5bb875
   618   529dfc5bb875
   619   e7bd5218ca15
   619   e7bd5218ca15
       
   620   6ee532b68cfa
       
   621   001194dd78d5
   620   3a367db1fabc
   622   3a367db1fabc
   621   a2f58e9c1e56
   623   a2f58e9c1e56
   622   5f18015f9110
   624   5f18015f9110
   623   9fff0871d230
   625   9fff0871d230
   624   4dbf739dd63f
   626   4dbf739dd63f
   625   d64d500024d1
   627   d64d500024d1
   626   6ee532b68cfa
       
   627   001194dd78d5
       
   628   0496f0a6a143
   628   0496f0a6a143
   629   1c645e73dbc6
   629   1c645e73dbc6
   630   160a7a0adbf4
   630   160a7a0adbf4
   631   a66b68853635
   631   a66b68853635
   632   013b27f11536
   632   013b27f11536
   637   === checking 01241442b3c2 ===
   637   === checking 01241442b3c2 ===
   638   === checking 2dc09a01254d ===
   638   === checking 2dc09a01254d ===
   639   === checking abf57d94268b ===
   639   === checking abf57d94268b ===
   640   === checking 529dfc5bb875 ===
   640   === checking 529dfc5bb875 ===
   641   === checking e7bd5218ca15 ===
   641   === checking e7bd5218ca15 ===
       
   642   === checking 6ee532b68cfa ===
       
   643   === checking 001194dd78d5 ===
   642   === checking 3a367db1fabc ===
   644   === checking 3a367db1fabc ===
   643   === checking a2f58e9c1e56 ===
   645   === checking a2f58e9c1e56 ===
   644   === checking 5f18015f9110 ===
   646   === checking 5f18015f9110 ===
   645   === checking 9fff0871d230 ===
   647   === checking 9fff0871d230 ===
   646   === checking 4dbf739dd63f ===
   648   === checking 4dbf739dd63f ===
   647   === checking d64d500024d1 ===
   649   === checking d64d500024d1 ===
   648   === checking 6ee532b68cfa ===
       
   649   === checking 001194dd78d5 ===
       
   650   === checking 0496f0a6a143 ===
   650   === checking 0496f0a6a143 ===
   651   === checking 1c645e73dbc6 ===
   651   === checking 1c645e73dbc6 ===
   652   === checking 160a7a0adbf4 ===
   652   === checking 160a7a0adbf4 ===
   653   === checking a66b68853635 ===
   653   === checking a66b68853635 ===
   654   === checking 013b27f11536 ===
   654   === checking 013b27f11536 ===
   672   >   hg pull -r $x --quiet
   672   >   hg pull -r $x --quiet
   673   > done;
   673   > done;
   674   $ hg pull --quiet
   674   $ hg pull --quiet
   675   $ hg showsort --rev 'all()' > ../multiple.random.order
   675   $ hg showsort --rev 'all()' > ../multiple.random.order
   676   $ python "$RUNTESTDIR/md5sum.py" ../multiple.*.order
   676   $ python "$RUNTESTDIR/md5sum.py" ../multiple.*.order
   677   6ff802a0a5f0a3ddd82b25f860238fbd  ../multiple.random.order
   677   a6547220a9f004c975e365d9561639dd  ../multiple.random.order
   678   6ff802a0a5f0a3ddd82b25f860238fbd  ../multiple.source.order
   678   a6547220a9f004c975e365d9561639dd  ../multiple.source.order
   679   $ hg showsort --rev 'all()'
   679   $ hg showsort --rev 'all()'
   680   1ea73414a91b
   680   1ea73414a91b
   681   66f7d451a68b
   681   66f7d451a68b
   682   01241442b3c2
   682   01241442b3c2
   683   2dc09a01254d
   683   2dc09a01254d
   684   abf57d94268b
   684   abf57d94268b
   685   529dfc5bb875
   685   529dfc5bb875
   686   e7bd5218ca15
   686   e7bd5218ca15
       
   687   6ee532b68cfa
       
   688   001194dd78d5
   687   3a367db1fabc
   689   3a367db1fabc
   688   a2f58e9c1e56
   690   a2f58e9c1e56
   689   5f18015f9110
   691   5f18015f9110
   690   9fff0871d230
   692   9fff0871d230
   691   4dbf739dd63f
   693   4dbf739dd63f
   692   d64d500024d1
   694   d64d500024d1
   693   6ee532b68cfa
       
   694   001194dd78d5
       
   695   0496f0a6a143
   695   0496f0a6a143
   696   1c645e73dbc6
   696   1c645e73dbc6
   697   160a7a0adbf4
   697   160a7a0adbf4
   698   a66b68853635
   698   a66b68853635
   699   013b27f11536
   699   013b27f11536