--- a/mercurial/cmdutil.py Sat Feb 07 19:40:02 2015 -0500
+++ b/mercurial/cmdutil.py Sat Feb 07 21:47:28 2015 -0500
@@ -2783,14 +2783,14 @@
_performrevert(repo, parents, ctx, actions)
- # get the list of subrepos that must be reverted
- subrepomatch = scmutil.match(ctx, pats, opts)
- targetsubs = sorted(s for s in ctx.substate if subrepomatch(s))
-
- if targetsubs:
- # Revert the subrepos on the revert list
- for sub in targetsubs:
- ctx.sub(sub).revert(ctx.substate[sub], *pats, **opts)
+ # get the list of subrepos that must be reverted
+ subrepomatch = scmutil.match(ctx, pats, opts)
+ targetsubs = sorted(s for s in ctx.substate if subrepomatch(s))
+
+ if targetsubs:
+ # Revert the subrepos on the revert list
+ for sub in targetsubs:
+ ctx.sub(sub).revert(ctx.substate[sub], *pats, **opts)
finally:
wlock.release()