[p4] P4Api - Submit problem
gruszczy at gmail.com
Mon Aug 25 11:30:30 PDT 2008
I am trying to integrate P4 with my application and use p4api for C++.While everything seems to work just fine, I have a little problem withsubmitting files. What I would like to do is allow user to choose someof the files in the default changelist and submit them. However,submit command cannot be run with multiple files (unless they can bechosen through common naming, like *.txt). I know, that this can bedone by using shell commands and -i option (providing change commandfrom std input), but I would like to keep my app as system independentas possible.
Another option is to create change list with change command and thefind the most recent changelist of the current user and submit thischangelist. But this isn't very elegant (it requires many operationsand in fact isn't as safe, as possible, since user can provide otherchangelist at the same time). Is there any other way? Can I get thenumber of the created changelist somehow? When I run change commandand check OutputStat, there is only "new" value for Change tag, and Icannot reach the proper value (I thought it could be available inFinished method, but there is no way to reach anything). Anyone wouldbe so kind and help me?
-- Filip Gruszczyński
More information about the perforce-user