Function: vc-hg-delete-files

vc-hg-delete-files is a byte-compiled function defined in vc-hg.el.gz.

Signature

(vc-hg-delete-files FILES)

Documentation

Delete each of FILES and delete them in the Mercurial repository.

Should be called with DEFAULT-DIRECTORY equal to the repository root.

Source Code

;; Defined in /usr/src/emacs/lisp/vc/vc-hg.el.gz
(defun vc-hg-delete-files (files)
  "Delete each of FILES and delete them in the Mercurial repository.
Should be called with DEFAULT-DIRECTORY equal to the repository root."
  (dolist (file files)
    (condition-case _ (if (eq t (car (file-attributes file)))
                          (delete-directory file 'recursive)
                        (delete-file file))
      (file-error nil)))
  (vc-hg-command nil 0 files "remove" "--after" "--force"))