Trent W. Buck wrote:
> With the new Darcs support, I'd like to start using it for /etc[0].
> 
> In order to do so, I need to convert the existing history from git to
> darcs format.  I know how to do this for normal (code) repositories
> using e.g. fast-export or tailor.  However, etckeeper has some
> metadata files that I don't know much about.

The metadata files are just files in version control, there should be
nothing special involved in converting them.

I think the main thing you'll want to take care about is changing /etc
from one repo type to the other w/o actualy deleting or checking out all
the files in it, as that would tend to break your system.

If you convert from a VCS like git that keeps track of executable bits
to one like darcs that does not, then old versions in the resulting
darcs repository will not have that info, presenting a further problem
if you tried to check them out. Once etckeeper knows you're using darcs,
it will record executable permissions in /etc/.etckeeper.
 
> It would be good if Debian.README had a couple of paragraphs
> explaining what (if anything) is necessary to preserve history when
> converting an etckeeper repository to a different backend.

As far as I can see, the only etckeeper specific thing thing you'd need
to do is  run 'etckeeper init' after converting the repository. But I've
never done this so I really can't tell. Looking forward to your patch to
the documentation. :-)

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature

Reply via email to