Mercurial > public > mercurial-scm > hg
comparison mercurial/hg.py @ 4477:6cbfa740c129
clone: checkout the "default" branch if available
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 01 Jun 2007 18:52:18 -0500 |
parents | e6d26e71f049 |
children | b2b55acbacdd |
comparison
equal
deleted
inserted
replaced
4476:4ef8fdf57e39 | 4477:6cbfa740c129 |
---|---|
216 | 216 |
217 if dest_lock: | 217 if dest_lock: |
218 dest_lock.release() | 218 dest_lock.release() |
219 | 219 |
220 if update: | 220 if update: |
221 _update(dest_repo, dest_repo.changelog.tip()) | 221 try: |
222 checkout = dest_repo.lookup("default") | |
223 except: | |
224 checkout = dest_repo.changelog.tip() | |
225 _update(dest_repo, checkout) | |
222 if dir_cleanup: | 226 if dir_cleanup: |
223 dir_cleanup.close() | 227 dir_cleanup.close() |
224 | 228 |
225 return src_repo, dest_repo | 229 return src_repo, dest_repo |
226 | 230 |