[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn-push crashes (under cygwin)

From: <Mathias.Weinert_at_gfa-net.de>
Date: 2005-05-17 14:52:14 CEST

Max Bowsher writes:
> Mathias.Weinert@gfa-net.de wrote:
> > Thanks for your answer.
> > A svnadmin dump won't help me as I want to push several commits
> > from one repository into one single commit in another repository.
> > I'll try to make svn-push do this for me. Could you please give
> > me any hint where to start changing svn-push?
>
> Um. Do you realize how complicated a problem that is?
>
> For example:
>
> A is copied to B in r123
> B is copied to C in r126
>
> and then you try to push both of those into one revision... what now?
>
> Max.

I already realized how complicated this problem is.

My first idea was to parse the log files of the source repository and
generate svn commands which will later be applied to a wc of the target
repository.

With this a solution for your example could be:
result of parsing revision 123's log:
svn cp A B
result of parsing revision 126's log:
svn cp A C
if b has been modified in the meantime: cp B C

At the end I would have a new revision in the target repository where the
log says that B as well as C are descendants of A. That fact that C is a
copy of B is not relevant in the target repository as it only shows
changes since the last commit in this repository.

When I saw svn-push I hoped that this program could solve my problem and
prevent me from parsing the log.

Mathias
Received on Tue May 17 14:53:33 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.