Hi,

"Luke Palmer" <[EMAIL PROTECTED]> writes:
> I would contribute to darcs if only it had support / could have support for
> splitting and merging repositories.  For example, I like to work in a big
> repository of all my stuff ever, because most of the things I do rarely exceed
> an experiment in one file.  But once something does get big enough to be
> interesting, I want to split it off into its own repository.  But that's just
> the use case: doing it the git way (go through all patches, discard irrelevant
> ones, filter relevant ones, thus losing all correlation with the original
> repository) is not going to inspire me; I'd like to see support for it in the
> beautif ul patch theory.
the solution here is:
cd bigrepo
... edit some files ...
darcs rec -m "fooize the bars"

cd ..
mkdir smallrepo
cd smallrepo
darcs init
darcs pull ../bigrepo -a -p 'fooize the bars'

Now you have a smallest repository that contains the "fooize the bars" change
-- you might have missed some though, that's true, and doing a pull and
reviewing what's proposed is somewhat unavoidable. You can use darcs changes
<file> to see what you might have missed and then maybe again pull -p.

You also have to be careful to not record patches that spread different
"subprojects" in the bigrepo, since those will drag in both subprojects if you
try to split them.

I imagine that with darcs 2 format, this is actually not so important, with the
new dependency handling, although there's still no user-facing code to handle
that (I suppose). So with darcs 2 primitive patch semantics, you could have a
beautiful split implementable, without too much effort (basically just moving
all primitive patches that touched a given set of files to the new
repository... you don't lose the connection with darcs, either -- that's the
beauty of it). You could make it your first contribution...

(Don't let darcs wither, send your patches soon! It might not be flawless, but
it's ours and we love it. We'll love you too if you contribute.)

Yours,
    Petr.

-- 
Peter Rockai | me()mornfall!net | prockai()redhat!com
 http://blog.mornfall.net | http://web.mornfall.net

"In My Egotistical Opinion, most people's C programs should be
 indented six feet downward and covered with dirt."
     -- Blair P. Houghton on the subject of C program indentation
_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to