Show More
@@ -219,7 +219,7 b' def clone(ui, source, dest=None, pull=Fa' | |||||
219 | "lookup and so doesn't support clone by " |
|
219 | "lookup and so doesn't support clone by " | |
220 | "revision")) |
|
220 | "revision")) | |
221 | revs = [src_repo.lookup(r) for r in rev] |
|
221 | revs = [src_repo.lookup(r) for r in rev] | |
222 |
|
222 | checkout = revs[0] | ||
223 | if dest_repo.local(): |
|
223 | if dest_repo.local(): | |
224 | dest_repo.clone(src_repo, heads=revs, stream=stream) |
|
224 | dest_repo.clone(src_repo, heads=revs, stream=stream) | |
225 | elif src_repo.local(): |
|
225 | elif src_repo.local(): |
@@ -1,6 +1,8 b'' | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
3 | hg init |
|
3 | hg init test | |
|
4 | cd test | |||
|
5 | ||||
4 | echo a > a |
|
6 | echo a > a | |
5 | hg add a |
|
7 | hg add a | |
6 | hg commit -m "test" -d "1000000 0" |
|
8 | hg commit -m "test" -d "1000000 0" | |
@@ -38,6 +40,17 b" hg tag -l 'xx" | |||||
38 | newline' |
|
40 | newline' | |
39 | hg tag -l 'xx:xx' |
|
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 | echo % issue 601 |
|
54 | echo % issue 601 | |
42 | python << EOF |
|
55 | python << EOF | |
43 | f = file('.hg/localtags'); last = f.readlines()[-1][:-1]; f.close() |
|
56 | f = file('.hg/localtags'); last = f.readlines()[-1][:-1]; f.close() |
@@ -47,6 +47,48 b' 0acdaf8983679e0aac16e811534eb49d7ee1f2b4' | |||||
47 | 3ecf002a1c572a2f3bb4e665417e60fca65bbd42 bleah1 |
|
47 | 3ecf002a1c572a2f3bb4e665417e60fca65bbd42 bleah1 | |
48 | abort: '\n' cannot be used in a tag name |
|
48 | abort: '\n' cannot be used in a tag name | |
49 | abort: ':' cannot be used in a tag name |
|
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 | % issue 601 |
|
92 | % issue 601 | |
51 | 3ecf002a1c572a2f3bb4e665417e60fca65bbd42 bleah13ecf002a1c572a2f3bb4e665417e60fca65bbd42 bleah1 |
|
93 | 3ecf002a1c572a2f3bb4e665417e60fca65bbd42 bleah13ecf002a1c572a2f3bb4e665417e60fca65bbd42 bleah1 | |
52 | f68b039e72eacbb2e68b0543e1f6e50990aa2bb5 localnewline |
|
94 | f68b039e72eacbb2e68b0543e1f6e50990aa2bb5 localnewline |
General Comments 0
You need to be logged in to leave comments.
Login now