--- a/mercurial/subrepo.py Tue Jan 17 19:10:58 2012 -0500
+++ b/mercurial/subrepo.py Tue Jan 17 19:10:59 2012 -0500
@@ -360,8 +360,8 @@
'''
pass
- def forget(self, files):
- pass
+ def forget(self, ui, match, prefix):
+ return []
class hgsubrepo(abstractsubrepo):
def __init__(self, ctx, path, state):
@@ -561,9 +561,9 @@
ctx = self._repo[None]
return ctx.walk(match)
- def forget(self, files):
- ctx = self._repo[None]
- ctx.forget(files)
+ def forget(self, ui, match, prefix):
+ return cmdutil.forget(ui, self._repo, match,
+ os.path.join(prefix, self._path), True)
class svnsubrepo(abstractsubrepo):
def __init__(self, ctx, path, state):