diff mercurial/hg.py @ 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 ee72d89c0d9f
children 71cf11f03b3d 17031fea4e95
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)