Show More
@@ -219,7 +219,7 b' def clone(ui, source, dest=None, pull=Fa' | |||
|
219 | 219 | "lookup and so doesn't support clone by " |
|
220 | 220 | "revision")) |
|
221 | 221 | revs = [src_repo.lookup(r) for r in rev] |
|
222 | ||
|
222 | checkout = revs[0] | |
|
223 | 223 | if dest_repo.local(): |
|
224 | 224 | dest_repo.clone(src_repo, heads=revs, stream=stream) |
|
225 | 225 | elif src_repo.local(): |
@@ -1,6 +1,8 b'' | |||
|
1 | 1 | #!/bin/sh |
|
2 | 2 | |
|
3 | hg init | |
|
3 | hg init test | |
|
4 | cd test | |
|
5 | ||
|
4 | 6 | echo a > a |
|
5 | 7 | hg add a |
|
6 | 8 | hg commit -m "test" -d "1000000 0" |
@@ -38,6 +40,17 b" hg tag -l 'xx" | |||
|
38 | 40 | newline' |
|
39 | 41 | hg tag -l 'xx:xx' |
|
40 | 42 | |
|
43 | echo % cloning local tags | |
|
44 | cd .. | |
|
45 | hg -R test log -r0:5 | |
|
46 | hg clone -q -rbleah1 test test1 | |
|
47 | hg -R test1 parents --style=compact | |
|
48 | hg clone -q -r5 test#bleah1 test2 | |
|
49 | hg -R test2 parents --style=compact | |
|
50 | hg clone -q -U test#bleah1 test3 | |
|
51 | hg -R test3 parents --style=compact | |
|
52 | ||
|
53 | cd test | |
|
41 | 54 | echo % issue 601 |
|
42 | 55 | python << EOF |
|
43 | 56 | f = file('.hg/localtags'); last = f.readlines()[-1][:-1]; f.close() |
@@ -47,6 +47,48 b' 0acdaf8983679e0aac16e811534eb49d7ee1f2b4' | |||
|
47 | 47 | 3ecf002a1c572a2f3bb4e665417e60fca65bbd42 bleah1 |
|
48 | 48 | abort: '\n' cannot be used in a tag name |
|
49 | 49 | abort: ':' cannot be used in a tag name |
|
50 | % cloning local tags | |
|
51 | changeset: 0:0acdaf898367 | |
|
52 | tag: foobar | |
|
53 | tag: bleah | |
|
54 | tag: bleah0 | |
|
55 | user: test | |
|
56 | date: Mon Jan 12 13:46:40 1970 +0000 | |
|
57 | summary: test | |
|
58 | ||
|
59 | changeset: 1:3ecf002a1c57 | |
|
60 | tag: bleah1 | |
|
61 | user: test | |
|
62 | date: Mon Jan 12 13:46:40 1970 +0000 | |
|
63 | summary: Added tag bleah for changeset 0acdaf898367 | |
|
64 | ||
|
65 | changeset: 2:868cc8fbb43b | |
|
66 | tag: gawk | |
|
67 | user: test | |
|
68 | date: Mon Jan 12 13:46:40 1970 +0000 | |
|
69 | summary: Added tag bleah0 for changeset 0acdaf898367 | |
|
70 | ||
|
71 | changeset: 3:3807bcf62c56 | |
|
72 | user: test | |
|
73 | date: Mon Jan 12 13:46:40 1970 +0000 | |
|
74 | summary: Added tag gack, gawk, gorp for changeset 868cc8fbb43b | |
|
75 | ||
|
76 | changeset: 4:140c6e8597b4 | |
|
77 | user: test | |
|
78 | date: Mon Jan 12 13:46:40 1970 +0000 | |
|
79 | summary: Added tag gack for changeset 3807bcf62c56 | |
|
80 | ||
|
81 | changeset: 5:470a65fa7cc9 | |
|
82 | user: test | |
|
83 | date: Mon Jan 12 13:46:40 1970 +0000 | |
|
84 | summary: Removed tag gack, gorp | |
|
85 | ||
|
86 | 1[tip] 3ecf002a1c57 1970-01-12 13:46 +0000 test | |
|
87 | Added tag bleah for changeset 0acdaf898367 | |
|
88 | ||
|
89 | 5[tip] 470a65fa7cc9 1970-01-12 13:46 +0000 test | |
|
90 | Removed tag gack, gorp | |
|
91 | ||
|
50 | 92 | % issue 601 |
|
51 | 93 | 3ecf002a1c572a2f3bb4e665417e60fca65bbd42 bleah13ecf002a1c572a2f3bb4e665417e60fca65bbd42 bleah1 |
|
52 | 94 | f68b039e72eacbb2e68b0543e1f6e50990aa2bb5 localnewline |
General Comments 0
You need to be logged in to leave comments.
Login now