fix bug in hg.clone when passing in a repository object stable
authorSune Foldager <cryo@cyanite.org>
Thu, 18 Mar 2010 16:38:07 +0100
branchstable
changeset 10728 4a70178f9bde
parent 10725 00d46934ee35
child 10729 7a5931c5f2dc
fix bug in hg.clone when passing in a repository object
mercurial/hg.py
--- a/mercurial/hg.py	Thu Mar 18 01:58:26 2010 +0100
+++ b/mercurial/hg.py	Thu Mar 18 16:38:07 2010 +0100
@@ -209,6 +209,7 @@
         src_repo = repository(ui, source)
     else:
         src_repo = source
+        branch = None
         origsource = source = src_repo.url()
     rev, checkout = addbranchrevs(src_repo, src_repo, branch, rev)