On 12/28/05, Clive Crous <[EMAIL PROTECTED]> wrote:
> Is there such thing as a 'darcs copy' (or any way of getting the
> equivalent).  like 'darcs move' except you now have 2 files that share a
> common patch history?

No such thing right now.

> specifically, I have one file that's got too large to manage and I would
> like to split it into 2 'sub files' without losing the history of either.

I have found a need to do this many times before (split a large file
into smaller ones). Here is what I do:

1. Do a `darcs tag` and name the tag something like BEFORE: largefile split
2. Split the large file and create new files to hold the parts.
3. Do a `darcs rec` and name the patch something like: Split largefile
into subfile-a, subfile-b and subfile-c.
3. Add subfile-a, subfile-b, and subfile-c
4. Do a `darcs rec` for each of the new files and document in the
patch name and description which parts of largefile are in which
subfile.
5. Do a `darcs tag` and name the tag something like AFTER: largefile split

The tags are optional, but they help a lot in case you wanted to make
any rollbacks or checkpoints. Of course, if you're lazy (like me) you
can forgo the above steps and document the changes in one big patch.
--
_nimrod_a_abing_

"I reject your reality and substitute my own." -- Adam Savage

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

Reply via email to