tests/helpers.sh
changeset 11200 12e5149cafca
parent 11198 b345b1cc124f
equal deleted inserted replaced
11199:4b1f4e473c17 11200:12e5149cafca
     6 
     6 
     7 hidehex() { python -c 'import sys, re; print re.replace("\b[0-9A-Fa-f]{12,40}", "X" * 12)'; }
     7 hidehex() { python -c 'import sys, re; print re.replace("\b[0-9A-Fa-f]{12,40}", "X" * 12)'; }
     8 
     8 
     9 hidetmp() { sed "s/$HGTMP/\$HGTMP/"; }
     9 hidetmp() { sed "s/$HGTMP/\$HGTMP/"; }
    10 
    10 
    11 hidebackup() { sed 's/\(saving bundle to \).*/\1/'; }
    11 hidebackup() { sed 's/\(saved backup bundle to \).*/\1/'; }
    12 
    12 
    13 cleanrebase() {
    13 cleanrebase() {
    14     sed -e 's/\(Rebase status stored to\).*/\1/'  \
    14     sed -e 's/\(Rebase status stored to\).*/\1/'  \
    15         -e 's/\(Rebase status restored from\).*/\1/' \
    15         -e 's/\(Rebase status restored from\).*/\1/' \
    16         -e 's/\(saving bundle to \).*/\1/';
    16         -e 's/\(saved backup bundle to \).*/\1/';
    17 }
    17 }