Remove given files from the repository. The command doesn't remove the
working copy of the file."""
+directory = DirectoryHasRepository()
options = [make_option('-f', '--force',
help = 'force removing even if the file exists',
action = 'store_true')]
if len(args) < 1:
parser.error('incorrect number of arguments')
+ if not crt_series.get_current():
+ raise CmdException, 'No patches applied'
+
git.rm(args, options.force)