Search code examples
svn

Is it possible to get svn client debug output?


I'm looking to enable extremely verbose logging output in the svn client specifically for the task of resolving botched merges.

The problem I'm facing currently is merging from trunk into my feature branch brings in no new changes, but a diff of the two HEADs reveals outstanding unmerged work.

Generally I'd think this means that the mergeinfo has been messed up, or there is some mergeinfo deeper in the project directory structure that is causing issues. However in this case I've cleaned all the mergeinfo properties and manually ensured the root of the feature branch's mergeinfo does not contain the revisions that are on the head of trunk which I'm attempting to merge in.

For this task and others I'm looking to be able to enable an SVN debug log which literally shows me stuff like:

  • Attempting to merge in revision XXX from https:.... to working copy
    • Skipped, already merged in
  • Attempting...

I was looking at recompiling the svn client with some sort of compile time flags to indicate logging verbosity but was not getting anywhere. Does anyone have any pointers on how to get more information from SVN Client? (command line, linux).


Solution

  • AFAIK, no. --verbose exists but only for svn status and svn pl (possibly more, but not merge or update). I can definitely see the need for this, especially if you are messing around with mergeinfo.

    It sounds like you know what your doing already but try to run svn pl -v to see the mergeinfo on the root node.

    Also, I've noticed that svn 1.6.6 and earlier have problems with mergeinfo, specifically that it destroys it in certain cases. Upgrade to the latest (on ubuntu 10.04 I've checked out the source using svn, built it and then uninstalled the apt-get version).

    Good luck.