Thierry Volpiatto <[email protected]> writes:

>> i noticed since last changes that the "a" command don't work as intended
>> with hg.
>> With other backend, the status buffer is updated with "added" but with
>> hg, the buffer is not updated and an error is raised.
>> hg use "A" and not "added", that's maybe the reason.
>> I didn't have the time to debug that, i will do it as soon as possible
>> and send backtrace and more infos.
>
> Here the backtrace:
>
> ,----
> | Debugger entered--Lisp error: (error "dvc-fileinfo-file-status storing a 
> non-dvc-fileinfo-file")
> |   signal(error ("dvc-fileinfo-file-status storing a non-dvc-fileinfo-file"))
> |   error("dvc-fileinfo-file-status storing a non-dvc-fileinfo-file")
> |   dvc-fileinfo-set-status(added)
> |   dvc-fileinfo-add-files()
> |   call-interactively(dvc-fileinfo-add-files nil nil)
> `----
>
> After hitting "a" in a dvc-status buffer with hg as backend, and
> answering "y" to add file.

There's a bug in dvc-fileinfo-set-status; it detects the type of the
fileinfo incorrectly.

I'll fix the bug.

However, that won't make the status buffer update with 'added',
because xhg is still using dvc-fileinfo-legacy instead of
dvc-fileinfo-file.

If you want to upgrade, see bzr.el and xmtn-dvc.el for examples.

-- 
-- Stephe

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

Reply via email to