[p4] cvs status

Weintraub, David david.weintraub at bofasecurities.com
Thu Aug 17 14:35:40 PDT 2006


$p4 revert -n //...

This will show you the files that the "p4 revert" command would revert
if you didn't use the "-n".

$p4 opened

This will show you the files that are opened on your workspace

$ p4 -ztag change -o | awk '$2 ~ /Files/ {print $3}'

This will show you the changelist, and all of the files that will be in
the default changelist (assuming that the file names have no spaces in
them)

$ p4 diff -se

This will show you files that you didn't mark for edit, but you modified
on your system by removing the read-only attribute (on Windows) or
adding the write attribute (on Unix), and then editing. (or you had the
"allwrite" attribute in your client turned on).

You should also look at "p4 diff -sa" and "p4 diff -sd" if you believe
that files on your client were changed without using Perforce commands.
These form of the "p4 diff" command are useful if you were forced to
work "off line" from the Perforce server, and now you need to sync the
changes on your client with the depot your server again. Normally, you
should never change a file, add a file, or delete a file without using
the correct Perforce command first.


-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Mike
Sent: Thursday, August 17, 2006 4:15 PM
To: perforce-user at perforce.com
Subject: [p4] cvs status

In cvs I use the 'cvs status' command to see a list of files that have
been modified locally and need checking in. I p4 I can use the 'p4 edit
FILE' to mark a file for edit and then the 'p4 -c CLIENT files' command
to see those files that need checking in. If the files have not been
previously marked with
'p4 edit' what command do I use to see a list of locally modified files?

Mike
_______________________________________________
perforce-user mailing list  -  perforce-user at perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user


More information about the perforce-user mailing list