It's all about the answers!

Ask a question

Determining the path for changed files.

Vikas Kokare (1644) | asked Feb 15 '12, 5:21 a.m.
We are trying to fetch the folder paths for the changed files using

IBaselineConnection.configuration().determineAncestorsInHistory(itemslist, null) or locateAncestors(itemslist, null).

So for eg: the changed items are

1. a/b/c/d/1.txt
2. a/b/c/d/e/f/g/2.txt
3. a/h/i/j/3.txt

then the NameItemPair(s) in the AncestorReportImpl is returned NULL for item #2 . I am thinking it is because the path for item#2 is already traversed (till "a/b/c/d") for item # 1.

So i tried with list of file items with no sharing of paths as is the case above, and the ancestor report contained a non-null NameItemPair.

One answer

permanent link
Vikas Kokare (1644) | answered Feb 15 '12, 6:55 a.m.
I am also seeing the NULL NameItemPair problem (for both items) with:

1. a/b/c/d/1.txt
2. a/b/c/e/2.txt

Your answer

Register or to post 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.