diff mercurial/subrepo.py @ 37756:e7bf5a73e4e1

forget: add --confirm option Also added confirmopts in cmdutil.py Differential Revision: https://phab.mercurial-scm.org/D2934
author Sushil khanchi <sushilkhanchi97@gmail.com>
date Thu, 22 Mar 2018 16:11:42 +0530
parents 56df2ca5c032
children 7269b87f817c
line wrap: on
line diff
--- a/mercurial/subrepo.py	Fri Apr 13 23:12:07 2018 -0400
+++ b/mercurial/subrepo.py	Thu Mar 22 16:11:42 2018 +0530
@@ -352,7 +352,7 @@
         matched by the match function
         '''
 
-    def forget(self, match, prefix, dryrun):
+    def forget(self, match, prefix, dryrun, confirm):
         return ([], [])
 
     def removefiles(self, matcher, prefix, after, force, subrepos,
@@ -815,10 +815,10 @@
         return ctx.walk(match)
 
     @annotatesubrepoerror
-    def forget(self, match, prefix, dryrun):
+    def forget(self, match, prefix, dryrun, confirm):
         return cmdutil.forget(self.ui, self._repo, match,
                               self.wvfs.reljoin(prefix, self._path),
-                              True, dryrun=dryrun)
+                              True, dryrun=dryrun, confirm=confirm)
 
     @annotatesubrepoerror
     def removefiles(self, matcher, prefix, after, force, subrepos,