[darcs-users] Remove directory, pull a patch that re-creates it. Not working

Asfand Yar Qazi ayqazi at gmail.com
Tue Dec 18 10:34:04 UTC 2007


On 17/12/2007, Stephen J. Turnbull <stephen at xemacs.org> wrote:
> Asfand Yar Qazi writes:
>
>  > On 16/12/2007, David Roundy <droundy at darcs.net> wrote:
>  > > I'm afraid you've got to recreate the directory (and its contents) in a
>  > > third patch created in a repository that has both conflicting patches.
>  > >
>  > > David
>  >
>  > Oh well, there goes our plans for sharing code between two
>  > similar-but-not-sharing-patch-hierarchy code bases then.
>  >
>  > Hope this gets fixed in darcs 2.0!
>
> I don't see what is to be fixed.  Darcs depends on a connected patch
> history to do its work.
>
> If you want that kind of thing to work as part of the normal function
> of your SCM, use a snapshot-oriented SCM like git.

It's not about normal work - it's about creating common patch ancestry
for repositories that have identical code so code can be shared from
that point onwards.

Basically, the two repositories are Ruby on Rails applications that
were created separately, and I want to be able to share patches for
plugins between them, so that updates to those plugins can also be
pushed/pulled between them easily.  That's why I thought deleting the
directory then re-creating it by using patches from the other one
would work.  It doesn't matter though, it's not too important.


More information about the darcs-users mailing list