[p4] P4 reordering my given files based on status (using p4 opened, p4 files)

Tyler Thornock tthornock at gmail.com
Fri Jan 11 13:51:55 PST 2008


Sooo, I am using the p4 opened command to see the status of given files and
the list of files I gave is reordered when returned based on their status in
perforce.

ie
p4 opened -a C:/root/project/file5.txt C:/root/project/file1.txt
C:/root/project/file3.txt C:/root/project/file8.txt
//depot/project/file6.txt

would return something like
//depot/project/file1.txt edit change
//depot/project/file8.txt edit change
C:/root/project/file5.txt default change
//depot/project/file6.txt default change
C:/root/project/file3.txt not opened

It is ordering it alphabetically based on the state of the file, not based
on the order I gave.  The "p4 files" command resorts the list as well.  When
just viewing the results maybe that is more helpful, but in a script it
would be annoying to have to rematch up the files after analyzing the
results.

The only thing I dont get is that under the command prompt it actually
returns it in the SAME order, but when using Maya's mel "system" command
(which executes the command from the shell and returns the output as a
string) it is reordered... it doesn't make sense that the results would be
different... especially just reordered.

Any ideas to get the returned order to match?  I am hoping there is just
some quick setting i can change....
Thanks


More information about the perforce-user mailing list