mercurial/hg.py
changeset 4477 6cbfa740c129
parent 4081 e6d26e71f049
child 4478 b2b55acbacdd
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