Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hg.py @ 5223: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 |
line wrap: on
line diff
--- a/mercurial/hg.py Mon Aug 27 01:44:35 2007 -0300 +++ b/mercurial/hg.py Mon Aug 27 01:44:35 2007 -0300 @@ -225,10 +225,11 @@ dest_lock.release() if update: - try: - checkout = dest_repo.lookup("default") - except: - checkout = dest_repo.changelog.tip() + if not checkout: + try: + checkout = dest_repo.lookup("default") + except: + checkout = dest_repo.changelog.tip() _update(dest_repo, checkout) return src_repo, dest_repo