You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Dariusz Olszewski <do...@globema.pl> on 2009/04/21 11:15:03 UTC

Filtering changes to svn:mergeinfo properties

Hi,

At my company we use subversion for about 8 month now. Our repository grows quite quickly - we have made about 15.000 commits so far. Since we share quite a lot of code between our projects, we use merging *A LOT*. Currently we are in the situation where merges to/from our library of shared code result in changing of around 300 directories with explicit merge info.

It is now extremely difficult to see actual code changes among all those svn:mergeinfo property changes.

We would like to have an ability to filter these changes in the UI. We mostly use TortoiseSVN, but it seems that the problem is quite difficult to solve just in Tortoise SVN UI layer - it needs some support from the underlying svn libraries.

Does anyone know what happens with the ignore-mergeinfo branch? Any plans to merge it into trunk and release?

At this moment this our *top* usability problem with subversion.

Regards,

Darek Olszewski
dol@globema.pl

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1841801

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: Filtering changes to svn:mergeinfo properties

Posted by Bob Archer <bo...@amsi.com>.
> For me this is also the biggest problem that we have with subversion.
> When we do a merge, then often more than 80% of the modified files
> have no changes in their content, but only in their mergeinfo
> properties.
> I'm not sure if this behaviour is viewed as a bug (by the subversion
> developers) or if it's "by design".

I feel this is a bug. I didn't think the merge properties were even
supposed to be put on the files... but only on the folders. Although I
thought all this was cleaned up by 1.5.5? 

I guess an svn dev will have to update us on this.

BOb

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1851229

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


Re: Filtering changes to svn:mergeinfo properties

Posted by Mike Dixon <mi...@denovosoftware.com>.
Martin Bischoff wrote:
> For me this is also the biggest problem that we have with subversion.
> When we do a merge, then often more than 80% of the modified files
> have no changes in their content, but only in their mergeinfo
> properties.
> I'm not sure if this behaviour is viewed as a bug (by the subversion
> developers) or if it's "by design".

Changing mergeinfo when it needs to be changed is by design. What is 
viewed as a bug (I believe; I'm not a one of the svn developers) is the 
way that excessive mergeinfo is created with certain old versions of svn.

> This topic appears regularly in the mailing lists, but it seems it's
> difficult to get answers to questions such as:
> 
> - is it required to commit the mergeinfo changes after a merge
> - will this be better with subversion 1.6.x (I'm still on 1.5.6)
> - can/should we remove any mergeinfo on all folders/files in trunk
> once all feature branches were reintegrated
> - how can excessive mergeinfo be prevented (what exactly causes it)
> 
> Maybe these things are even documented somewhere and I haven't found it yet.

It's possible that most of the people who know the answers have gotten 
tired of regularly answering the same questions. But to answer yours 
directly:

- It's not required, but it's a Good Idea. If you revert the mergeinfo 
changes instead of committing them, then the stored information about 
merging will be wrong. This means that anything that relies on the 
mergeinfo will be relying on wrong information and may do the wrong thing.
- 1.5.6 and later (including 1.6.x) don't generate as much new 
mergeinfo. However, this does nothing for the mergeinfo that you have 
already committed to your repository.
- The mergeinfo is the history of what has been merged. You can delete 
it if you like, but then you are deleting that history. It depends on 
how much you value history in your VCS.
- Most of the excessive mergeinfo is only created when using svn 
1.5.0-1.5.5, and it happens any time you do a repo-to-repo copy. (This 
naturally also happens if you rename or move a file, since those 
operations are performed with a copy+delete.)

An excellent in-depth article about mergeinfo can be found here:
http://www.collab.net/community/subversion/articles/merge-info.html

-Mike

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1849785

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Filtering changes to svn:mergeinfo properties

Posted by Martin Bischoff <ti...@gmail.com>.
On Tue, Apr 21, 2009 at 13:15, Dariusz Olszewski <do...@globema.pl> wrote:
> Hi,
>
> At my company we use subversion for about 8 month now. Our repository grows quite quickly - we have made about 15.000 commits so far. Since we share quite a lot of code between our projects, we use merging *A LOT*. Currently we are in the situation where merges to/from our library of shared code result in changing of around 300 directories with explicit merge info.
>
> It is now extremely difficult to see actual code changes among all those svn:mergeinfo property changes.
>
> At this moment this our *top* usability problem with subversion.
>

For me this is also the biggest problem that we have with subversion.
When we do a merge, then often more than 80% of the modified files
have no changes in their content, but only in their mergeinfo
properties.
I'm not sure if this behaviour is viewed as a bug (by the subversion
developers) or if it's "by design".

This topic appears regularly in the mailing lists, but it seems it's
difficult to get answers to questions such as:

- is it required to commit the mergeinfo changes after a merge
- will this be better with subversion 1.6.x (I'm still on 1.5.6)
- can/should we remove any mergeinfo on all folders/files in trunk
once all feature branches were reintegrated
- how can excessive mergeinfo be prevented (what exactly causes it)

Maybe these things are even documented somewhere and I haven't found it yet.

Regards,
Martin

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1849203

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


RE: Filtering changes to svn:mergeinfo properties

Posted by Nicholas Curry <Ni...@cofunds.co.uk>.
I don't know what happened to the ignore-mergeinfo branch, but I'm
having a similar problem telling the wood from the trees when committing
because of the amount of svn:mergeinfo properties that have changed when
merging.

My idea was to write a script as follows:
* For each file and folder, check whether any of the svn:mergeinfo
entries is also present in any of the parent folders up to a given root
* If it is, remove the svn:mergeinfo entry from that file/folder
* check the resulting changes back in

Is this likely to cause any issues? Has anyone tried anything similar
before? 

Thanks,
Nick

-----Original Message-----
From: Dariusz Olszewski [mailto:dol@globema.pl] 
Sent: 21 April 2009 12:15
To: users@subversion.tigris.org
Subject: Filtering changes to svn:mergeinfo properties

Hi,

At my company we use subversion for about 8 month now. Our repository
grows quite quickly - we have made about 15.000 commits so far. Since we
share quite a lot of code between our projects, we use merging *A LOT*.
Currently we are in the situation where merges to/from our library of
shared code result in changing of around 300 directories with explicit
merge info.

It is now extremely difficult to see actual code changes among all those
svn:mergeinfo property changes.

We would like to have an ability to filter these changes in the UI. We
mostly use TortoiseSVN, but it seems that the problem is quite difficult
to solve just in Tortoise SVN UI layer - it needs some support from the
underlying svn libraries.

Does anyone know what happens with the ignore-mergeinfo branch? Any
plans to merge it into trunk and release?

At this moment this our *top* usability problem with subversion.

Regards,

Darek Olszewski
dol@globema.pl

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageI
d=1841801

To unsubscribe from this discussion, e-mail:
[users-unsubscribe@subversion.tigris.org].


********************************************************
This e-mail has been swept for viruses by Cofunds.
For more information on this service, please
contact the IT Service Desk on Ext: 7060 or itservicedesk@cofunds.co.uk.
********************************************************


Cofunds Limited, 1st Floor, 1 Minster Court, Mincing Lane,
London EC3R 7AA. Registered in England and Wales
No 3965289. Authorised and regulated by Financial Services Authority. Phone: 0845 604 4001, or visit our website at www.cofunds.co.uk.
Telephone calls may be recorded for monitoring purposes.
**************************************************************************
The information contained in this message may be CONFIDENTIAL and is intended for the addressee only. Any unauthorised use, dissemination of the information, or copying of this message is prohibited. If you are not the addressee, or believe this email to have been sent in error, please notify security@cofunds.co.uk immediately and delete this message. 
Although this e-mail and any attachments are believed to be free of any virus, or other defect which might affect any computer or system into which they are received and opened, it is the responsibility of the recipient to ensure that they are virus free and no responsibility is accepted by Cofunds for any loss or damage from receipt or use thereof. 
This email does not create or vary any contractual obligations between Cofunds Limited and the addressee. Any views or opinions are solely those of the author and do not necessarily represent those of Cofunds Limited. 
Those communicating with us by electronic mail will be deemed to have accepted the risks associated with interception, amendment, loss and late or incomplete delivery. They will also be deemed to have consented to our monitoring of such communications. 
**************************************************************************

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1843223

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


RE: Re: Re: Filtering changes to svn:mergeinfo properties

Posted by "Thomas S. Trias" <to...@artizan.com>.
> On Tue, May 5, 2009 at 4:06 PM, Dariusz Olszewski <do...@globema.pl> wrote:
> >> I think a far simpler solution would be to enhance the log API to also return a flag indicating whether a path was changed in content or just properties (or both).
> >>
> >> A new flag to the changed_paths structure the log callback returns, just like the node_kind that was added in 1.6...
> >
> > This is exactly the kind of solution I was thinking about. Any chances to get this implemented in the near future?
> >
> > Anybody else who thinks this would be a good way to solve this problem (even if only partially)?
> 
> This specific feature is now implemented on subversion trunk and will
> most likely be available from Subversion 1.7. (It doesn't require a
> dump/load of the repository or even an upgrade.. just a new server
> binary).
> 
>    Bert

I was kind of hoping for a more generalized case where property changes could be reported and / or filtered by name / pattern.  It seems a shame to go through so many server round-trips to get the changed paths for a revision, enumerate the property names, and then compare the value(s) between the target revision and a different revision.

If there is already a simpler mechanism within the SVN API for doing the above, then I will delve deepr into the source next time, because I didn't find it this time.  Also, it would be nice if such a feature would percolate up to the CLI (and thus put pressure on other clients for support).

Did this feature request make its way into the issue tracker somewhere?

Thanks,

Thomas S. Trias
Senior Developer
Artizan Internet Services
http://www.artizan.com/

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2380645

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: Re: Re: Filtering changes to svn:mergeinfo properties

Posted by Dariusz Olszewski <do...@globema.pl>.
> This specific feature is now implemented on subversion trunk and will
> most likely be available from Subversion 1.7. (It doesn't require a
> dump/load of the repository or even an upgrade.. just a new server
> binary).
> 
>    Bert

Thank you very much for this information. It is good to hear that the feature is implemented.

I have looked at the commit and I must admit that I have not anticipated that this requires changes so deep into the infrastructure...

Regards,
Darek Olszewski

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2239086

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Re: Filtering changes to svn:mergeinfo properties

Posted by Bert Huijben <rh...@sharpsvn.net>.
On Tue, May 5, 2009 at 4:06 PM, Dariusz Olszewski <do...@globema.pl> wrote:
>> I think a far simpler solution would be to enhance the log API to also return a flag indicating whether a path was changed in content or just properties (or both).
>>
>> A new flag to the changed_paths structure the log callback returns, just like the node_kind that was added in 1.6...
>
> This is exactly the kind of solution I was thinking about. Any chances to get this implemented in the near future?
>
> Anybody else who thinks this would be a good way to solve this problem (even if only partially)?

This specific feature is now implemented on subversion trunk and will
most likely be available from Subversion 1.7. (It doesn't require a
dump/load of the repository or even an upgrade.. just a new server
binary).

   Bert

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2234488

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: Re: Filtering changes to svn:mergeinfo properties

Posted by Dariusz Olszewski <do...@globema.pl>.
> I think a far simpler solution would be to enhance the log API to also return a flag indicating whether a path was changed in content or just properties (or both).
> 
> A new flag to the changed_paths structure the log callback returns, just like the node_kind that was added in 1.6...

This is exactly the kind of solution I was thinking about. Any chances to get this implemented in the near future?

Anybody else who thinks this would be a good way to solve this problem (even if only partially)?

Regards,
Darek Olszewski
dol@globema.pl

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2069777

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: Re: Filtering changes to svn:mergeinfo properties

Posted by Stefan Küng <to...@gmail.com>.
I think a far simpler solution would be to enhance the log API to also return a flag indicating whether a path was changed in content or just properties (or both).

A new flag to the changed_paths structure the log callback returns, just like the node_kind that was added in 1.6...

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1875811

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Filtering changes to svn:mergeinfo properties

Posted by "Hyrum K. Wright" <hy...@mail.utexas.edu>.
On Apr 21, 2009, at 6:15 AM, Dariusz Olszewski wrote:

> Hi,
>
> At my company we use subversion for about 8 month now. Our  
> repository grows quite quickly - we have made about 15.000 commits  
> so far. Since we share quite a lot of code between our projects, we  
> use merging *A LOT*. Currently we are in the situation where merges  
> to/from our library of shared code result in changing of around 300  
> directories with explicit merge info.
>
> It is now extremely difficult to see actual code changes among all  
> those svn:mergeinfo property changes.
>
> We would like to have an ability to filter these changes in the UI.  
> We mostly use TortoiseSVN, but it seems that the problem is quite  
> difficult to solve just in Tortoise SVN UI layer - it needs some  
> support from the underlying svn libraries.
>
> Does anyone know what happens with the ignore-mergeinfo branch? Any  
> plans to merge it into trunk and release?
>
> At this moment this our *top* usability problem with subversion.

I was the one working on this branch, and it was motivated by similar  
frustration using Subversion's own repository.  That being said, my  
priorities have shifted a little bit, and while I'd like to see it  
implemented, and I'm happy to give advice to somebody working on the  
feature, I don't see myself working on it in the immediate future.

-Hyrum

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1843678

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: Filtering changes to svn:mergeinfo properties

Posted by we...@tigris.org.
We are currently experiencing the same frustration.  

I've had a read through http://svn.haxx.se/dev/archive-2008-09/0008.shtml and I guess it means that the devs are aware of it, but I don't know if it has been resolved or is still being developed.  It really is quite frustrating doing a merge of one revision (which in one of our simpler examples contains only one file), only to see 5 other unrelated files included in the changeset, and the diff is only in the mergeinfo property.  I understand that the merges need to be tracked in some location, but why do I need to be shown it, especially when it is on a file that hasn't changed?

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1854352

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: Filtering changes to svn:mergeinfo properties

Posted by Alec Kalinin <al...@gmail.com>.
My workaround with TortoiseSVN 1.6 is:

1. Do a merge.
2. Now select the root folder of the branch in TortoiseSVN and do Revert.
3. In the Revert dialog sort all files by the text status.
4. Check all files where the text status is not modified.
5. Click OK and do revert.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2383209

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].