Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hg.py @ 10379:a78bfaf988e1
add -b/--branch option to clone, bundle, incoming, outgoing, pull, push
author | Sune Foldager <cryo@cyanite.org> |
---|---|
date | Sun, 07 Feb 2010 15:23:46 +0100 |
parents | d757bc0c7865 |
children | ee72d89c0d9f |
line wrap: on
line diff
--- a/mercurial/hg.py Sun Feb 07 15:31:53 2010 +0100 +++ b/mercurial/hg.py Sun Feb 07 15:23:46 2010 +0100 @@ -164,7 +164,7 @@ _update(r, uprev) def clone(ui, source, dest=None, pull=False, rev=None, update=True, - stream=False): + stream=False, branch=None): """Make a copy of an existing repository. Create a copy of an existing repository in a new directory. The @@ -196,11 +196,13 @@ update: update working directory after clone completes, if destination is local repository (True means update to default rev, anything else is treated as a revision) + + branch: branches to clone """ if isinstance(source, str): origsource = ui.expandpath(source) - source, branch = parseurl(origsource) + source, branch = parseurl(origsource, branch) src_repo = repository(ui, source) else: src_repo = source