mercurial/cmdutil.py
changeset 24471 1ff35d76421c
parent 24464 30ddc3cf76df
child 24472 1bf71faf042e
--- a/mercurial/cmdutil.py	Wed Mar 25 13:55:32 2015 +0900
+++ b/mercurial/cmdutil.py	Wed Mar 25 13:55:35 2015 +0900
@@ -282,8 +282,7 @@
         raise util.Abort(_('uncommitted changes'))
     ctx = repo[None]
     for s in sorted(ctx.substate):
-        if ctx.sub(s).dirty():
-            raise util.Abort(_("uncommitted changes in subrepo %s") % s)
+        ctx.sub(s).bailifchanged()
 
 def logmessage(ui, opts):
     """ get the log message according to -m and -l option """