comparison tests/test-clone.t @ 15524:e7119b091809

merge with crew
author Matt Mackall <mpm@selenic.com>
date Thu, 17 Nov 2011 23:02:18 -0600
parents cf0f3cb8a332
children fc8c7a5ccc4a
comparison
equal deleted inserted replaced
15523:f9da84a950d0 15524:e7119b091809
8 $ echo first line > b 8 $ echo first line > b
9 $ hg add b 9 $ hg add b
10 10
11 Create a non-inlined filelog: 11 Create a non-inlined filelog:
12 12
13 $ python -c 'for x in range(10000): print x' >> data1 13 $ python -c 'file("data1", "wb").write("".join("%s\n" % x for x in range(10000)))'
14 $ for j in 0 1 2 3 4 5 6 7 8 9; do 14 $ for j in 0 1 2 3 4 5 6 7 8 9; do
15 > cat data1 >> b 15 > cat data1 >> b
16 > hg commit -m test 16 > hg commit -m test
17 > done 17 > done
18 18
41 2 files, 11 changesets, 11 total revisions 41 2 files, 11 changesets, 11 total revisions
42 42
43 Invalid dest '' must abort: 43 Invalid dest '' must abort:
44 44
45 $ hg clone . '' 45 $ hg clone . ''
46 abort: No such file or directory 46 abort: * (glob)
47 [255] 47 [255]
48 48
49 No update, with debug option: 49 No update, with debug option:
50 50
51 $ hg --debug clone -U . ../c 51 $ hg --debug clone -U . ../c
83 83
84 Check that path aliases are expanded: 84 Check that path aliases are expanded:
85 85
86 $ hg clone -q -U --config 'paths.foobar=a#0' foobar f 86 $ hg clone -q -U --config 'paths.foobar=a#0' foobar f
87 $ hg -R f showconfig paths.default 87 $ hg -R f showconfig paths.default
88 $TESTTMP/a#0 88 $TESTTMP/a#0 (glob)
89 89
90 Use --pull: 90 Use --pull:
91 91
92 $ hg clone --pull a g 92 $ hg clone --pull a g
93 requesting all changes 93 requesting all changes
105 2 files, 11 changesets, 11 total revisions 105 2 files, 11 changesets, 11 total revisions
106 106
107 Invalid dest '' with --pull must abort (issue2528): 107 Invalid dest '' with --pull must abort (issue2528):
108 108
109 $ hg clone --pull a '' 109 $ hg clone --pull a ''
110 abort: No such file or directory 110 abort: * (glob)
111 [255] 111 [255]
112 112
113 Clone to '.': 113 Clone to '.':
114 114
115 $ mkdir h 115 $ mkdir h