tests/test-hook.t
changeset 15651 e69a3cdad37e
parent 15650 5b26667fc4d3
child 15896 30c34fde40cc
equal deleted inserted replaced
15650:5b26667fc4d3 15651:e69a3cdad37e
   177   $ hg bookmark -r null foo
   177   $ hg bookmark -r null foo
   178   $ hg push -B foo ../a
   178   $ hg push -B foo ../a
   179   pushing to ../a
   179   pushing to ../a
   180   searching for changes
   180   searching for changes
   181   no changes found
   181   no changes found
       
   182   pushkey hook: HG_KEY=07f3376c1e655977439df2a814e3cc14b27abac2 HG_NAMESPACE=phases HG_NEW=0 HG_OLD=1 HG_RET=1 
   182   exporting bookmark foo
   183   exporting bookmark foo
   183   pushkey hook: HG_KEY=foo HG_NAMESPACE=bookmarks HG_NEW=0000000000000000000000000000000000000000 HG_RET=1 
   184   pushkey hook: HG_KEY=foo HG_NAMESPACE=bookmarks HG_NEW=0000000000000000000000000000000000000000 HG_RET=1 
   184   $ cd ../a
   185   $ cd ../a
   185 
   186 
   186 listkeys hook
   187 listkeys hook
   190   $ cd ../b
   191   $ cd ../b
   191   $ hg pull -B bar ../a
   192   $ hg pull -B bar ../a
   192   pulling from ../a
   193   pulling from ../a
   193   listkeys hook: HG_NAMESPACE=bookmarks HG_VALUES={'bar': '0000000000000000000000000000000000000000', 'foo': '0000000000000000000000000000000000000000'} 
   194   listkeys hook: HG_NAMESPACE=bookmarks HG_VALUES={'bar': '0000000000000000000000000000000000000000', 'foo': '0000000000000000000000000000000000000000'} 
   194   no changes found
   195   no changes found
   195   listkeys hook: HG_NAMESPACE=phases HG_VALUES={'cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b': '1', 'publishing': 'True'} 
   196   listkeys hook: HG_NAMESPACE=phases HG_VALUES={'539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10': '1', 'publishing': 'True'} 
   196   listkeys hook: HG_NAMESPACE=bookmarks HG_VALUES={'bar': '0000000000000000000000000000000000000000', 'foo': '0000000000000000000000000000000000000000'} 
   197   listkeys hook: HG_NAMESPACE=bookmarks HG_VALUES={'bar': '0000000000000000000000000000000000000000', 'foo': '0000000000000000000000000000000000000000'} 
   197   importing bookmark bar
   198   importing bookmark bar
   198   $ cd ../a
   199   $ cd ../a
   199 
   200 
   200 test that prepushkey can prevent incoming keys
   201 test that prepushkey can prevent incoming keys
   204   $ hg bookmark -r null baz
   205   $ hg bookmark -r null baz
   205   $ hg push -B baz ../a
   206   $ hg push -B baz ../a
   206   pushing to ../a
   207   pushing to ../a
   207   searching for changes
   208   searching for changes
   208   no changes found
   209   no changes found
       
   210   listkeys hook: HG_NAMESPACE=phases HG_VALUES={'539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10': '1', 'publishing': 'True'} 
   209   listkeys hook: HG_NAMESPACE=bookmarks HG_VALUES={'bar': '0000000000000000000000000000000000000000', 'foo': '0000000000000000000000000000000000000000'} 
   211   listkeys hook: HG_NAMESPACE=bookmarks HG_VALUES={'bar': '0000000000000000000000000000000000000000', 'foo': '0000000000000000000000000000000000000000'} 
   210   listkeys hook: HG_NAMESPACE=bookmarks HG_VALUES={'bar': '0000000000000000000000000000000000000000', 'foo': '0000000000000000000000000000000000000000'} 
   212   listkeys hook: HG_NAMESPACE=bookmarks HG_VALUES={'bar': '0000000000000000000000000000000000000000', 'foo': '0000000000000000000000000000000000000000'} 
   211   exporting bookmark baz
   213   exporting bookmark baz
   212   prepushkey.forbid hook: HG_KEY=baz HG_NAMESPACE=bookmarks HG_NEW=0000000000000000000000000000000000000000 
   214   prepushkey.forbid hook: HG_KEY=baz HG_NAMESPACE=bookmarks HG_NEW=0000000000000000000000000000000000000000 
   213   abort: prepushkey hook exited with status 1
   215   abort: prepushkey hook exited with status 1