简体   繁体   中英

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

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM