On Sat, Jun 16, 2007 at 02:58:57PM -0300, Robin Bate Boerop wrote:
> How can I create a repo in which only changes are recorded?  So,  
> suppose I have a large set of files which I want to change, but I  
> don't want that large set of files in my repo because I don't want  
> other users of the repo to be able to copy those files.  I DO want  
> the other users of the repo to be able to obtain my CHANGES to those  
> files.  In other words, I want a repo of patches, but without the  
> (original) files being patched.
> 
> I figured that I might be able to achieve this with --no-pristine- 
> tree and --partial, or maybe --relink --sibling, but I'm not quite  
> sure how.  I would greatly appreciate a pointer in the right direction.
> 
> Has anyone done this before?

I just thought of 2 disgusting "solutions" :)

Way 1:

- Create a new repository.
- Add those files, record a patch. Save the "_darcs/inventory" file
  somewhere.
- You can now work locally with this repository.
- If you publish it, make sure nobody can read the first patch or
  anything in "_darcs/pristine" or anything outside of "_darcs".
- To make other people able to pull from your repository, distribute the
  saved "_darcs/inventory" file and instruct people how to build a
  working repository (darcs init, replace inventory, put the set of
  files into the right place in the top dir AND under _darcs/pristine)

I tested this locally and it should work (it breaks "darcs repair" for
everybody since they are missing a patch)

Way 2:

Make the first patch (the one with your big files) 100% reproducible.
In the current darcs repository structure this is easily possible using
"darcs record -y -l --pipe" and always passing the same input to it. So
you could distribute a script which checks for the presence of the
files, creates the init patch and then pulls from your patch repository.
This has the risk that users could use darcs to pass this init patch
around...

Greetings, Tobi

PS: I said my "solutions" were disgusting ;)
-- 
GPG-Key 0xE2BEA341 - signed/encrypted mail preferred
My, oh so small, homepage: http://portfolio16.de/
http://www.fli4l.de/ - ISDN- & DSL-Router on one disk!
Registered FLI4L-User #00000003

Attachment: signature.asc
Description: Digital signature

_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to