Mercurial > hg
annotate tests/test-http-clone-r.t @ 24545:9e0c67e84896
json: implement {tags} template
Tags is pretty easy to implement. Let's start there.
The output is slightly different from `hg tags -Tjson`. For reference,
the CLI has the following output:
[
{
"node": "e2049974f9a23176c2addb61d8f5b86e0d620490",
"rev": 29880,
"tag": "tip",
"type": ""
},
...
]
Our output has the format:
{
"node": "0aeb19ea57a6d223bacddda3871cb78f24b06510",
"tags": [
{
"node": "e2049974f9a23176c2addb61d8f5b86e0d620490",
"tag": "tag1",
"date": [1427775457.0, 25200]
},
...
]
}
"rev" is omitted because it isn't a reliable identifier. We shouldn't
be exposing them in web APIs and giving the impression it remotely
resembles a stable identifier. Perhaps we could one day hide this behind
a config option (it might be useful to expose when running servers
locally).
The "type" of the tag isn't defined because this information isn't yet
exposed to the hgweb templater (it could be in a follow-up) and because
it is questionable whether different types should be exposed at all.
(Should the web interface really be exposing "local" tags?)
We use an object for the outer type instead of Array for a few reasons.
First, it is extensible. If we ever need to throw more global properties
into the output, we can do that without breaking backwards compatibility
(property additions should be backwards compatible). Second, uniformity
in web APIs is nice. Having everything return objects seems much saner than
a mix of array and object. Third, there are security issues with arrays
in older browsers. The JSON web services world almost never uses arrays
as the main type for this reason.
Another possibly controversial part about this patch is how dates are
defined. While JSON has a Date type, it is based on the JavaScript Date
type, which is widely considered a pile of garbage. It is a non-starter
for this reason.
Many of Mercurial's built-in date filters drop seconds resolution. So
that's a non-starter as well, since we want the API to be lossless where
possible. rfc3339date, rfc822date, isodatesec, and date are all lossless.
However, they each require the client to perform string parsing on top of
JSON decoding. While date parsing libraries are pretty ubiquitous, some
languages don't have them out of the box. However, pretty much every
programming language can deal with UNIX timestamps (which are just
integers or floats). So, we choose to use Mercurial's internal date
representation, which in JSON is modeled as float seconds since UNIX
epoch and an integer timezone offset from UTC (keep in mind
JavaScript/JSON models all "Numbers" as double prevision floating point
numbers, so there isn't a difference between ints and floats in JSON).
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Tue, 31 Mar 2015 14:52:21 -0700 |
parents | 7a9cbb315d84 |
children | eb586ed5d8ce |
rev | line source |
---|---|
22046
7a9cbb315d84
tests: replace exit 80 with #require
Matt Mackall <mpm@selenic.com>
parents:
20800
diff
changeset
|
1 #require serve |
15446
c5c9ca3719f9
tests: use 'hghave serve' to guard tests that requires serve daemon management
Mads Kiilerich <mads@kiilerich.com>
parents:
14117
diff
changeset
|
2 |
14117
07708f4171f1
tests: create a bundle to bootstrap tests using a remote repository
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
13742
diff
changeset
|
3 creating 'remote |
12448
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
4 |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
5 $ hg init remote |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
6 $ cd remote |
16350
4f795f5fbb0b
tests: make tests work if directory contains special characters
Thomas Arendsen Hein <thomas@intevation.de>
parents:
15446
diff
changeset
|
7 $ hg unbundle "$TESTDIR/bundles/remote.hg" |
14117
07708f4171f1
tests: create a bundle to bootstrap tests using a remote repository
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
13742
diff
changeset
|
8 adding changesets |
07708f4171f1
tests: create a bundle to bootstrap tests using a remote repository
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
13742
diff
changeset
|
9 adding manifests |
07708f4171f1
tests: create a bundle to bootstrap tests using a remote repository
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
13742
diff
changeset
|
10 adding file changes |
07708f4171f1
tests: create a bundle to bootstrap tests using a remote repository
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
13742
diff
changeset
|
11 added 9 changesets with 7 changes to 4 files (+1 heads) |
07708f4171f1
tests: create a bundle to bootstrap tests using a remote repository
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
13742
diff
changeset
|
12 (run 'hg heads' to see heads, 'hg merge' to merge) |
07708f4171f1
tests: create a bundle to bootstrap tests using a remote repository
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
13742
diff
changeset
|
13 $ hg up tip |
12448
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
14 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
15 |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
16 Starting server |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
17 |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
18 $ hg serve -p $HGPORT -E ../error.log -d --pid-file=../hg1.pid |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
19 $ cd .. |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
20 $ cat hg1.pid >> $DAEMON_PIDS |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
21 |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
22 clone remote via stream |
3449
c8686e3f0291
Testing the new changegroupsubset remote function in the ssh
Eric Hopper <hopper@omnifarious.org>
parents:
diff
changeset
|
23 |
12448
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
24 $ for i in 0 1 2 3 4 5 6 7 8; do |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
25 > hg clone -r "$i" http://localhost:$HGPORT/ test-"$i" |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
26 > if cd test-"$i"; then |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
27 > hg verify |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
28 > cd .. |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
29 > fi |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
30 > done |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
31 adding changesets |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
32 adding manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
33 adding file changes |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
34 added 1 changesets with 1 changes to 1 files |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
35 updating to branch default |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
36 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
37 checking changesets |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
38 checking manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
39 crosschecking files in changesets and manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
40 checking files |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
41 1 files, 1 changesets, 1 total revisions |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
42 adding changesets |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
43 adding manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
44 adding file changes |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
45 added 2 changesets with 2 changes to 1 files |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
46 updating to branch default |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
47 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
48 checking changesets |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
49 checking manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
50 crosschecking files in changesets and manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
51 checking files |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
52 1 files, 2 changesets, 2 total revisions |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
53 adding changesets |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
54 adding manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
55 adding file changes |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
56 added 3 changesets with 3 changes to 1 files |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
57 updating to branch default |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
58 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
59 checking changesets |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
60 checking manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
61 crosschecking files in changesets and manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
62 checking files |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
63 1 files, 3 changesets, 3 total revisions |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
64 adding changesets |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
65 adding manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
66 adding file changes |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
67 added 4 changesets with 4 changes to 1 files |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
68 updating to branch default |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
69 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
70 checking changesets |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
71 checking manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
72 crosschecking files in changesets and manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
73 checking files |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
74 1 files, 4 changesets, 4 total revisions |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
75 adding changesets |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
76 adding manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
77 adding file changes |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
78 added 2 changesets with 2 changes to 1 files |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
79 updating to branch default |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
80 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
81 checking changesets |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
82 checking manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
83 crosschecking files in changesets and manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
84 checking files |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
85 1 files, 2 changesets, 2 total revisions |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
86 adding changesets |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
87 adding manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
88 adding file changes |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
89 added 3 changesets with 3 changes to 1 files |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
90 updating to branch default |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
91 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
92 checking changesets |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
93 checking manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
94 crosschecking files in changesets and manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
95 checking files |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
96 1 files, 3 changesets, 3 total revisions |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
97 adding changesets |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
98 adding manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
99 adding file changes |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
100 added 4 changesets with 5 changes to 2 files |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
101 updating to branch default |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
102 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
103 checking changesets |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
104 checking manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
105 crosschecking files in changesets and manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
106 checking files |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
107 2 files, 4 changesets, 5 total revisions |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
108 adding changesets |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
109 adding manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
110 adding file changes |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
111 added 5 changesets with 6 changes to 3 files |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
112 updating to branch default |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
113 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
114 checking changesets |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
115 checking manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
116 crosschecking files in changesets and manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
117 checking files |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
118 3 files, 5 changesets, 6 total revisions |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
119 adding changesets |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
120 adding manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
121 adding file changes |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
122 added 5 changesets with 5 changes to 2 files |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
123 updating to branch default |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
124 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
125 checking changesets |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
126 checking manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
127 crosschecking files in changesets and manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
128 checking files |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
129 2 files, 5 changesets, 5 total revisions |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
130 $ cd test-8 |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
131 $ hg pull ../test-7 |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
132 pulling from ../test-7 |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
133 searching for changes |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
134 adding changesets |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
135 adding manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
136 adding file changes |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
137 added 4 changesets with 2 changes to 3 files (+1 heads) |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
138 (run 'hg heads' to see heads, 'hg merge' to merge) |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
139 $ hg verify |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
140 checking changesets |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
141 checking manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
142 crosschecking files in changesets and manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
143 checking files |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
144 4 files, 9 changesets, 7 total revisions |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
145 $ cd .. |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
146 $ cd test-1 |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
147 $ hg pull -r 4 http://localhost:$HGPORT/ |
12643
d08bb64888bc
tests: reintroduce ":$HGPORT" in test output
Mads Kiilerich <mads@kiilerich.com>
parents:
12448
diff
changeset
|
148 pulling from http://localhost:$HGPORT/ |
12448
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
149 searching for changes |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
150 adding changesets |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
151 adding manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
152 adding file changes |
13742
7abab875e647
discovery: avoid discovery when local graph is a subset of remote
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
12847
diff
changeset
|
153 added 1 changesets with 0 changes to 0 files (+1 heads) |
12448
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
154 (run 'hg heads' to see heads, 'hg merge' to merge) |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
155 $ hg verify |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
156 checking changesets |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
157 checking manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
158 crosschecking files in changesets and manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
159 checking files |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
160 1 files, 3 changesets, 2 total revisions |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
161 $ hg pull http://localhost:$HGPORT/ |
12643
d08bb64888bc
tests: reintroduce ":$HGPORT" in test output
Mads Kiilerich <mads@kiilerich.com>
parents:
12448
diff
changeset
|
162 pulling from http://localhost:$HGPORT/ |
12448
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
163 searching for changes |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
164 adding changesets |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
165 adding manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
166 adding file changes |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
167 added 6 changesets with 5 changes to 4 files |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
168 (run 'hg update' to get a working copy) |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
169 $ cd .. |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
170 $ cd test-2 |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
171 $ hg pull -r 5 http://localhost:$HGPORT/ |
12643
d08bb64888bc
tests: reintroduce ":$HGPORT" in test output
Mads Kiilerich <mads@kiilerich.com>
parents:
12448
diff
changeset
|
172 pulling from http://localhost:$HGPORT/ |
12448
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
173 searching for changes |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
174 adding changesets |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
175 adding manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
176 adding file changes |
13742
7abab875e647
discovery: avoid discovery when local graph is a subset of remote
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
12847
diff
changeset
|
177 added 2 changesets with 0 changes to 0 files (+1 heads) |
12448
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
178 (run 'hg heads' to see heads, 'hg merge' to merge) |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
179 $ hg verify |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
180 checking changesets |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
181 checking manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
182 crosschecking files in changesets and manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
183 checking files |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
184 1 files, 5 changesets, 3 total revisions |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
185 $ hg pull http://localhost:$HGPORT/ |
12643
d08bb64888bc
tests: reintroduce ":$HGPORT" in test output
Mads Kiilerich <mads@kiilerich.com>
parents:
12448
diff
changeset
|
186 pulling from http://localhost:$HGPORT/ |
12448
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
187 searching for changes |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
188 adding changesets |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
189 adding manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
190 adding file changes |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
191 added 4 changesets with 4 changes to 4 files |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
192 (run 'hg update' to get a working copy) |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
193 $ hg verify |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
194 checking changesets |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
195 checking manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
196 crosschecking files in changesets and manifests |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
197 checking files |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
198 4 files, 9 changesets, 7 total revisions |
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
199 $ cd .. |
20800
8253e55930a3
clone: abort if default destination has no meaningful name (BC)
Yuya Nishihara <yuya@tcha.org>
parents:
16350
diff
changeset
|
200 |
8253e55930a3
clone: abort if default destination has no meaningful name (BC)
Yuya Nishihara <yuya@tcha.org>
parents:
16350
diff
changeset
|
201 no default destination if url has no path: |
8253e55930a3
clone: abort if default destination has no meaningful name (BC)
Yuya Nishihara <yuya@tcha.org>
parents:
16350
diff
changeset
|
202 |
8253e55930a3
clone: abort if default destination has no meaningful name (BC)
Yuya Nishihara <yuya@tcha.org>
parents:
16350
diff
changeset
|
203 $ hg clone http://localhost:$HGPORT/ |
8253e55930a3
clone: abort if default destination has no meaningful name (BC)
Yuya Nishihara <yuya@tcha.org>
parents:
16350
diff
changeset
|
204 abort: empty destination path is not valid |
8253e55930a3
clone: abort if default destination has no meaningful name (BC)
Yuya Nishihara <yuya@tcha.org>
parents:
16350
diff
changeset
|
205 [255] |
8253e55930a3
clone: abort if default destination has no meaningful name (BC)
Yuya Nishihara <yuya@tcha.org>
parents:
16350
diff
changeset
|
206 |
12448
f5d3ff0a8192
tests: unify test-http-clone-r
Matt Mackall <mpm@selenic.com>
parents:
10398
diff
changeset
|
207 $ cat error.log |