Thank you :-)
I had implemented SCMSource for MultiBranch, but only the retrieve method for observer (2.0). I can't find any 2.0 methods in the documentation link you sent - is this out-of-date?
Think I found the method in the source...
/**
* SPI: Looks up a specific revision based on some SCM-specific set of permissible syntaxes.
* The default implementation uses {@link #retrieve(SCMSourceCriteria, SCMHeadObserver, TaskListener)}
* and looks for {@link SCMHead#getName} matching the argument (so typically only supporting branch names).
* @param thingName might be a branch name, a tag name, a cryptographic hash, a revision number, etc.
* @param listener the task listener
* @return a valid revision object corresponding to the argument, with a usable corresponding head, or null if malformed or not found
* @throws IOException if an error occurs while performing the operation.
* @throws InterruptedException if any thread has interrupted the current thread.
* @since 1.3
*/
@CheckForNull
protected SCMRevision retrieve(@NonNull final String thingName, @NonNull TaskListener listener)
throws IOException, InterruptedException {
SCMHeadObserver.Named baptist = SCMHeadObserver.named(thingName);
_retrieve(null, baptist, null, listener);
return baptist.result();
}
The Implementation guide has no reference to this older 1.3 method:
Should I override the method or has the API moved on and replaced this with a 2.x implementation?
--------------------------------------------------------------------------------
Perforce Software UK Ltd is registered in England and Wales as company no.
3816019 at the following address: West Forest Gate,
Wellington Road, Wokingham,
RG40 2AT, UK
--------------------------------------------------------------------------------