Show More
@@ -109,7 +109,8 b' def clone(ui, source, dest=None, pull=Fa' | |||
|
109 | 109 | rev: revision to clone up to (implies pull=True) |
|
110 | 110 | |
|
111 | 111 | update: update working directory after clone completes, if |
|
112 | destination is local repository | |
|
112 | destination is local repository (True means update to default rev, | |
|
113 | anything else is treated as a revision) | |
|
113 | 114 | """ |
|
114 | 115 | |
|
115 | 116 | if isinstance(source, str): |
@@ -244,7 +245,9 b' def clone(ui, source, dest=None, pull=Fa' | |||
|
244 | 245 | |
|
245 | 246 | if update: |
|
246 | 247 | dest_repo.ui.status(_("updating working directory\n")) |
|
247 |
if not |
|
|
248 | if update is not True: | |
|
249 | checkout = update | |
|
250 | elif not checkout: | |
|
248 | 251 | try: |
|
249 | 252 | checkout = dest_repo.lookup("default") |
|
250 | 253 | except: |
General Comments 0
You need to be logged in to leave comments.
Login now