Captive. Getting file status in a sandbox

How can I determine the status of files in my client, I want to know if the file needs updating, fixing or changing. In CVS, I just ran "cvs -n -q update.> File". Later, find the attributes M, U, P, C to get the current status of the file.

In perforce, "p4 sync -n" does not produce output, for example, "cvs -n -q update". How can I see the current status of files in case of Perforce?

+3
source share
4 answers

As far as I know, there is no team that will give you exactly what you want. If you look at what the update team does, there is no one alternative to Perforce. I think that the closest you will come is to use the "p4 fstat" command and analyze the output from there to get the information you need.

You may find this page helpful.

I also found this link in p4wrapper, which claims to include CVS commands (including updating) in the script. There may be others like this.

, Perforce, " ...". , , script perforce, . , . , . Perforce .

+4

, , , p4 diff . :

    -sa     Opened files that are different from the revision
            in the depot, or missing.  
    -sb     Opened for integrate files that have been resolved
            but have been modified after being resolved.  
    -sd     Unopened files that are missing on the client.  
    -se     Unopened files that are different from the revision
            in the depot.  
    -sl     Every unopened file, along with the status of
            'same, 'diff', or 'missing' as compared to its
            revision in the depot.  
    -sr     Opened files that are the same as the revision in the
            depot.
+3

: Perforce

2012.1 : "p4 status" "p4 reconcile". . :

http://www.perforce.com/blog/120126/new-20121-p4reconcile-p4status

+2

, . , "" ( perforce language), :

p4 resolve -n

See the p4 command line guide website: http://www.perforce.com/perforce/doc.current/manuals/cmdref/resolve.html#1040665

In addition, P4V has a good opportunity to highlight unsupported and dirty files if you use this client. Right-click on the fodler in the workspace view and select "reconcile offline work". After a little processing, you will get a list of files that are not synchronized with the depot.

Hope this helps.

+1
source

Source: https://habr.com/ru/post/1697049/


All Articles