Wrong User Reported When Indexing SVN Mirror Repository

Still need help?

The Atlassian Community is here for you.

Ask the community

Problem

After indexing a SVN repository, Fisheye attributes the wrong user as the committer of some revisions. 

Cause

This can be caused by the use of svnsync to mirror a copy of the SVN repository locally for Fisheye to index. svnsync is not an atomic protocol. It generally performs the commit as the svn sync user and then updates the revprops to match the original commit. If Fisheye sees the repository between these two operations it will see the author as the svn sync author.

Workaround

The repository can be re-indexed which should pick up the correct author information as the revprops have been updated.

Resolution

There are two alternative configuration options to resolve this problem.

Option 1

Tie the Fisheye poll into the svnsync operation so that polling happens after the svn sync brings the repository into alignment. This is achieved by Configuring commit hooks for Fisheye/Crucible.

Option 2

In the post-revprop-change hook SVN trigger, configure the rescan-metadata Fisheye/Crucible REST API endpoint to be triggered with from/to range to rescan the changelist metadata (author, date, commit message).


Last modified on Jul 31, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.