[PATCH] clone: update to branch of parent for local source repos by default

Peter Arrenbrecht peter.arrenbrecht at gmail.com
Wed Oct 21 08:17:21 UTC 2009


On Wed, Oct 21, 2009 at 10:09 AM, Adrian Buehlmann <adrian at cadifra.com> wrote:
> --source-branch sounds good
>
> (--source-branch could even be specified in [defaults], provided
> mercurial would gracefully disregard it without moaning if it had
> been specified for a non local source repo.)
>
> My plan for --source-branch was to do the same as
>
>  hg clone -u <branch of src's parent> src dest
>
> would do.
>
> That aside, we need 'clone -u' for completeness/versatility's sake.
> We should implement that first and see if it has a chance to make
> it into 1.4. Matt's messages seem to hint at that.

I guess `hg clone -u . src dest` should cover most scenarios where
people would have wanted --source-branch.

For folks who want to put "-u ." into [defaults], we should make sure
that -U still disables it.

-parren




More information about the Mercurial-devel mailing list