How to find change's moved from where?
Hello,
I have a Change with kind MOVE. I can get versioned item's current path but couldn't find anyway to get previous path. How to find change's moved from where? I use the code below to get current path of folderHandle and fileItemHandle. I tried to get previous path with IConfiguration.determineAncestorsInHistory and IConfiguration.locateAncestors methods with IChange.afterState and IChange.beforeState. They always return current path. private static String findChangePath(IVersionableHandle vhandle, IConfiguration iconfig) throws TeamRepositoryException |
One answer
Geoffrey Clemm (30.1k●3●30●35)
| answered Oct 18 '10, 2:14 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
In general, a file change doesn't have a pathname. It just has a
parent directory and its name within that parent directory. That change can be accepted into many different workspaces, and the pathname of that file can be different in all of them (but it will always have the same last segment). So you can ask for a pathname of a file change in a given configuration (which you have done below), but there is no such thing as a "pathname of a file change" outside of a configuration context, either before or after the move. Cheers, Geoff On 10/18/2010 11:23 AM, underprotect wrote: Hello, |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.