mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 23:07:18 +03:00
tests: fix incorrect markup of continued lines of sh commands
This commit is contained in:
parent
9f4ca6b4df
commit
4c1897dde5
@ -95,6 +95,7 @@ utestpats = [
|
||||
(uprefix + r'.*\|\| echo.*(fail|error)',
|
||||
"explicit exit code checks unnecessary"),
|
||||
(uprefix + r'set -e', "don't use set -e"),
|
||||
(uprefix + r'\s', "don't indent commands, use > for continued lines"),
|
||||
(uprefixc + r'( *)\t', "don't use tabs to indent"),
|
||||
(uprefixc + r'.*do\s*true;\s*done',
|
||||
"don't use true as loop body, use sleep 0"),
|
||||
|
@ -100,7 +100,7 @@ copy --after on an added file
|
||||
bar
|
||||
|
||||
foo was clean:
|
||||
$ hg st -AC foo
|
||||
$ hg st -AC foo
|
||||
C foo
|
||||
but it's considered modified after a copy --after --force
|
||||
$ hg copy -Af bar foo
|
||||
|
@ -33,8 +33,8 @@ Testing diff --change
|
||||
Testing diff --change when merge:
|
||||
|
||||
$ for i in 1 2 3 4 5 6 7 8 9 10; do
|
||||
$ echo $i >> file.txt
|
||||
$ done
|
||||
> echo $i >> file.txt
|
||||
> done
|
||||
$ hg commit -m "lots of text" # 3
|
||||
|
||||
$ sed -e 's,^2$,x,' file.txt > file.txt.tmp
|
||||
|
@ -48,7 +48,7 @@ Should display baz only:
|
||||
[255]
|
||||
|
||||
$ echo ".*\.o" > .hgignore
|
||||
$ hg status
|
||||
$ hg status
|
||||
A dir/b.o
|
||||
? .hgignore
|
||||
? a.c
|
||||
|
@ -28,9 +28,9 @@ Without -v
|
||||
$ hg serve -a localhost -p $HGPORT -d --pid-file=hg.pid -E errors.log
|
||||
$ cat hg.pid >> "$DAEMON_PIDS"
|
||||
$ if [ -f access.log ]; then
|
||||
$ echo 'access log created - .hg/hgrc respected'
|
||||
> echo 'access log created - .hg/hgrc respected'
|
||||
> fi
|
||||
access log created - .hg/hgrc respected
|
||||
$ fi
|
||||
|
||||
errors
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user