diff mercurial/hg.py @ 11818:b1ae33b813cb stable

hg.clone: do not ignore branch argument when source is a repo object This is a revert of 4a70178f9bde. The "bug" mentioned in this changeset is unclear: hopefully using a test to cover this usage should prevent any bugs.
author Nicolas Dumazet <nicdumz.commits@gmail.com>
date Fri, 02 Jul 2010 15:12:50 +0900
parents be5e86c80628
children be9c4131a8f4
line wrap: on
line diff
--- a/mercurial/hg.py	Wed Aug 11 12:29:20 2010 +0200
+++ b/mercurial/hg.py	Fri Jul 02 15:12:50 2010 +0900
@@ -221,7 +221,7 @@
         src_repo = repository(ui, source)
     else:
         src_repo = source
-        branch = (None, [])
+        branch = (None, branch or [])
         origsource = source = src_repo.url()
     rev, checkout = addbranchrevs(src_repo, src_repo, branch, rev)