comparison 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
comparison
equal deleted inserted replaced
37755:886754323bed 37756:e7bf5a73e4e1
350 ''' 350 '''
351 walk recursively through the directory tree, finding all files 351 walk recursively through the directory tree, finding all files
352 matched by the match function 352 matched by the match function
353 ''' 353 '''
354 354
355 def forget(self, match, prefix, dryrun): 355 def forget(self, match, prefix, dryrun, confirm):
356 return ([], []) 356 return ([], [])
357 357
358 def removefiles(self, matcher, prefix, after, force, subrepos, 358 def removefiles(self, matcher, prefix, after, force, subrepos,
359 dryrun, warnings): 359 dryrun, warnings):
360 """remove the matched files from the subrepository and the filesystem, 360 """remove the matched files from the subrepository and the filesystem,
813 def walk(self, match): 813 def walk(self, match):
814 ctx = self._repo[None] 814 ctx = self._repo[None]
815 return ctx.walk(match) 815 return ctx.walk(match)
816 816
817 @annotatesubrepoerror 817 @annotatesubrepoerror
818 def forget(self, match, prefix, dryrun): 818 def forget(self, match, prefix, dryrun, confirm):
819 return cmdutil.forget(self.ui, self._repo, match, 819 return cmdutil.forget(self.ui, self._repo, match,
820 self.wvfs.reljoin(prefix, self._path), 820 self.wvfs.reljoin(prefix, self._path),
821 True, dryrun=dryrun) 821 True, dryrun=dryrun, confirm=confirm)
822 822
823 @annotatesubrepoerror 823 @annotatesubrepoerror
824 def removefiles(self, matcher, prefix, after, force, subrepos, 824 def removefiles(self, matcher, prefix, after, force, subrepos,
825 dryrun, warnings): 825 dryrun, warnings):
826 return cmdutil.remove(self.ui, self._repo, matcher, 826 return cmdutil.remove(self.ui, self._repo, matcher,