tests/helpers-testrepo.sh
changeset 51918 813226b3b4ca
parent 37475 152f1b47e0ad
child 51963 5e2f0fec0a47
equal deleted inserted replaced
51917:1d6982827c4b 51918:813226b3b4ca
    50 EOF
    50 EOF
    51 
    51 
    52 # Use the system hg command if the bundled hg can't read the repository with
    52 # Use the system hg command if the bundled hg can't read the repository with
    53 # no warning nor error.
    53 # no warning nor error.
    54 if [ -n "`hg id -R "$TESTDIR/.." 2>&1 >/dev/null`" ]; then
    54 if [ -n "`hg id -R "$TESTDIR/.." 2>&1 >/dev/null`" ]; then
    55     alias testrepohg=syshg
    55     testrepohg() {
    56     alias testrepohgenv=syshgenv
    56         syshg "$@"
       
    57     }
       
    58     testrepohgenv() {
       
    59         syshgenv "$@"
       
    60     }
    57 else
    61 else
    58     alias testrepohg="hg $extraoptions"
    62     testrepohg() {
    59     alias testrepohgenv=:
    63         hg $extraoptions "$@"
       
    64     }
       
    65     testrepohgenv() {
       
    66         :
       
    67     }
    60 fi
    68 fi