Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Subversive » Custom conflict resolution process: relative paths
Custom conflict resolution process: relative paths [message #653812] Fri, 11 February 2011 11:06
Guillaume P. is currently offline Guillaume P.Friend
Messages: 69
Registered: June 2010
Location: Toulouse, France

I'm trying to create a connector overriding some SvnKitConnector behavior, especially the conflict resolution process.

I've added to my connector a ConflictResolver like this:

public class MyTracedConnector extends SVNKitConnector {
	public MyTracedConnector() {
		setConflictResolver(new ISVNConflictResolutionCallback() {
				public SVNConflictResolution resolve(
						SVNConflictDescriptor descriptor)
						throws SVNConnectorException {
					// if EMF model file, try to resolve the conflict
					if (isMyFileType(descriptor.localPath)) {
						// TODO: try to resolve the conflict
						return new SVNConflictResolution(SVNConflictResolution.POSTPONE, descriptor.localPath);
					// else, do nothing more --> not resolved
					} else {
						return new SVNConflictResolution(SVNConflictResolution.POSTPONE, descriptor.mergedPath);


The problem is that at the TODO point, I have to way to know what file we are speaking about as all path given by the SVNConflictDescriptor are relative to the file having the conflict... So I'm unable to read these files and to try to resolve the conflict myself.

Is there a solution I've not seen ?


Previous Topic:Unable to connect to SVN repository
Next Topic:Problems with Subversive 2011.01.24 using svn+ssh
Goto Forum:

Current Time: Tue Sep 25 03:56:39 GMT 2018

Powered by FUDForum. Page generated in 0.05090 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top