Propagating push arguments to subrepos

Isaac Jurado diptongo at
Thu Sep 29 03:37:42 CDT 2011

On Thu, Sep 29, 2011 at 8:09 AM, Didly <didlybom at> wrote:
> Hi,
> it seems that when you push a repo that contains subrepos, when the
> subrepos are pushed they do not use the arguments that are passed to
> the push command. This means that if you have a new branch on a
> subrepo the push action will always fail even if you use is the
> --new-branch argument. This is quite annoying and is something that I
> face quite often.
> Is there a way to pass down the push arguments to the subrepos? If not
> I may be interested in trying to add that functionality (perhaps by
> adding a -S flag to push), as long as you guys think it is a good
> idea.

The simplest solution is to work INSIDE the subrepo for any case that
requires special attention.

Isaac Jurado

"The noblest pleasure is the joy of understanding"
Leonardo da Vinci

More information about the Mercurial-devel mailing list