perhaps it is not needed to use "svn merge" for the trivial backports.
Otherwise we'll end up with pages of rev tags in the relbranch
shortly.
I would suggest to only use it in case of substantial changes (be many
or be important ones).
On Tue, Jan 13, 2015 at 8:24 AM, Markus Neteler <neteler@osgeo.org> wrote:
Hi devs,
perhaps it is not needed to use "svn merge" for the trivial backports.
Otherwise we'll end up with pages of rev tags in the relbranch
shortly.
I would suggest to only use it in case of substantial changes (be many
or be important ones).
svn merge is quite convenient with scripts written by Hamish. Doing it by
hand will make backports even more painful then their are now. There was
some possibility to remove the merge information from the commit, right?
Wouldn't this by satisfactory solution to what you want? (It would be
different with Git...)
On Tue, Jan 13, 2015 at 11:34 AM, Markus Neteler <neteler@osgeo.org> wrote:
On Jan 13, 2015 4:52 PM, "Martin Landa" <landa.martin
<landa.martin@gmail.com>@ <landa.martin@gmail.com>gmail.com
<landa.martin@gmail.com>> wrote:
>
> Hi,
>
> I used that in the past [1], but AFAIU we decided to keep
> svn:mergeinfo part of commits, so I locally commented that line.
I would like to revise my opinion given the accumulated experience
For small change like msg cosmetics the merge info adds rather noise than
anything useful. In some months we'll have pages of merge info tags...
just wondering, where exactly do you see these pages of merge info tags?
Anna
Perhaps we add a flag to the nice merge script to make the merge info
optimal?
Trac is showing it quite nicely. But I guess that this is just another SVN
feature which nobody wants anymore. We can do whatever as long as we have
script which will do it. The `svn propdel...` is not really good because it
deletes, so it creates a diff if something is already there. I think that's
the reason Martin was forced to comment it out in his script. I did `svn
revert .` to get rid of any changes in properties but this will not work
when you changed some files in root directory I guess.
2015-01-14 7:16 GMT+01:00 Vaclav Petras <wenzeslaus@gmail.com>:
the reason Martin was forced to comment it out in his script. I did `svn
revert .` to get rid of any changes in properties but this will not work
when you changed some files in root directory I guess.
On Wed, Jan 14, 2015 at 3:29 AM, Martin Landa <landa.martin@gmail.com>
wrote:
Hi,
2015-01-14 7:16 GMT+01:00 Vaclav Petras <wenzeslaus@gmail.com>:
> the reason Martin was forced to comment it out in his script. I did `svn
> revert .` to get rid of any changes in properties but this will not work
> when you changed some files in root directory I guess.
use
svn propdel svn:mergeinfo .
This deletes all mergeinfos, so you got a large diff when you executed.
You are saying that this is ok, i.e. we want to get rid of the infos?
> svn propdel svn:mergeinfo .
>
> This deletes all mergeinfos, so you got a large diff when you executed.
You are saying that this is ok, i.e. we want to get rid of the infos?
Deleting the svn:mergeinfo property is probably safe, as we're
unlikely to ever merge entire branches.
svn:mergeinfo is used to prevent a commit from being merged twice.
It's more useful in the case where branches eventually end up getting
merged back into the trunk (or their "parent" branch) in their
entirety.
If you merge a specific commit from a branch (cherry-pick), the
revision number is added to the target's svn:mergeinfo property. If
you subsequently merge the entire branch, any commits specified by the
svn:mergeinfo property will be skipped.
If you delete the svn:mergeinfo property, any subsequent merge will
attempt to apply the changes a second time, which will fail
(hopefully; if it succeeds, the result is unlikely to something you
would want).
This isn't like to be an issue if you only ever merge individual
commits (I'm assuming that you aren't going to explicitly ask for a
specific commit to be merged a second time).
On Thu, Jan 15, 2015 at 2:36 AM, Glynn Clements <glynn@gclements.plus.com>
wrote:
Vaclav Petras wrote:
> svn propdel svn:mergeinfo .
>
> This deletes all mergeinfos, so you got a large diff when you executed.
>
> You are saying that this is ok, i.e. we want to get rid of the infos?
Deleting the svn:mergeinfo property is probably safe, as we're
unlikely to ever merge entire branches.
On Thu, Jan 15, 2015 at 8:33 AM, Markus Neteler <neteler@osgeo.org> wrote:
Backported in r64193 (along with "svn propdel svn:mergeinfo ." to see
how it behaves).
It deletes all mergeinfos, so we got a large diff now [1], Trac shows it in
siple way [2]. However, next time it will remain deleted as long as we
use `propdel`,
so no large diffs will be happening and everything will be fine.
To paraphrase one of Git design rules [3]: If SVN offers some feature, be
sure not to use it.
This deletes all mergeinfos, so you got a large diff when you executed.
You are saying that this is ok, i.e. we want to get rid of the infos?
Deleting the svn:mergeinfo property is probably safe, as we’re
unlikely to ever merge entire branches.
On Thu, Jan 15, 2015 at 8:33 AM, Markus Neteler <neteler@osgeo.org> wrote:
Backported in r64193 (along with “svn propdel svn:mergeinfo .” to see
how it behaves).
It deletes all mergeinfos, so we got a large diff now [1], Trac shows it in siple way [2]. However, next time it will remain deleted as long as we use propdel, so no large diffs will be happening and everything will be fine.
To paraphrase one of Git design rules [3]: If SVN offers some feature, be sure not to use it.
and I again deleted some merge infos although I deleted them (all) last
time. So, am I supposed to use `svn propdel` or not?
It doesn't matter. Deleting it makes it impossible to merge entire
branches, but we're probably never going to want to do that. Keeping
it has no consequences beside aesthetics.