##// END OF EJS Templates
tests: don't load strip extension via mq extension for remotefilelog tests...
Martin von Zweigbergk -
r40608:17f21047 default
parent child Browse files
Show More
@@ -1,75 +1,75 b''
1 CACHEDIR=$PWD/hgcache
1 CACHEDIR=$PWD/hgcache
2 cat >> $HGRCPATH <<EOF
2 cat >> $HGRCPATH <<EOF
3 [remotefilelog]
3 [remotefilelog]
4 cachepath=$CACHEDIR
4 cachepath=$CACHEDIR
5 debug=True
5 debug=True
6 [extensions]
6 [extensions]
7 remotefilelog=
7 remotefilelog=
8 rebase=
8 rebase=
9 mq=
9 strip=
10 [ui]
10 [ui]
11 ssh=python "$TESTDIR/dummyssh"
11 ssh=python "$TESTDIR/dummyssh"
12 [server]
12 [server]
13 preferuncompressed=True
13 preferuncompressed=True
14 [experimental]
14 [experimental]
15 changegroup3=True
15 changegroup3=True
16 [rebase]
16 [rebase]
17 singletransaction=True
17 singletransaction=True
18 EOF
18 EOF
19
19
20 hgcloneshallow() {
20 hgcloneshallow() {
21 local name
21 local name
22 local dest
22 local dest
23 orig=$1
23 orig=$1
24 shift
24 shift
25 dest=$1
25 dest=$1
26 shift
26 shift
27 hg clone --shallow --config remotefilelog.reponame=master $orig $dest $@
27 hg clone --shallow --config remotefilelog.reponame=master $orig $dest $@
28 cat >> $dest/.hg/hgrc <<EOF
28 cat >> $dest/.hg/hgrc <<EOF
29 [remotefilelog]
29 [remotefilelog]
30 reponame=master
30 reponame=master
31 [phases]
31 [phases]
32 publish=False
32 publish=False
33 EOF
33 EOF
34 }
34 }
35
35
36 hgcloneshallowlfs() {
36 hgcloneshallowlfs() {
37 local name
37 local name
38 local dest
38 local dest
39 local lfsdir
39 local lfsdir
40 orig=$1
40 orig=$1
41 shift
41 shift
42 dest=$1
42 dest=$1
43 shift
43 shift
44 lfsdir=$1
44 lfsdir=$1
45 shift
45 shift
46 hg clone --shallow --config "extensions.lfs=" --config "lfs.url=$lfsdir" --config remotefilelog.reponame=master $orig $dest $@
46 hg clone --shallow --config "extensions.lfs=" --config "lfs.url=$lfsdir" --config remotefilelog.reponame=master $orig $dest $@
47 cat >> $dest/.hg/hgrc <<EOF
47 cat >> $dest/.hg/hgrc <<EOF
48 [extensions]
48 [extensions]
49 lfs=
49 lfs=
50 [lfs]
50 [lfs]
51 url=$lfsdir
51 url=$lfsdir
52 [remotefilelog]
52 [remotefilelog]
53 reponame=master
53 reponame=master
54 [phases]
54 [phases]
55 publish=False
55 publish=False
56 EOF
56 EOF
57 }
57 }
58
58
59 clearcache() {
59 clearcache() {
60 rm -rf $CACHEDIR/*
60 rm -rf $CACHEDIR/*
61 }
61 }
62
62
63 mkcommit() {
63 mkcommit() {
64 echo "$1" > "$1"
64 echo "$1" > "$1"
65 hg add "$1"
65 hg add "$1"
66 hg ci -m "$1"
66 hg ci -m "$1"
67 }
67 }
68
68
69 ls_l() {
69 ls_l() {
70 $PYTHON $TESTDIR/ls-l.py "$@"
70 $PYTHON $TESTDIR/ls-l.py "$@"
71 }
71 }
72
72
73 identifyrflcaps() {
73 identifyrflcaps() {
74 xargs -n 1 echo | egrep '(remotefilelog|getflogheads|getfile)' | sort
74 xargs -n 1 echo | egrep '(remotefilelog|getflogheads|getfile)' | sort
75 }
75 }
General Comments 0
You need to be logged in to leave comments. Login now