Stephen Leake <[EMAIL PROTECTED]> writes:

Hi Stephen!

> Thierry Volpiatto <[EMAIL PROTECTED]> writes:
>
>> Hello, i use this code to update the status-buffer when i add files or
>> when i revert files:
>>
>> ,----
>> | (defadvice dvc-add-files (after reload-status-buffer)
>> |   "reload dvc-status after adding files"
>> |   (dvc-status))
>> | (ad-activate 'dvc-add-files)
>> | 
>> | (defadvice dvc-revert-files (after reload-status-buffer)
>> |   "reload dvc-status after reverting files"
>> |   (dvc-status))
>> | (ad-activate 'dvc-revert-files)
>> `----
>>
>> That is working fine for me:
>> When i add files in status, i have immediately the "A" of add instead of
>> having the "?" in front of file, same thing for revert.
>>
>> May be these changes can be applied in dvc (without advices) if it don't
>> affect something else i didn't think about.
>
> The problem with this approach is that it can be slow when the
> workspace is large and/or the backend is slow.
>
> The preferred approach is to have the DVC code itself edit the ewoc
> entry, as part of the 'dvc-add-files' command. I have that working in
> an experimental branch. It will make it to mainline eventually, but
> it's not at the top of my list at the moment.
>
> If someone else would like to work on this, I could post the code
> somewhere. It's currently only in a monotone repository.

If you can send me this code, i can have a look.

-- 
A + Thierry
Pub key: http://pgp.mit.edu


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

Reply via email to