convert and bfiles
David Douard
david.douard at logilab.fr
Tue Oct 27 16:05:42 UTC 2009
Hi,
I am considering using Greg's new bfile extension for an existing project. For
this to be feasible, I need to convert an existing repo to make some of the
currectly hg-tracked files be now bfile-tracked ones.
I have hacked a bit mercurial's convert extension to do this. My hack allow to
use a new filemap command "bfile" like:
=8<-- filemap ---
bfile toto
bfile lib/toto
bfile tutu/tutu
==8<--
To use it, if one wants to autmatically perform fput operations during
conversion mecanism, he should specify a --config bfiles.store=XXX argument,
like:
david:~/tmp/test$ hg convert --config
bfiles.store=/home/david/tmp/test_convert_bfile/store/ -d hg --filemap
filemap src dst
I am not very happy with my hack, but it seems to work.
I attach the bundle of my modifications (from hg-stable repo). I'd appreciate
any comments and it may be useful to some users. My main concern is that I
did not see any way of doing this without modifying the convert extension
directly. Am I wrong?
David
--
David Douard LOGILAB, Paris (France), +33 1 45 32 03 12
Formations Python, Numpy, Debian : http://www.logilab.fr/formations
Développement logiciel sur mesure : http://www.logilab.fr/services
Informatique scientifique : http://www.logilab.fr/science
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bfile_convert.bundle
Type: application/octet-stream
Size: 2013 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20091027/c36f10b5/attachment-0003.obj>
More information about the Mercurial
mailing list