tests/test-rhg.t
changeset 46666 33f2d56acc73
parent 46601 755c31a1caf9
child 46667 93e9f448273c
equal deleted inserted replaced
46665:7284b524b441 46666:33f2d56acc73
    10   > fi
    10   > fi
    11   > }
    11   > }
    12 
    12 
    13 Unimplemented command
    13 Unimplemented command
    14   $ rhg unimplemented-command
    14   $ rhg unimplemented-command
       
    15   unsupported feature: error: Found argument 'unimplemented-command' which wasn't expected, or isn't valid in this context
       
    16   
       
    17   USAGE:
       
    18       rhg [OPTIONS] <SUBCOMMAND>
       
    19   
       
    20   For more information try --help
       
    21   
       
    22   [252]
       
    23   $ rhg unimplemented-command --config rhg.on-unsupported=abort-silent
    15   [252]
    24   [252]
    16 
    25 
    17 Finding root
    26 Finding root
    18   $ rhg root
    27   $ rhg root
    19   abort: no repository found in '$TESTTMP' (.hg not found)!
    28   abort: no repository found in '$TESTTMP' (.hg not found)!
   151   sparserevlog
   160   sparserevlog
   152   store
   161   store
   153 
   162 
   154   $ echo indoor-pool >> .hg/requires
   163   $ echo indoor-pool >> .hg/requires
   155   $ rhg files
   164   $ rhg files
       
   165   unsupported feature: repository requires feature unknown to this Mercurial: indoor-pool
   156   [252]
   166   [252]
   157 
   167 
   158   $ rhg cat -r 1 copy_of_original
   168   $ rhg cat -r 1 copy_of_original
       
   169   unsupported feature: repository requires feature unknown to this Mercurial: indoor-pool
   159   [252]
   170   [252]
   160 
   171 
   161   $ rhg debugrequirements
   172   $ rhg debugrequirements
       
   173   unsupported feature: repository requires feature unknown to this Mercurial: indoor-pool
   162   [252]
   174   [252]
   163 
   175 
   164   $ echo -e '\xFF' >> .hg/requires
   176   $ echo -e '\xFF' >> .hg/requires
   165   $ rhg debugrequirements
   177   $ rhg debugrequirements
   166   abort: corrupted repository: parse error in 'requires' file
   178   abort: corrupted repository: parse error in 'requires' file