Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.1, 2.1.1, and 2.1.2

manifestmodel: Verify that a subrepo revision exists before trying to access it.

Changeset ee2c739ea341

Parent f30579a20375

by Angel Ezquerra

Changes to one file · Browse files at ee2c739ea341 Showing diff from parent f30579a20375 Diff from another changeset...

 
306
307
308
309
310
311
312
313
314
 
 
 
 
 
 
 
315
316
317
 
306
307
308
 
 
 
 
 
 
309
310
311
312
313
314
315
316
317
318
@@ -306,12 +306,13 @@
  sub = ctx.sub(path)   if srev and isinstance(sub, hgsubrepo):   srepo = sub._repo - sctx = srepo[srev] - - self._subinfo[toprelpath]['ctx'] = sctx - - # Add the subrepo contents to the tree - e = addrepocontentstotree(e, sctx, toprelpath) + if srev in srepo: + sctx = srepo[srev] + + self._subinfo[toprelpath]['ctx'] = sctx + + # Add the subrepo contents to the tree + e = addrepocontentstotree(e, sctx, toprelpath)     # Add regular files to the tree   status, uncleanpaths, files = getctxtreeinfo(ctx, self._repo)