[darcs-users] Remove a file from the repository

Joel Lucsy jjlucsy at gmail.com
Tue Oct 17 20:12:21 UTC 2006


Hello,
I had a number of files in the repository that I added since the beginning
of the project. I've realized that these files were either binary or auto
generated and modified with each build. I'd like to remove them wholesale as
it may affect dependencies and/or produce conflicts. The easier solution is
to simply remove them in another patch, but this feels inadequate as it will
only affect patches going forward.
To that end, I've written a small utility to go thru the patches and strip
out all references to the files in question. I gunzip, removed all
hunk/addfile/rmfile/binary references and their contents, and gzip it back.
This has worked once, but when I tried again today, it would lock up darcs
on the next "record" I tried to do. I visually inspected the new patches to
make what I did was kosher and didn't see anything wrong.
So, obviously I'm playing with fire here, but does the technique sound valid
or am I missing something? I can go over the exact method I'm using if
anyone is interested. And I also noticed I had to do a "darcs repair" to
make sure the pristine directory was updated as I didn't physically remove
the files from there.
Thanks.

-- 
Joel Lucsy
"The dinosaurs became extinct because they didn't have a space program." --
Larry Niven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osuosl.org/pipermail/darcs-users/attachments/20061017/bf532ef3/attachment.htm 


More information about the darcs-users mailing list