Is it possible to find out Revisions in SVN where in a merge activity was performed

StackOverflow https://stackoverflow.com/questions/14479013

  •  17-01-2022
  •  | 
  •  

Question

I am trying to find out list of revision on a branch in which a Merge was performed (This could be from any of the branches in SVN)

I have been doing a lot of search and have found ways to identify Revision which were merged and even revision which should be merged (using svn mergeinfo) but that is not what I am looking for.

I want revision in which a merge was performed on development line for which a URL is passed in as a parameter. I note that this repository makes use of mergeinfo and I only want to use that.

After hours of search I am finally giving up on this. It seems its either not possible or I am looking in the wrong direction :(

Does anyone know how to do this?

Was it helpful?

Solution

Unfortunately it is not possible out-of-the-box: Merge activities are recognizable by modification of svn:mergeinfo property.

The problem is, you can not see if a change was made in content of a file/directory or if change was made in some properties by looking into the svn log. You need to make a diff between these revisions.

A very easy workaround could be that useres performing a merge operation should add a keyword to log message(for example:MERGE). It is quite easy to check via pre-commit hook if the keyword is present in a certain log message

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top