##// END OF EJS Templates
subrepo: introduce hgsubrepo._getctx()...
Matt Harbison -
r25572:3d8c044e default
parent child Browse files
Show More
@@ -662,6 +662,15 b' class hgsubrepo(abstractsubrepo):'
662 finally:
662 finally:
663 lock.release()
663 lock.release()
664
664
665 def _getctx(self):
666 '''fetch the context for this subrepo revision, possibly a workingctx
667 '''
668 if self._ctx.rev() is None:
669 return self._repo[None] # workingctx if parent is workingctx
670 else:
671 rev = self._state[1]
672 return self._repo[rev]
673
665 @annotatesubrepoerror
674 @annotatesubrepoerror
666 def _initrepo(self, parentrepo, source, create):
675 def _initrepo(self, parentrepo, source, create):
667 self._repo._subparent = parentrepo
676 self._repo._subparent = parentrepo
General Comments 0
You need to be logged in to leave comments. Login now