Michael Olson <[EMAIL PROTECTED]> writes:

> It would be great if there was a keybinding in the bzr-status buffer
> that could delete files from the filesystem (not just from bzr).  I
> keep my home directory under revision control, and used to use
> tla-status to perform routine cleanups.
>
> Running dvc-remove-files seems to come close to what I want, except
> that I get the following backtrace.
>
> Debugger entered--Lisp error: (void-function dvc-dvc-remove-files)
>   dvc-dvc-remove-files("scripts/config.py" "scripts/akismet_submit_email.py" 
> "scripts/akismet.py")
>   apply(dvc-dvc-remove-files ("scripts/config.py" 
> "scripts/akismet_submit_email.py" "scripts/akismet.py"))
>   dvc-apply("dvc-remove-files" "scripts/config.py" 
> "scripts/akismet_submit_email.py" "scripts/akismet.py")
>   apply(dvc-apply "dvc-remove-files" ("scripts/config.py" 
> "scripts/akismet_submit_email.py" "scripts/akismet.py"))
>   dvc-remove-files("scripts/config.py" "scripts/akismet_submit_email.py" 
> "scripts/akismet.py")
>   call-interactively(dvc-remove-files)
>   execute-extended-command(nil)
>   call-interactively(execute-extended-command)

The following function should do it:

(defun bzr-remove-files (&rest files)
  "Run bzr remove."
  (message "bzr-remove-files: %s" files)
  (dvc-run-dvc-sync 'bzr (append '("remove") files)
                    :finished (dvc-capturing-lambda
                                  (output error status arguments)
                                (message "bzr remove finished"))))


I will add it soon to my branch.


Stefan.

_______________________________________________
Dvc-dev mailing list
[email protected]
https://mail.gna.org/listinfo/dvc-dev

Reply via email to