comparison tests/test-glog.t @ 17014:50fbe9063ff2

tests: convert some 'hghave no-outer-repo' to #if In some places we instead use 'hg init' to create a well-known outer repo without any special extensions or other config settings.
author Mads Kiilerich <mads@kiilerich.com>
date Wed, 20 Jun 2012 23:41:21 +0200
parents f2719b387380
children 01d847e0fdc9
comparison
equal deleted inserted replaced
17001:88f650208c32 17014:50fbe9063ff2
67 o / (1) collapse 67 o / (1) collapse
68 |/ 68 |/
69 o (0) root 69 o (0) root
70 70
71 71
72 $ "$TESTDIR/hghave" no-outer-repo || exit 80
73
74 $ commit() 72 $ commit()
75 > { 73 > {
76 > rev=$1 74 > rev=$1
77 > msg=$2 75 > msg=$2
78 > shift 2 76 > shift 2
1134 1132
1135 1133
1136 Empty revision range - display nothing: 1134 Empty revision range - display nothing:
1137 $ hg glog -r 1..0 1135 $ hg glog -r 1..0
1138 1136
1137 $ cd ..
1138
1139 #if no-outer-repo
1140
1139 From outer space: 1141 From outer space:
1140 $ cd ..
1141 $ hg glog -l1 repo 1142 $ hg glog -l1 repo
1142 @ changeset: 34:fea3ac5810e0 1143 @ changeset: 34:fea3ac5810e0
1143 | tag: tip 1144 | tag: tip
1144 | parent: 32:d06dffa21a31 1145 | parent: 32:d06dffa21a31
1145 | user: test 1146 | user: test
1153 | user: test 1154 | user: test
1154 | date: Thu Jan 01 00:00:34 1970 +0000 1155 | date: Thu Jan 01 00:00:34 1970 +0000
1155 | summary: (34) head 1156 | summary: (34) head
1156 | 1157 |
1157 $ hg glog -l1 repo/missing 1158 $ hg glog -l1 repo/missing
1159
1160 #endif
1158 1161
1159 File log with revs != cset revs: 1162 File log with revs != cset revs:
1160 $ hg init flog 1163 $ hg init flog
1161 $ cd flog 1164 $ cd flog
1162 $ echo one >one 1165 $ echo one >one