author | Matt Mackall <mpm@selenic.com> |
Sat, 17 Sep 2011 13:20:10 -0500 | |
changeset 15119 | ac46a9cdf6e6 |
parent 13956 | ffb5c09ba822 |
child 15446 | c5c9ca3719f9 |
child 15552 | 62c9183a0bbb |
permissions | -rw-r--r-- |
13956
ffb5c09ba822
tests: remove redundant mkdir
Martin Geisler <mg@lazybytes.net>
parents:
13826
diff
changeset
|
1 |
$ hg init test |
12279 | 2 |
$ cd test |
3 |
||
4 |
$ echo foo>foo |
|
5 |
$ hg addremove |
|
6 |
adding foo |
|
7 |
$ hg commit -m 1 |
|
8 |
||
9 |
$ hg verify |
|
10 |
checking changesets |
|
11 |
checking manifests |
|
12 |
crosschecking files in changesets and manifests |
|
13 |
checking files |
|
14 |
1 files, 1 changesets, 1 total revisions |
|
336 | 15 |
|
12279 | 16 |
$ hg serve -p $HGPORT -d --pid-file=hg.pid |
17 |
$ cat hg.pid >> $DAEMON_PIDS |
|
18 |
$ cd .. |
|
19 |
||
12366
c01dc9087d9a
tests: drop a bunch of sed calls from unified tests
Matt Mackall <mpm@selenic.com>
parents:
12328
diff
changeset
|
20 |
$ hg clone --pull http://foo:bar@localhost:$HGPORT/ copy |
12279 | 21 |
requesting all changes |
22 |
adding changesets |
|
23 |
adding manifests |
|
24 |
adding file changes |
|
25 |
added 1 changesets with 1 changes to 1 files |
|
26 |
updating to branch default |
|
27 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
28 |
||
29 |
$ cd copy |
|
30 |
$ hg verify |
|
31 |
checking changesets |
|
32 |
checking manifests |
|
33 |
crosschecking files in changesets and manifests |
|
34 |
checking files |
|
35 |
1 files, 1 changesets, 1 total revisions |
|
336 | 36 |
|
12279 | 37 |
$ hg co |
38 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
39 |
$ cat foo |
|
40 |
foo |
|
41 |
||
42 |
$ hg manifest --debug |
|
43 |
2ed2a3912a0b24502043eae84ee4b279c18b90dd 644 foo |
|
44 |
||
12366
c01dc9087d9a
tests: drop a bunch of sed calls from unified tests
Matt Mackall <mpm@selenic.com>
parents:
12328
diff
changeset
|
45 |
$ hg pull |
12643
d08bb64888bc
tests: reintroduce ":$HGPORT" in test output
Mads Kiilerich <mads@kiilerich.com>
parents:
12505
diff
changeset
|
46 |
pulling from http://foo:***@localhost:$HGPORT/ |
12279 | 47 |
searching for changes |
48 |
no changes found |
|
49 |
||
12366
c01dc9087d9a
tests: drop a bunch of sed calls from unified tests
Matt Mackall <mpm@selenic.com>
parents:
12328
diff
changeset
|
50 |
$ hg rollback --dry-run --verbose |
13446
1e497df514e2
rollback: clarifies the message about the reverted state (issue2628)
Gilles Moris <gilles.moris@free.fr>
parents:
12643
diff
changeset
|
51 |
repository tip rolled back to revision -1 (undo pull: http://foo:***@localhost:$HGPORT/) |
12279 | 52 |
|
12399
4fee1fd3de9a
tests: added a short description to issue numbers
Martin Geisler <mg@aragost.com>
parents:
12377
diff
changeset
|
53 |
Issue622: hg init && hg pull -u URL doesn't checkout default branch |
4891
2d545b98a7bc
issue 622: pull/unbundle -u updates to default branch if repo was empty
Bryan O'Sullivan <bos@serpentine.com>
parents:
3736
diff
changeset
|
54 |
|
12279 | 55 |
$ cd .. |
56 |
$ hg init empty |
|
57 |
$ cd empty |
|
58 |
$ hg pull -u ../test |
|
59 |
pulling from ../test |
|
60 |
requesting all changes |
|
61 |
adding changesets |
|
62 |
adding manifests |
|
63 |
adding file changes |
|
64 |
added 1 changesets with 1 changes to 1 files |
|
65 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
9996
2770d03ae49f
handle file URIs correctly, according to RFC 2396 (issue1153)
Sune Foldager <cryo@cyanite.org>
parents:
5384
diff
changeset
|
66 |
|
12279 | 67 |
Test 'file:' uri handling: |
68 |
||
69 |
$ hg pull -q file://../test-doesnt-exist |
|
13823
ad179644750f
hg: look up schemes using url.url
Brodie Rao <brodie@bitheap.org>
parents:
13817
diff
changeset
|
70 |
abort: file:// URLs can only refer to localhost |
12316
4134686b83e1
tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents:
12279
diff
changeset
|
71 |
[255] |
12279 | 72 |
|
13826
e574207e3bcd
url: refactor util.drop_scheme() and hg.localpath() into url.localpath()
Brodie Rao <brodie@bitheap.org>
parents:
13823
diff
changeset
|
73 |
$ hg pull -q file://../test |
e574207e3bcd
url: refactor util.drop_scheme() and hg.localpath() into url.localpath()
Brodie Rao <brodie@bitheap.org>
parents:
13823
diff
changeset
|
74 |
abort: file:// URLs can only refer to localhost |
e574207e3bcd
url: refactor util.drop_scheme() and hg.localpath() into url.localpath()
Brodie Rao <brodie@bitheap.org>
parents:
13823
diff
changeset
|
75 |
[255] |
e574207e3bcd
url: refactor util.drop_scheme() and hg.localpath() into url.localpath()
Brodie Rao <brodie@bitheap.org>
parents:
13823
diff
changeset
|
76 |
|
12279 | 77 |
$ hg pull -q file:../test |
78 |
||
12328
b63f6422d2a7
tests: fix a bunch of pointless #s in unified tests
Matt Mackall <mpm@selenic.com>
parents:
12316
diff
changeset
|
79 |
It's tricky to make file:// URLs working on every platform with |
b63f6422d2a7
tests: fix a bunch of pointless #s in unified tests
Matt Mackall <mpm@selenic.com>
parents:
12316
diff
changeset
|
80 |
regular shell commands. |
12279 | 81 |
|
82 |
$ URL=`python -c "import os; print 'file://foobar' + ('/' + os.getcwd().replace(os.sep, '/')).replace('//', '/') + '/../test'"` |
|
83 |
$ hg pull -q "$URL" |
|
13817
7f18bab2c0b0
url: abort on file:// URLs with non-localhost hosts
Brodie Rao <brodie@bitheap.org>
parents:
13446
diff
changeset
|
84 |
abort: file:// URLs can only refer to localhost |
7f18bab2c0b0
url: abort on file:// URLs with non-localhost hosts
Brodie Rao <brodie@bitheap.org>
parents:
13446
diff
changeset
|
85 |
[255] |
12279 | 86 |
|
13817
7f18bab2c0b0
url: abort on file:// URLs with non-localhost hosts
Brodie Rao <brodie@bitheap.org>
parents:
13446
diff
changeset
|
87 |
$ URL=`python -c "import os; print 'file://localhost' + ('/' + os.getcwd().replace(os.sep, '/')).replace('//', '/') + '/../test'"` |
7f18bab2c0b0
url: abort on file:// URLs with non-localhost hosts
Brodie Rao <brodie@bitheap.org>
parents:
13446
diff
changeset
|
88 |
$ hg pull -q "$URL" |