[darcs-users] Re: Remove a file from the repository

Joel Lucsy jjlucsy at gmail.com
Tue Oct 17 23:23:49 UTC 2006


Er, well, thats odd. The same procedure worked just fine on a
removable drive, but would stall on the main drive like it was waiting
for a lock or something. I guess my program works just fine, just
something odd about my setup. Thanks anyways.

On 10/17/06, Joel Lucsy <jjlucsy at gmail.com> wrote:
> 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
>



-- 
Joel Lucsy
"The dinosaurs became extinct because they didn't have a space
program." -- Larry Niven




More information about the darcs-users mailing list