Suno Ano | 5 Feb 13:42
Gravatar

dvc-init and GIT

I am on up to date Emacs as well as up to date DVC from the repository.
OS is Debian.

I just realized that dvc-init does not provide support for GIT. Is there
a special reason for this?

I either need to go to the CLI (Command Line Interface) and use git init
or use xgit-init.
Thierry Volpiatto | 5 Feb 15:16
Picon
Gravatar

Re: dvc-init and GIT

Hi Suno!
Suno Ano <suno.ano <at> sunoano.org> writes:

> I am on up to date Emacs as well as up to date DVC from the repository.
> OS is Debian.
>
> I just realized that dvc-init does not provide support for GIT. Is there
> a special reason for this?

I think somebody implement xgit-init and forget to link it to dvc-init.

> I either need to go to the CLI (Command Line Interface) and use git init
> or use xgit-init.

Fixed:
I send a patch for that right now.

--

-- 
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France
Suno Ano | 5 Feb 19:21
Gravatar

Re: dvc-init and GIT


 Thierry> I think somebody implement xgit-init and forget to link it to
 Thierry> dvc-init. Fixed: I send a patch for that right now.

I see, thank you!
Stefan Reichör | 5 Feb 20:46
Picon

[commit] rev 525: Patch from Thierry Volpiatto: Added support for xgit to dvc-init

Committed revision 525 to http://bzr.xsteve.at/dvc/

Patch from Thierry Volpiatto: Added support for xgit to dvc-init
Suno Ano | 5 Feb 21:00
Gravatar

dvc-inventory implementation for git

I just figured there is no GIT implementation for dvc-inventory. Imho
`git ls-files` with the appropriate commands/flags should do?

git ls-tree might also cater to this implementation ...

Are there any plans/discussions to implement this for the GIT back end
too?
Suno Ano | 5 Feb 21:34
Gravatar

bug with dvc-config-directory

I may have found a bug. Can somebody reproduce this:

 - create a new directory e.g. ~/foo/bar/dvc_config
 - do cp -a ~/.dvc/* ~/foo/bar/dvc_config
 - remove ~/.dvc
 - put (setq dvc-config-directory ~/foo/bar/dvc_config) in .emacs and
   evaluate
 - do something that stores stuff in dvc-config-directory e.g. create a
   bookmark
 - restart Emacs
 - peng, there it is
  - a fresh ~/.dvc was created although
  - dvc-config-directory points to ~/foo/bar/dvc_config
  - issuing for example dvc-bookmarks takes its information from ~/.dvc
    were it should consult ~/foo/bar/dvc_config which holds the former
    created bookmark (in addition to the default ones)

I am on up to date code from the repository (true for dvc and emacs).
Suno Ano | 5 Feb 22:09
Gravatar

Re: [commit] rev 525: Patch from Thierry Volpiatto: Added support for xgit to dvc-init


 Stefan> Committed revision 525 to http://bzr.xsteve.at/dvc/ Patch from
 Stefan> Thierry Volpiatto: Added support for xgit to dvc-init

Ok, the patch was added but either I am missing something or ... well, I
am not.

In short it is not working. In xgit-dvc.el there is now (defalias
'xgit-dvc-init 'xgit-init) but then there is no xgit-dvc-init anywhere
in the code.
Thierry Volpiatto | 6 Feb 07:30
Picon
Gravatar

Re: [commit] rev 525: Patch from Thierry Volpiatto: Added support for xgit to dvc-init

Suno Ano <suno.ano <at> sunoano.org> writes:

>  Stefan> Committed revision 525 to http://bzr.xsteve.at/dvc/ Patch from
>  Stefan> Thierry Volpiatto: Added support for xgit to dvc-init
>
> Ok, the patch was added but either I am missing something or ... well, I
> am not.
>
> In short it is not working. In xgit-dvc.el there is now (defalias
> 'xgit-dvc-init 'xgit-init) but then there is no xgit-dvc-init anywhere
> in the code.
Yes that's normal, you have just to create your directory, then run 
M-x dvc-init (C-x V I) and NOT xgit-dvc-init (for internal use only).

dvc-init ==>will_find==>xgit-dvc-init==>that_will_find==>xgit-init.

That's work fine here.

--

-- 
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France
Thierry Volpiatto | 6 Feb 07:33
Picon
Gravatar

Re: bug with dvc-config-directory

Suno Ano <suno.ano <at> sunoano.org> writes:

> I may have found a bug. Can somebody reproduce this:
>
>  - create a new directory e.g. ~/foo/bar/dvc_config
>  - do cp -a ~/.dvc/* ~/foo/bar/dvc_config
>  - remove ~/.dvc
>  - put (setq dvc-config-directory ~/foo/bar/dvc_config) in .emacs and
>    evaluate
>  - do something that stores stuff in dvc-config-directory e.g. create a
>    bookmark
>  - restart Emacs
>  - peng, there it is
>   - a fresh ~/.dvc was created although
>   - dvc-config-directory points to ~/foo/bar/dvc_config
>   - issuing for example dvc-bookmarks takes its information from ~/.dvc
>     were it should consult ~/foo/bar/dvc_config which holds the former
>     created bookmark (in addition to the default ones)

May be i forget a hardlink to ~/.dvc somewhere in dvc-bookmarks, i will
have a look today.
Thank you to point that out.
> I am on up to date code from the repository (true for dvc and emacs).

--

-- 
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France
Thierry Volpiatto | 6 Feb 08:16
Picon
Gravatar

Re: bug with dvc-config-directory

Thierry Volpiatto <thierry.volpiatto <at> gmail.com> writes:

> Suno Ano <suno.ano <at> sunoano.org> writes:
>
>> I may have found a bug. Can somebody reproduce this:
>>
>>  - create a new directory e.g. ~/foo/bar/dvc_config
>>  - do cp -a ~/.dvc/* ~/foo/bar/dvc_config
>>  - remove ~/.dvc
>>  - put (setq dvc-config-directory ~/foo/bar/dvc_config) in .emacs and
>>    evaluate
>>  - do something that stores stuff in dvc-config-directory e.g. create a
>>    bookmark
>>  - restart Emacs
>>  - peng, there it is
>>   - a fresh ~/.dvc was created although
>>   - dvc-config-directory points to ~/foo/bar/dvc_config
>>   - issuing for example dvc-bookmarks takes its information from ~/.dvc
>>     were it should consult ~/foo/bar/dvc_config which holds the former
>>     created bookmark (in addition to the default ones)
>
> May be i forget a hardlink to ~/.dvc somewhere in dvc-bookmarks, i will
> have a look today.
> Thank you to point that out.

No there is no bug, when changing the value of `dvc-config-directory',
you have to reevaluate also `dvc-bookmarks-prop-file' and
`dvc-bookmarks-file-name' with the function `dvc-config-file-full-path'.
Thought the best you have to do is to setup `dvc-config-directory'
(don't forget the "/" at the end!) and restart emacs.
(Continue reading)


Gmane