tests/test-alias.t
changeset 14886 9a3831d64ae2
parent 14265 e4ab5ae193f2
child 14890 28abca72c46c
equal deleted inserted replaced
14885:50b67d5c4073 14886:9a3831d64ae2
   249   $ hg -R .. count 'branch(default)'
   249   $ hg -R .. count 'branch(default)'
   250   0
   250   0
   251   $ hg --cwd .. count 'branch(default)'
   251   $ hg --cwd .. count 'branch(default)'
   252   2
   252   2
   253   $ hg echo --cwd ..
   253   $ hg echo --cwd ..
   254   --cwd ..
   254   
   255 
   255 
   256 
   256 
   257 repo specific shell aliases
   257 repo specific shell aliases
   258 
   258 
   259   $ cat >> .hg/hgrc <<EOF
   259   $ cat >> .hg/hgrc <<EOF
   272   sub
   272   sub
   273   $ hg --cwd .. subalias > /dev/null
   273   $ hg --cwd .. subalias > /dev/null
   274   hg: unknown command 'subalias'
   274   hg: unknown command 'subalias'
   275   [255]
   275   [255]
   276   $ hg -R .. subalias > /dev/null
   276   $ hg -R .. subalias > /dev/null
   277   hg: unknown command 'subalias'
       
   278   [255]
       
   279 
   277 
   280 
   278 
   281 shell alias defined in other repo
   279 shell alias defined in other repo
   282 
   280 
   283   $ hg mainalias > /dev/null
   281   $ hg mainalias > /dev/null
   284   hg: unknown command 'mainalias'
   282   hg: unknown command 'mainalias'
   285   [255]
   283   [255]
   286   $ hg -R .. mainalias
   284   $ hg -R .. mainalias
       
   285   warning: --repository ignored
   287   main
   286   main
   288   $ hg --cwd .. mainalias
   287   $ hg --cwd .. mainalias
   289   main
   288   main
   290 
   289 
   291 
   290