mercurial/localrepo.py
branchstable
changeset 15321 e174353e8cda
parent 15237 7196ed7a1505
child 15348 c681e478c429
--- a/mercurial/localrepo.py	Thu Oct 20 17:05:13 2011 -0400
+++ b/mercurial/localrepo.py	Fri Oct 21 00:33:08 2011 +0200
@@ -1062,11 +1062,12 @@
                     '.hgsubstate' not in changes[0] + changes[1] + changes[2]):
                     changes[2].insert(0, '.hgsubstate')
 
-            if subs and not self.ui.configbool('ui', 'commitsubrepos', True):
+            if subs and not self.ui.configbool('ui', 'commitsubrepos', False):
                 changedsubs = [s for s in subs if wctx.sub(s).dirty(True)]
                 if changedsubs:
                     raise util.Abort(_("uncommitted changes in subrepo %s")
-                                     % changedsubs[0])
+                                     % changedsubs[0],
+                                     hint=_("use --subrepos for recursive commit"))
 
             # make sure all explicit patterns are matched
             if not force and match.files():