Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hg.py @ 8417:39cf453da958
clone: try updating to the actual changeset specified in options
When cloning with the -r option or # url format from a tag the destination
repo most likely won't have the tag. We can save the lookup result to get to
the correct parent anyway. Similar to issue1306, but for tags.
author | Brett Carter <brett@rdnzl.net> |
---|---|
date | Thu, 14 May 2009 22:00:56 +0200 |
parents | b87a50b7125c |
children | 2c097e22492c |
line wrap: on
line diff
--- a/mercurial/hg.py Thu May 14 13:24:39 2009 -0500 +++ b/mercurial/hg.py Thu May 14 22:00:56 2009 +0200 @@ -219,7 +219,7 @@ "lookup and so doesn't support clone by " "revision")) revs = [src_repo.lookup(r) for r in rev] - + checkout = revs[0] if dest_repo.local(): dest_repo.clone(src_repo, heads=revs, stream=stream) elif src_repo.local():