How to remove lingering svn:mergeinfo properties on reintegrate?

Pete

I wanted to work on a small set of changes independent from my other development on a project. I've been using this as a guide.

I started off by doing a svn cp from /trunk/app/module to /branches/pete/feature-branch, this was r393

After some changes, and merges from back and forth between the trunk and branch to keep things up to date, I was finished with my feature, and went back to working on the trunk.

A couple few revisions later, I decided maybe I should clean up my feature branch so I tried to reintegrate it.

  1. I checked out a fresh copy of the feature branch and trunk.
  2. I merged the trunk changes into the feature branch and committed them
  3. I then did a merge --reintegrate ^/branches/pete/feature-branch on the trunk resulting in r434

Everything looks OK from the code point of view, but now my trunk/app/module still has a svn:mergeinfo property.

$ svn pg svn:mergeinfo
/branches/pete/feature-branch:393-433

From what I understand, svn:mergeinfo should be empty and these revisions should be "elided" or is this OK?

Peter Parker

This information on the subfolder shows you that you (accidentally?) merged on a subfolder (not on trunk, but on /trunk/app/module).

Subversion knows now that it will not merge these revisions from this branch again. Usually you should only merge on the topmost folder, so the mergeinfo is only on this folder.

To merge only a subdirectory is not recommended by SVN-Team (See SVN book topic here)

Avoid subtree merges and subtree mergeinfo. Perform merges only on the root of your branches, not on subdirectories or files (see the section called “Subtree Merges and Subtree Mergeinfo”) .

Still all merges are possible, but you end up with a lot of (different) mergeinfos on different folderlevels, which makes it later harder to figure out what is going on and why SVN behaves this way.

Also it is always possible (not recommended!) to delete the merge-info property, to "reset" the mergetracking feature. Mostly done by also deleting the branch as well. Then the risk of a second merge is usually negligible.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Branch from branch, reintegrate merge and mergeinfo

From Dev

Reverse Merge and svn:mergeinfo

From Dev

How to apply lingering immedeately

From Dev

Understanding SVN error : Reintegrate can only be used if

From Dev

SVN: Branch and reintegrate is not working with updated server

From Dev

Understanding SVN error : Reintegrate can only be used if

From Dev

What's SVN's actual use of mergeinfo?

From Dev

Is it safe to ignore changes in svn:mergeinfo after an SVN merge?

From Dev

Deleting a incorrectly set SVN mergeinfo manually created with GIT-SVN

From Dev

How to find erlang processes lingering on old code?

From Dev

svn:mergeinfo is not being cherry-picked properly between branches

From Dev

How to remove an SVN global-ignore

From Dev

How to remove/change saved SVN passwords?

From Dev

How can I force outstanding samples lingering on an IWMSinkWriter to be written?

From Dev

How to reintegrate with automatic merge (merge-tracking) in TortoiseSVN 1.8

From Dev

SVN 1.8 merge (branch reuse) seems broken when having local mergeinfo

From Dev

After moving SVN server, TortoiseSVN doesn't save mergeinfo after merge

From Dev

How to get PyInstaller to embed SVN Working Copy properties in the generated executable?

From Dev

How to remove properties from an object array?

From Dev

How to remove duplication in properties files in Spring Boot?

From Dev

How to remove deep properties using Immutable

From Dev

How to remove properties from an object array?

From Dev

How to add/remove properties to object in runtime in javascript

From Dev

How to remove the backslash from properties value in java

From Dev

How to remove nested JSON.stringify() properties

From Dev

How do I remove an SVN tag completely that contains spaces?

From Dev

How do I remove passwords from a file in SVN?

From Dev

How to remove folder from showing when running the svn status command?

From Dev

how to remove svn:eol-style propety on a file

Related Related

  1. 1

    Branch from branch, reintegrate merge and mergeinfo

  2. 2

    Reverse Merge and svn:mergeinfo

  3. 3

    How to apply lingering immedeately

  4. 4

    Understanding SVN error : Reintegrate can only be used if

  5. 5

    SVN: Branch and reintegrate is not working with updated server

  6. 6

    Understanding SVN error : Reintegrate can only be used if

  7. 7

    What's SVN's actual use of mergeinfo?

  8. 8

    Is it safe to ignore changes in svn:mergeinfo after an SVN merge?

  9. 9

    Deleting a incorrectly set SVN mergeinfo manually created with GIT-SVN

  10. 10

    How to find erlang processes lingering on old code?

  11. 11

    svn:mergeinfo is not being cherry-picked properly between branches

  12. 12

    How to remove an SVN global-ignore

  13. 13

    How to remove/change saved SVN passwords?

  14. 14

    How can I force outstanding samples lingering on an IWMSinkWriter to be written?

  15. 15

    How to reintegrate with automatic merge (merge-tracking) in TortoiseSVN 1.8

  16. 16

    SVN 1.8 merge (branch reuse) seems broken when having local mergeinfo

  17. 17

    After moving SVN server, TortoiseSVN doesn't save mergeinfo after merge

  18. 18

    How to get PyInstaller to embed SVN Working Copy properties in the generated executable?

  19. 19

    How to remove properties from an object array?

  20. 20

    How to remove duplication in properties files in Spring Boot?

  21. 21

    How to remove deep properties using Immutable

  22. 22

    How to remove properties from an object array?

  23. 23

    How to add/remove properties to object in runtime in javascript

  24. 24

    How to remove the backslash from properties value in java

  25. 25

    How to remove nested JSON.stringify() properties

  26. 26

    How do I remove an SVN tag completely that contains spaces?

  27. 27

    How do I remove passwords from a file in SVN?

  28. 28

    How to remove folder from showing when running the svn status command?

  29. 29

    how to remove svn:eol-style propety on a file

HotTag

Archive