tests/test-blackbox.t
changeset 24706 5150b2b5b345
parent 24705 0ead0a07ed9c
child 24760 410f3856196f
equal deleted inserted replaced
24705:0ead0a07ed9c 24706:5150b2b5b345
   110   1970/01/01 00:00:00 bob> saved backup bundle to $TESTTMP/blackboxtest2/.hg/strip-backup/*-backup.hg (glob)
   110   1970/01/01 00:00:00 bob> saved backup bundle to $TESTTMP/blackboxtest2/.hg/strip-backup/*-backup.hg (glob)
   111   1970/01/01 00:00:00 bob> updated base branch cache in ?.???? seconds (glob)
   111   1970/01/01 00:00:00 bob> updated base branch cache in ?.???? seconds (glob)
   112   1970/01/01 00:00:00 bob> wrote base branch cache with 1 labels and 2 nodes
   112   1970/01/01 00:00:00 bob> wrote base branch cache with 1 labels and 2 nodes
   113   1970/01/01 00:00:00 bob> strip tip exited 0 after * seconds (glob)
   113   1970/01/01 00:00:00 bob> strip tip exited 0 after * seconds (glob)
   114 
   114 
   115 tags cache gets logged
       
   116   $ hg up tip
       
   117   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
       
   118   $ hg tag -m 'create test tag' test-tag
       
   119   $ hg tags
       
   120   tip                                3:5b5562c08298
       
   121   test-tag                           2:d02f48003e62
       
   122   $ hg blackbox -l 3
       
   123   1970/01/01 00:00:00 bob> resolved 1 tags cache entries from 1 manifests in ?.???? seconds (glob)
       
   124   1970/01/01 00:00:00 bob> writing tags cache file with 2 heads and 1 tags
       
   125   1970/01/01 00:00:00 bob> tags exited 0 after ?.?? seconds (glob)
       
   126 
       
   127 extension and python hooks - use the eol extension for a pythonhook
   115 extension and python hooks - use the eol extension for a pythonhook
   128 
   116 
   129   $ echo '[extensions]' >> .hg/hgrc
   117   $ echo '[extensions]' >> .hg/hgrc
   130   $ echo 'eol=' >> .hg/hgrc
   118   $ echo 'eol=' >> .hg/hgrc
   131   $ echo '[hooks]' >> .hg/hgrc
   119   $ echo '[hooks]' >> .hg/hgrc
   132   $ echo 'update = echo hooked' >> .hg/hgrc
   120   $ echo 'update = echo hooked' >> .hg/hgrc
   133   $ hg update
   121   $ hg update
   134   hooked
   122   hooked
   135   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
   123   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   136   $ hg blackbox -l 4
   124   $ hg blackbox -l 5
   137   1970/01/01 00:00:00 bob> update
   125   1970/01/01 00:00:00 bob> update
       
   126   1970/01/01 00:00:00 bob> writing tags cache file with 2 heads and 0 tags
   138   1970/01/01 00:00:00 bob> pythonhook-preupdate: hgext.eol.preupdate finished in * seconds (glob)
   127   1970/01/01 00:00:00 bob> pythonhook-preupdate: hgext.eol.preupdate finished in * seconds (glob)
   139   1970/01/01 00:00:00 bob> exthook-update: echo hooked finished in * seconds (glob)
   128   1970/01/01 00:00:00 bob> exthook-update: echo hooked finished in * seconds (glob)
   140   1970/01/01 00:00:00 bob> update exited 0 after * seconds (glob)
   129   1970/01/01 00:00:00 bob> update exited 0 after * seconds (glob)
   141 
   130 
   142 log rotation
   131 log rotation
   146   $ echo 'maxfiles = 3' >> .hg/hgrc
   135   $ echo 'maxfiles = 3' >> .hg/hgrc
   147   $ hg status
   136   $ hg status
   148   $ hg status
   137   $ hg status
   149   $ hg status
   138   $ hg status
   150   $ hg tip -q
   139   $ hg tip -q
   151   3:5b5562c08298
   140   2:d02f48003e62
   152   $ ls .hg/blackbox.log*
   141   $ ls .hg/blackbox.log*
   153   .hg/blackbox.log
   142   .hg/blackbox.log
   154   .hg/blackbox.log.1
   143   .hg/blackbox.log.1
   155   .hg/blackbox.log.2
   144   .hg/blackbox.log.2
   156 
   145