Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hg.py @ 11544:be5e86c80628 stable
hg.clone: fix branch value when passing a repo object (issue2267)
Since 3d6915f5a2bb the branch argument for addbranchrevs should be a tuple:
(hashbranch, branches)
The right empty value therefore is (None, []) instead of None.
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Fri, 02 Jul 2010 15:05:21 +0900 |
parents | 3d6915f5a2bb |
children | b1ae33b813cb |
line wrap: on
line diff
--- a/mercurial/hg.py Tue Jul 06 15:05:03 2010 +0900 +++ b/mercurial/hg.py Fri Jul 02 15:05:21 2010 +0900 @@ -221,7 +221,7 @@ src_repo = repository(ui, source) else: src_repo = source - branch = None + branch = (None, []) origsource = source = src_repo.url() rev, checkout = addbranchrevs(src_repo, src_repo, branch, rev)