Show More
@@ -109,7 +109,8 b' def clone(ui, source, dest=None, pull=Fa' | |||||
109 | rev: revision to clone up to (implies pull=True) |
|
109 | rev: revision to clone up to (implies pull=True) | |
110 |
|
110 | |||
111 | update: update working directory after clone completes, if |
|
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 | if isinstance(source, str): |
|
116 | if isinstance(source, str): | |
@@ -244,7 +245,9 b' def clone(ui, source, dest=None, pull=Fa' | |||||
244 |
|
245 | |||
245 | if update: |
|
246 | if update: | |
246 | dest_repo.ui.status(_("updating working directory\n")) |
|
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 | try: |
|
251 | try: | |
249 | checkout = dest_repo.lookup("default") |
|
252 | checkout = dest_repo.lookup("default") | |
250 | except: |
|
253 | except: |
@@ -476,6 +476,9 b' class localrepository(repo.repository):' | |||||
476 | def wjoin(self, f): |
|
476 | def wjoin(self, f): | |
477 | return os.path.join(self.root, f) |
|
477 | return os.path.join(self.root, f) | |
478 |
|
478 | |||
|
479 | def rjoin(self, f): | |||
|
480 | return os.path.join(self.root, util.pconvert(f)) | |||
|
481 | ||||
479 | def file(self, f): |
|
482 | def file(self, f): | |
480 | if f[0] == '/': |
|
483 | if f[0] == '/': | |
481 | f = f[1:] |
|
484 | f = f[1:] |
General Comments 0
You need to be logged in to leave comments.
Login now