tests/test-blackbox.t
changeset 28247 d2c0527af364
parent 28246 b862e793ec10
child 28248 851c41a21869
equal deleted inserted replaced
28246:b862e793ec10 28247:d2c0527af364
    10 
    10 
    11 command, exit codes, and duration
    11 command, exit codes, and duration
    12 
    12 
    13   $ echo a > a
    13   $ echo a > a
    14   $ hg add a
    14   $ hg add a
    15   $ hg id --config blackbox.dirty=True > /dev/null
       
    16   $ hg blackbox --config blackbox.dirty=True
    15   $ hg blackbox --config blackbox.dirty=True
    17   1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> add a
    16   1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> add a
    18   1970/01/01 00:00:00 bob @(unknown) (5000)> add a exited 0 after * seconds (glob)
    17   1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> add a exited 0 after * seconds (glob)
    19   1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000+ (5000)> id
       
    20   1970/01/01 00:00:00 bob @(unknown) (5000)> id --config blackbox.dirty=True exited 0 after * seconds (glob)
       
    21   1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000+ (5000)> blackbox
    18   1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000+ (5000)> blackbox
    22 
    19 
    23 incoming change tracking
    20 incoming change tracking
    24 
    21 
    25 create two heads to verify that we only see one change in the log later
    22 create two heads to verify that we only see one change in the log later
    50   $ hg blackbox -l 6
    47   $ hg blackbox -l 6
    51   1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> pull
    48   1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> pull
    52   1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> updated served branch cache in * seconds (glob)
    49   1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> updated served branch cache in * seconds (glob)
    53   1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> wrote served branch cache with 1 labels and 2 nodes
    50   1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> wrote served branch cache with 1 labels and 2 nodes
    54   1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> 1 incoming changes - new heads: d02f48003e62
    51   1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> 1 incoming changes - new heads: d02f48003e62
    55   1970/01/01 00:00:00 bob @(unknown) (5000)> pull exited 0 after * seconds (glob)
    52   1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> pull exited 0 after * seconds (glob)
    56   1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> blackbox -l 6
    53   1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> blackbox -l 6
    57 
    54 
    58 we must not cause a failure if we cannot write to the log
    55 we must not cause a failure if we cannot write to the log
    59 
    56 
    60   $ hg rollback
    57   $ hg rollback
   112   $ hg blackbox -l 6
   109   $ hg blackbox -l 6
   113   1970/01/01 00:00:00 bob @73f6ee326b27d820b0472f1a825e3a50f3dc489b (5000)> strip tip
   110   1970/01/01 00:00:00 bob @73f6ee326b27d820b0472f1a825e3a50f3dc489b (5000)> strip tip
   114   1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> saved backup bundle to $TESTTMP/blackboxtest2/.hg/strip-backup/73f6ee326b27-7612e004-backup.hg
   111   1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> saved backup bundle to $TESTTMP/blackboxtest2/.hg/strip-backup/73f6ee326b27-7612e004-backup.hg
   115   1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> updated base branch cache in * seconds (glob)
   112   1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> updated base branch cache in * seconds (glob)
   116   1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> wrote base branch cache with 1 labels and 2 nodes
   113   1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> wrote base branch cache with 1 labels and 2 nodes
   117   1970/01/01 00:00:00 bob @(unknown) (5000)> strip tip exited 0 after * seconds (glob)
   114   1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> strip tip exited 0 after * seconds (glob)
   118   1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> blackbox -l 6
   115   1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> blackbox -l 6
   119 
   116 
   120 extension and python hooks - use the eol extension for a pythonhook
   117 extension and python hooks - use the eol extension for a pythonhook
   121 
   118 
   122   $ echo '[extensions]' >> .hg/hgrc
   119   $ echo '[extensions]' >> .hg/hgrc
   130   $ hg blackbox -l 6
   127   $ hg blackbox -l 6
   131   1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> update
   128   1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> update
   132   1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> writing .hg/cache/tags2-visible with 0 tags
   129   1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> writing .hg/cache/tags2-visible with 0 tags
   133   1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> pythonhook-preupdate: hgext.eol.preupdate finished in * seconds (glob)
   130   1970/01/01 00:00:00 bob @6563da9dcf87b1949716e38ff3e3dfaa3198eb06 (5000)> pythonhook-preupdate: hgext.eol.preupdate finished in * seconds (glob)
   134   1970/01/01 00:00:00 bob @d02f48003e62c24e2659d97d30f2a83abe5d5d51 (5000)> exthook-update: echo hooked finished in * seconds (glob)
   131   1970/01/01 00:00:00 bob @d02f48003e62c24e2659d97d30f2a83abe5d5d51 (5000)> exthook-update: echo hooked finished in * seconds (glob)
   135   1970/01/01 00:00:00 bob @(unknown) (5000)> update exited 0 after * seconds (glob)
   132   1970/01/01 00:00:00 bob @d02f48003e62c24e2659d97d30f2a83abe5d5d51 (5000)> update exited 0 after * seconds (glob)
   136   1970/01/01 00:00:00 bob @d02f48003e62c24e2659d97d30f2a83abe5d5d51 (5000)> blackbox -l 6
   133   1970/01/01 00:00:00 bob @d02f48003e62c24e2659d97d30f2a83abe5d5d51 (5000)> blackbox -l 6
   137 
   134 
   138 log rotation
   135 log rotation
   139 
   136 
   140   $ echo '[blackbox]' >> .hg/hgrc
   137   $ echo '[blackbox]' >> .hg/hgrc
   180   summary:     commit2
   177   summary:     commit2
   181   
   178   
   182   result: None
   179   result: None
   183   $ hg blackbox
   180   $ hg blackbox
   184   1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> blackbox
   181   1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> blackbox
   185   1970/01/01 00:00:00 bob @(unknown) (5000)> blackbox exited 0 after * seconds (glob)
   182   1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> blackbox exited 0 after * seconds (glob)
   186   1970/01/01 00:00:00 bob @45589e459b2edfbf3dbde7e01f611d2c1e7453d7 (5000)> blackbox
   183   1970/01/01 00:00:00 bob @45589e459b2edfbf3dbde7e01f611d2c1e7453d7 (5000)> blackbox
   187 
   184 
   188 cleanup
   185 cleanup
   189   $ cd ..
   186   $ cd ..