I am trying to check out a Perforce repository as of a certain date. The server is version 2010.1. According to the documents, I should be able to do something like this:
p4 sync @2001/06/24
However, when I attempt this I get the following error:
p4 sync @2014/08/28
p4_xsync: "//my/depot/path/@2014/08/28"
//my/depot/path/@2014/08/28 - no such file(s).
When I enter the date directly from the example, I get a different message:
//my/depot/path/@2001/06/24 - no file(s) as of that date.
Am I doing anything wrong? This seems like a very straightforward operation.
p4 sync brings the client workspace into sync with the depot by copying files matching its file pattern arguments from the depot to the client workspace. When no file patterns are specified on the command line, p4 sync copies a particular depot file if it meets all three criteria: Visible through the client view.
To add files with filenames that contain wildcard characters, specify the -f flag. Filenames that contain the special characters '@', '#', '%' or '*' are reformatted to encode the characters using ASCII hexadecimal representation.
The p4 client command puts the client spec into a temporary file and invokes the editor configured by the environment variable P4EDITOR . For new workspaces, the client name defaults to the P4CLIENT environment variable, if set, or to the current host name. Saving the file creates or modifies the client spec.
The p4 fstat command dumps information about each file, with information for each field on a separate line. The output is best used within a Helix C/C++ API application where the items can be accessed as variables, but is also suitable for parsing by scripts.
You're getting the same result as if you tried to run p4 sync //my/depot/path
- you have to specify some actual files to sync (as opposed to just a depot path).
p4 sync //my/depot/path/...@2014/08/28
will get you all files under the depot path as of 2014/08/28.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With