##// END OF EJS Templates
revert: handle subrepos missing in the given --rev...
Matt Harbison -
r24463:06d199e6 default
parent child Browse files
Show More
@@ -3055,7 +3055,11 b' def revert(ui, repo, ctx, parents, *pats'
3055 if targetsubs:
3055 if targetsubs:
3056 # Revert the subrepos on the revert list
3056 # Revert the subrepos on the revert list
3057 for sub in targetsubs:
3057 for sub in targetsubs:
3058 ctx.sub(sub).revert(ctx.substate[sub], *pats, **opts)
3058 try:
3059 ctx.sub(sub).revert(ctx.substate[sub], *pats, **opts)
3060 except KeyError:
3061 raise util.Abort("subrepository '%s' does not exist in %s!"
3062 % (sub, short(ctx.node())))
3059 finally:
3063 finally:
3060 wlock.release()
3064 wlock.release()
3061
3065
General Comments 0
You need to be logged in to leave comments. Login now