mercurial/subrepo.py
branchstable
changeset 20317 d6939f29b3b3
parent 20176 4c96c50ef937
child 20318 c5aef7a66607
equal deleted inserted replaced
20316:40f08c31844c 20317:d6939f29b3b3
   699         self._repo.ui.note(_('removing subrepo %s\n') % subrelpath(self))
   699         self._repo.ui.note(_('removing subrepo %s\n') % subrelpath(self))
   700         hg.clean(self._repo, node.nullid, False)
   700         hg.clean(self._repo, node.nullid, False)
   701 
   701 
   702     def _get(self, state):
   702     def _get(self, state):
   703         source, revision, kind = state
   703         source, revision, kind = state
   704         if revision not in self._repo:
   704         if revision in self._repo.unfiltered():
       
   705             return
       
   706         else:
   705             self._repo._subsource = source
   707             self._repo._subsource = source
   706             srcurl = _abssource(self._repo)
   708             srcurl = _abssource(self._repo)
   707             other = hg.peer(self._repo, {}, srcurl)
   709             other = hg.peer(self._repo, {}, srcurl)
   708             if len(self._repo) == 0:
   710             if len(self._repo) == 0:
   709                 self._repo.ui.status(_('cloning subrepo %s from %s\n')
   711                 self._repo.ui.status(_('cloning subrepo %s from %s\n')