|
I'm trying to implement merge from the API and I have few question to the people in the forum.
The main idea of my application is to merge between two folders (with branch relationship) based on changesets.
These are the main steps of my application:
- Merge operation using - workspace.Merge(params) function.
- Looking for conflicts by querying the workspace workspace.QueryConflicts(params)
- For each conflict I'm trying to resolve it by - workspace.ResolveConflict (params)
- Then, if I can merge the content I'm trying to merge again the content using - workspace.MergeContent(param)
My questions are:
- There is a way to command the merge function (workspace.Merge) to force the source version to be in the target folder,
The function gets MergeOptions parameters and there is MergeOptions.ForceMerge option
But for some reason the force option is not working as I thought it should be, I probably miss something.
2. When I get some conflict from the merge status, there is a way to open the dialog box that I use to resolve conflicts from the IDE.
3. I have some very weird thing on my application, when I'm 'running' on my conflicts in a loop I'm trying to resolve the conflicts that came out (using -workspace.ResolveConflict(conflict[index])), also, I'm using the merge content function - workspace.MergeContent(conflict[index], false);
Both of this functions returning Boolean parameter, how can it be that the workspace.ResolveConflict returns false and the workspace.MergeContent that run on the same conflict returns true.
4. There is a way to merge content of folder accept of isolated files using the API
5. It looks like win form bug, but, when I'm getting from the IDE the dialog box for resolving conflicts even if I'm canceling the merge operation I get pending changes on my files.
**Does any one know where can I find some fine documentation on the merge
operation ??how does it works exactly (all the blocks stuff and so on)
Thanks in advance,
Shmulik. |