Mercurial > hg
comparison tests/test-parentrevspec.t @ 12743:4c4aeaab2339
check-code: add 'no tab indent' check for unified tests
and fix the offending tests accordingly
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Sat, 16 Oct 2010 18:09:01 +0200 |
parents | c2b7bee11410 |
children | 6eab8f0df2ca |
comparison
equal
deleted
inserted
replaced
12742:6ab4a7d3c179 | 12743:4c4aeaab2339 |
---|---|
4 > msg=$1 | 4 > msg=$1 |
5 > p1=$2 | 5 > p1=$2 |
6 > p2=$3 | 6 > p2=$3 |
7 > | 7 > |
8 > if [ "$p1" ]; then | 8 > if [ "$p1" ]; then |
9 > hg up -qC $p1 | 9 > hg up -qC $p1 |
10 > fi | 10 > fi |
11 > | 11 > |
12 > if [ "$p2" ]; then | 12 > if [ "$p2" ]; then |
13 > HGMERGE=true hg merge -q $p2 | 13 > HGMERGE=true hg merge -q $p2 |
14 > fi | 14 > fi |
15 > | 15 > |
16 > echo >> foo | 16 > echo >> foo |
17 > | 17 > |
18 > hg commit -qAm "$msg" | 18 > hg commit -qAm "$msg" |
39 $ echo | 39 $ echo |
40 | 40 |
41 $ lookup() | 41 $ lookup() |
42 > { | 42 > { |
43 > for rev in "$@"; do | 43 > for rev in "$@"; do |
44 > printf "$rev: " | 44 > printf "$rev: " |
45 > hg id -nr $rev | 45 > hg id -nr $rev |
46 > done | 46 > done |
47 > true | 47 > true |
48 > } | 48 > } |
49 $ tipnode=`hg id -ir tip` | 49 $ tipnode=`hg id -ir tip` |
50 | 50 |