mercurial/subrepo.py
changeset 15912 2bd54ffaa27e
parent 15911 c654eac03452
child 16022 04604d1a9fc3
equal deleted inserted replaced
15911:c654eac03452 15912:2bd54ffaa27e
   358         walk recursively through the directory tree, finding all files
   358         walk recursively through the directory tree, finding all files
   359         matched by the match function
   359         matched by the match function
   360         '''
   360         '''
   361         pass
   361         pass
   362 
   362 
   363     def forget(self, files):
   363     def forget(self, ui, match, prefix):
   364         pass
   364         return []
   365 
   365 
   366 class hgsubrepo(abstractsubrepo):
   366 class hgsubrepo(abstractsubrepo):
   367     def __init__(self, ctx, path, state):
   367     def __init__(self, ctx, path, state):
   368         self._path = path
   368         self._path = path
   369         self._state = state
   369         self._state = state
   559 
   559 
   560     def walk(self, match):
   560     def walk(self, match):
   561         ctx = self._repo[None]
   561         ctx = self._repo[None]
   562         return ctx.walk(match)
   562         return ctx.walk(match)
   563 
   563 
   564     def forget(self, files):
   564     def forget(self, ui, match, prefix):
   565         ctx = self._repo[None]
   565         return cmdutil.forget(ui, self._repo, match,
   566         ctx.forget(files)
   566                               os.path.join(prefix, self._path), True)
   567 
   567 
   568 class svnsubrepo(abstractsubrepo):
   568 class svnsubrepo(abstractsubrepo):
   569     def __init__(self, ctx, path, state):
   569     def __init__(self, ctx, path, state):
   570         self._path = path
   570         self._path = path
   571         self._state = state
   571         self._state = state