Changeset af3744ebfb92…
Parent 3d2daf2689d9…
by
Changes to one file · Browse files at af3744ebfb92 Showing diff from parent 3d2daf2689d9 Diff from another changeset...
@@ -572,7 +572,17 @@ for wsub in ctx.substate.keys():
if wfile.startswith(wsub):
srev = ctx.substate[wsub][1]
- sctx = ctx.sub(wsub)._repo[srev]
+ stype = ctx.substate[wsub][2]
+ if stype != 'hg':
+ continue
+ if not os.path.exists(ctx._repo.wjoin(wsub)):
+ # Maybe the repository does not exist in the working copy?
+ continue
+ try:
+ sctx = ctx.sub(wsub)._repo[srev]
+ except:
+ # The selected revision does not exist in the working copy
+ continue
wfileinsub = wfile[len(wsub)+1:]
if wfileinsub in sctx.substate.keys() or wfileinsub in sctx.files():
return wsub, wfileinsub, sctx
|
Loading...