Show More
@@ -1726,7 +1726,7 b' class localrepository(object):' | |||
|
1726 | 1726 | finally: |
|
1727 | 1727 | lock.release() |
|
1728 | 1728 | |
|
1729 |
def clone(self, remote, heads=[], stream= |
|
|
1729 | def clone(self, remote, heads=[], stream=None): | |
|
1730 | 1730 | '''clone remote repository. |
|
1731 | 1731 | |
|
1732 | 1732 | keyword arguments: |
@@ -1741,7 +1741,7 b' class localrepository(object):' | |||
|
1741 | 1741 | # and format flags on "stream" capability, and use |
|
1742 | 1742 | # uncompressed only if compatible. |
|
1743 | 1743 | |
|
1744 |
if |
|
|
1744 | if stream is None: | |
|
1745 | 1745 | # if the server explicitly prefers to stream (for fast LANs) |
|
1746 | 1746 | stream = remote.capable('stream-preferred') |
|
1747 | 1747 |
@@ -201,6 +201,15 b' test http authentication' | |||
|
201 | 201 | no changes found |
|
202 | 202 | updating to branch default |
|
203 | 203 | 5 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
204 | --pull should override server's preferuncompressed | |
|
205 | $ hg clone --pull http://user:pass@localhost:$HGPORT2/ dest-pull 2>&1 | |
|
206 | requesting all changes | |
|
207 | adding changesets | |
|
208 | adding manifests | |
|
209 | adding file changes | |
|
210 | added 2 changesets with 5 changes to 5 files | |
|
211 | updating to branch default | |
|
212 | 5 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
204 | 213 | |
|
205 | 214 | $ hg id http://user2@localhost:$HGPORT2/ |
|
206 | 215 | abort: http authorization required for http://localhost:$HGPORT2/ |
@@ -259,6 +268,12 b' test http authentication' | |||
|
259 | 268 | "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D5fed3813f7f5e1824344fdc9cf8f63bb662c292d |
|
260 | 269 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases |
|
261 | 270 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
271 | "GET /?cmd=listkeys HTTP/1.1" 401 - x-hgarg-1:namespace=bookmarks | |
|
272 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks | |
|
273 | "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D | |
|
274 | "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:common=0000000000000000000000000000000000000000&heads=5fed3813f7f5e1824344fdc9cf8f63bb662c292d | |
|
275 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases | |
|
276 | "GET /?cmd=capabilities HTTP/1.1" 200 - | |
|
262 | 277 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip |
|
263 | 278 | "GET /?cmd=listkeys HTTP/1.1" 401 - x-hgarg-1:namespace=namespaces |
|
264 | 279 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
General Comments 0
You need to be logged in to leave comments.
Login now