comparison mercurial/hg.py @ 5237:fe55e3d6dc0b

clone: if "url#rev" was given, update to rev
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Mon, 27 Aug 2007 01:44:35 -0300
parents cbe6e263357b
children 76c4cadb49fc
comparison
equal deleted inserted replaced
5236:cbe6e263357b 5237:fe55e3d6dc0b
223 223
224 if dest_lock: 224 if dest_lock:
225 dest_lock.release() 225 dest_lock.release()
226 226
227 if update: 227 if update:
228 try: 228 if not checkout:
229 checkout = dest_repo.lookup("default") 229 try:
230 except: 230 checkout = dest_repo.lookup("default")
231 checkout = dest_repo.changelog.tip() 231 except:
232 checkout = dest_repo.changelog.tip()
232 _update(dest_repo, checkout) 233 _update(dest_repo, checkout)
233 234
234 return src_repo, dest_repo 235 return src_repo, dest_repo
235 236
236 def _showstats(repo, stats): 237 def _showstats(repo, stats):