changeset 10728:4a70178f9bde stable

fix bug in hg.clone when passing in a repository object
author Sune Foldager <cryo@cyanite.org>
date Thu, 18 Mar 2010 16:38:07 +0100
parents 00d46934ee35
children 7a5931c5f2dc
files mercurial/hg.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)