[PATCH 1 of 1] Enable commit to disallow recursive submodule commits

Yuya Nishihara yuya at tcha.org
Thu Apr 22 08:54:47 CDT 2010


Dan Villiom Podlaski Christiansen wrote:
> On 22 Apr 2010, at 04:02, Michael Ekstrand wrote:
> 
> > # HG changeset patch
> > # User Michael Ekstrand <michael at elehack.net>
> > # Date 1271900106 18000
> > # Node ID 64e512e0de2d91c6d7dc1975992ccb4b6f0ec46b
> > # Parent  3213e8947975d7a8b44f6a11d063eb949fcb6bb5
> > Enable commit to disallow recursive submodule commits
...
> It seems to me that a general option would be nice as well.
> Currently, a repository with a broken .hgsub file is almost unusable;
> it might be worthwhile to have a way to completely disable the subrepo functionality.

FYI, I have really quick-and-dirty extension to disable
subrepo functionality:

http://bitbucket.org/yuja/hgext-nosubrepo/src/tip/hgext/nosubrepo.py

> > +                        if srepo.wcdirty() and not force:
> > +                            fail(s, _("submodule working copy dirty"
> > +                                      + " (--force to commit anyway)"))

Maybe submodule is git word?

Yuya,


More information about the Mercurial-devel mailing list