tests/test-hook.t
changeset 15131 7c26ce9edbd2
parent 14601 25c1f3ddd927
child 15445 7cbb81c47025
equal deleted inserted replaced
15130:3d44e68360a6 15131:7c26ce9edbd2
   275   adding file changes
   275   adding file changes
   276   added 1 changesets with 1 changes to 1 files
   276   added 1 changesets with 1 changes to 1 files
   277   (run 'hg update' to get a working copy)
   277   (run 'hg update' to get a working copy)
   278   $ hg rollback
   278   $ hg rollback
   279   repository tip rolled back to revision 3 (undo pull)
   279   repository tip rolled back to revision 3 (undo pull)
   280   working directory now based on revision 0
       
   281 
   280 
   282 preoutgoing hook can prevent outgoing changes
   281 preoutgoing hook can prevent outgoing changes
   283 
   282 
   284   $ echo 'preoutgoing.forbid = python "$TESTDIR"/printenv.py preoutgoing.forbid 1' >> ../a/.hg/hgrc
   283   $ echo 'preoutgoing.forbid = python "$TESTDIR"/printenv.py preoutgoing.forbid 1' >> ../a/.hg/hgrc
   285   $ hg pull ../a
   284   $ hg pull ../a