Re: [crossfire] Using svnmerge for backporting to branch?

2008-02-21 Thread Raphaël Quinet
On Wed, 20 Feb 2008 23:43:28 -0800, Mark Wedel [EMAIL PROTECTED] wrote:
 
   Perhaps the biggest problem with using svnmerge is getting everyone to use 
 it.

This is not a requirement.  It is easier if most developers use it, but
it can also cope with revisions that are merged by hand.

To be frank, when someone suggested last year that I start using svnmerge
for the gimp-related svn modules, I was a bit reluctant at first.  And I
was also wondering what would happen if some developers were not using it.
But after I started using it, I understood that it was just a smart
wrapper around 'svn merge' that makes revision tracking easier and does
not get in the way if you still want to do things by hand.  That's why I
am now convinced that such a tool is useful.  But it doesn't do miracles
either and I am not here for promoting it actively, so it is also fine for
me if we decide not to use it.

   What happens if someone doesn't use svnmerge - makes change in trunk, and 
 then 
 still does manual merge in branch?  I'm guessing it would try to re-merge it 
 then?

In the background, the svnmerge script calls 'svn merge' anyway.  What
will happen in this case is that svnmerge will show you that this
revision is still 'available' for merging.  However, when merging it
will detect that the change was already merged, just like if you would
try 'svn merge' twice on the same revisions.  Once you commit, svnmerge
will mark that revision as already merged, so that it will not pop up
again when anybody else uses 'svnmerge avail' to list the candidates
for merging.

   Given fairly big code changes in the server from trunk and client (item 
 refactoring, some others), one gets more cases of automatic merges not 
 working. 
 I'm guessing this really doesn't change much (svnmerge won't get confused 
 with 
 those changes?)

Since svnmerge uses 'svn merge' to merge the changes, it will not get
more or less confused.  The main difference is that one can explicitly
block some revisions if they are not bug fixes and should not be merged.

   What about 'reverse' commits?  It doesn't happen very often, but sometimes 
 I 
 make the bugfix first on the branch, and then commit back to server?

This is not very elegant, but it also works.  You can always merge
things by hand anyway, and then later mark the revisions as merged.

To give you an idea of how it works, I suggest that you have a look at
this page and read the sections 1 Features and then 7 Quick Usage
Overview: http://www.orcaware.com/svn/wiki/Svnmerge.py

-Raphaël

___
crossfire mailing list
crossfire@metalforge.org
http://mailman.metalforge.org/mailman/listinfo/crossfire


Re: [crossfire] Using svnmerge for backporting to branch?

2008-02-20 Thread Mark Wedel

  Perhaps the biggest problem with using svnmerge is getting everyone to use it.

  For myself, I've been doing merges with 'svn merge ...'

  Do have a few questions however:

  What happens if someone doesn't use svnmerge - makes change in trunk, and 
then 
still does manual merge in branch?  I'm guessing it would try to re-merge it 
then?

  Given fairly big code changes in the server from trunk and client (item 
refactoring, some others), one gets more cases of automatic merges not working. 
I'm guessing this really doesn't change much (svnmerge won't get confused with 
those changes?)

  What about 'reverse' commits?  It doesn't happen very often, but sometimes I 
make the bugfix first on the branch, and then commit back to server?


___
crossfire mailing list
crossfire@metalforge.org
http://mailman.metalforge.org/mailman/listinfo/crossfire


Re: [crossfire] Using svnmerge for backporting to branch?

2008-02-14 Thread Nicolas Weeger
Hello.

 After applying a trivial bug fix for the manual pages of the clients, I
 thought about merging the patch to the 1.x branch.  However, it looks like
 all previous merges have been done by hand (hopefully using svn merge)
 instead of using automated tools like svnmerge (no space).  Or at least,
 I was unable to find the svn properties that are usually stored by
 svnmerge when it is used.

I have no objection to use svnmerge, but as you point out *everyone* should it 
if we decide to use it.

I would say for current trunk/branch it may not be that required, as I fully 
expect branch To Die Soon (tm) :)
Except for bugfixes, of course.

So maybe for the future 3.0 branch?

Nicolas
-- 
http://nicolas.weeger.org [Petit site d'images, de textes, de code, bref de 
l'aléatoire !]


signature.asc
Description: This is a digitally signed message part.
___
crossfire mailing list
crossfire@metalforge.org
http://mailman.metalforge.org/mailman/listinfo/crossfire