tests/test-rhg.t
author Matt Harbison <matt_harbison@yahoo.com>
Wed, 15 Jul 2020 14:13:16 -0400
changeset 45138 2010f3143062
parent 45051 18f8d3b31baa
child 45448 e339693addc0
permissions -rw-r--r--
phabupdate: allow revisions to be reopened Differential Revision: https://phab.mercurial-scm.org/D8754

#require rust

  $ rhg() {
  > if [ -f "$RUNTESTDIR/../rust/target/debug/rhg" ]; then
  >   "$RUNTESTDIR/../rust/target/debug/rhg" "$@"
  > else
  >   echo "skipped: Cannot find rhg. Try to run cargo build in rust/rhg."
  >   exit 80
  > fi
  > }
  $ rhg unimplemented-command
  [252]
  $ rhg root
  abort: no repository found in '$TESTTMP' (.hg not found)!
  [255]
  $ hg init repository
  $ cd repository
  $ rhg root
  $TESTTMP/repository
  $ rhg root > /dev/full
  abort: No space left on device (os error 28)
  [255]
  $ rm -rf `pwd`
  $ rhg root
  abort: error getting current working directory: $ENOENT$
  [255]