I'm developing a CommitExecutor plugin so that instead of submitting directly to perforce my developers can submit to a remote machine that scrubs the changelist (checks for build breakages, etc) and then submits it perforce on their behalf. We force people to do this but currently they have to use an ant target. it would be nice if it were integrated into intellij so that they could get the the advantages of code analysis, etc.
I have an instance of LocalChangeList but I can't figure out how to go from there to the changelist number (which is required by my remote process).
How do I determine the perfoce changelist number of a changelist? I know it is available because I can see it displayed in the changes UI.