Thierry Volpiatto <[email protected]> writes:
> [email protected] (Phillip Lord) writes:
>
>> I'm getting a recurrent problem with the mercurial backend for DVC.
>>
>> If I do a "status" call, DVC runs mercurial as expected. However, the
> What is a "status" call?
> Is it M-x dvc-status (C-x V s)?
Yeah, sorry, not the clearest statement ever.
>>From where do launch dvc-status, one of the buffers of your project, the
> dired buffer of your project?
>
>> use of "=" to get a diff fails, with a "no such directory" error. It's a
>> little limiting because this is I usually scan through all my files this
>> way when writting a change comment.
>>
>> I had a go at debugging this further, but I can't get my head around the
>> DVC code base!
>>
>> Any advice welcome.
> Can't reproduce here.
Hmmm. Okay, well if I know that it *should* work, I can spend more time
trying to get it to do so.
> It seem you work on an USB key, are you sure your key is still
> mounted?
No, this isn't the case. I'm running directly from internal IDE hard
drive. The /mnt/sdb1 part of the canonical name is a historical
accident, as the machine has two internal hard drives. I get the same
behaviour on other machines, with a single hard drive.
My apologies, anyway, I should have given a better bug report in the
first place. So, I have just tried to replicate this behaviour, with the
following steps. It's actually a multi-backend problem, it appears. So
emacs -Q
In *scratch* eval...
(add-to-list 'load-path "~/emacs/packages/dvc/lisp")
(require 'dvc-autoloads)
success.
Navigate to ~/emacs/packages/dvc/lisp. Add a blank line to a one of the
lisp files.
C-xVs (dvc-status) produces....
modified:
modified lisp/baz-dvc.el
unknown:
unknown texinfo/dvc.cp
unknown texinfo/dvc.cps
unknown texinfo/dvc.fn
unknown texinfo/dvc.ky
unknown texinfo/dvc.pdf
unknown texinfo/dvc.pg
unknown texinfo/dvc.toc
unknown texinfo/dvc.tp
unknown texinfo/dvc.vr
Place the cursor over "lisp/baz-dvc.el" (this is why you need to add a
blank line).
= (dvc-diff-diff) produces ...
Setting current directory: no such file or directory, lisp/
or with Enter debugger turned on, this backtrace.
Debugger entered--Lisp error: (file-error "Setting current directory" "no such
file or directory" "lisp/")
call-process("diff" nil #<buffer *bzr-file-diff*<4>> nil "-u"
"-La/lisp/baz-dvc.el" "-Lb/lisp/baz-dvc.el" "/tmp/DVC-file-diff-base4210oIM"
"/tmp/DVC-file-diff-mod42101SS")
dvc-dvc-file-diff("lisp/baz-dvc.el" (bzr (last-revision
"/mnt/sdb1/home/phillord/emacs/packages/dvc/" 1)) (bzr (local-tree
"/mnt/sdb1/home/phillord/emacs/packages/dvc/")) t)
apply(dvc-dvc-file-diff ("lisp/baz-dvc.el" (bzr (last-revision
"/mnt/sdb1/home/phillord/emacs/packages/dvc/" 1)) (bzr (local-tree
"/mnt/sdb1/home/phillord/emacs/packages/dvc/")) t))
apply(apply dvc-dvc-file-diff ("lisp/baz-dvc.el" (bzr (last-revision
"/mnt/sdb1/home/phillord/emacs/packages/dvc/" 1)) (bzr (local-tree
"/mnt/sdb1/home/phillord/emacs/packages/dvc/")) t))
dvc-apply("dvc-file-diff" ("lisp/baz-dvc.el" (bzr (last-revision
"/mnt/sdb1/home/phillord/emacs/packages/dvc/" 1)) (bzr (local-tree
"/mnt/sdb1/home/phillord/emacs/packages/dvc/")) t))
dvc-file-diff("lisp/baz-dvc.el" (bzr (last-revision
"/mnt/sdb1/home/phillord/emacs/packages/dvc/" 1)) (bzr (local-tree
"/mnt/sdb1/home/phillord/emacs/packages/dvc/")) t)
dvc-diff-diff()
call-interactively(dvc-diff-diff nil nil)
This is running a 10.04 Ubuntu (although it also occurs with later
Ubuntu's).
Phil
_______________________________________________
Dvc-dev mailing list
[email protected]
https://mail.gna.org/listinfo/dvc-dev