8 messages in com.perforce.perforce-user[p4] Determining client directory fro...| From | Sent On | Attachments |
|---|---|---|
| Bob Arnson | 01 Sep 2002 22:07 | |
| Patrick Bennett | 01 Sep 2002 22:38 | |
| Jo Woodison | 01 Sep 2002 23:18 | |
| Bob Arnson | 02 Sep 2002 08:03 | |
| Stephen Vance | 04 Sep 2002 03:49 | |
| Bennett, Patrick | 04 Sep 2002 07:18 | |
| Bob Arnson | 04 Sep 2002 09:14 | |
| ste...@vance.com | 04 Sep 2002 11:54 |
| Subject: | [p4] Determining client directory from depot directory?![]() |
|---|---|
| From: | Jo Woodison (jo...@mandarinconsulting.com) |
| Date: | 09/01/2002 11:18:36 PM |
| List: | com.perforce.perforce-user |
Don't forget p4 diff -sa too. That gives you the names of all opened files that are different from their corresponding revision in the depot (or missing).
Of course, that doesn't tell you whether they're at the head revision or not, but a p4 sync -n will let you know that.
p4 where gives you the path of a file in depot, client, and local (file path) syntax.
Regards,
Jo
On 2/9/02 15:08, "Bob Arnson" <perforce at bobs.org> wrote:
I'm writing a tool to let users diff their client tree against the head revisions in the depot. The approach I'm using is to throw up a dialog box with a tree representing the depot, clone the user's current clientspec, sync it, and run a diff tool capable of diffing trees.
It works, but I'd like to optimize it. Currently, I run the diff tool against the root of both clients. That's a lot of unnecessary diffing. Eventually, I'd like to rewrite it to diff just opened files. In the meantime, I'm looking to restrict the diffing to just the trees of interest. So far, the only way I've found -- short of interpreting the clientspec view mapping -- is to do a "files //depot/path/*" and then an "fstat -C //depot/path/firstFile". (I know that if the user's clientspec maps subordinate files outside that tree, it won't diff them, but I'm willing to live with that limitation.)
Can anyone think of any quicker way to map from a depot directory to a client directory?
-- sig://boB http://IntellectualFrottage.com
_______________________________________________ perforce-user mailing list - perforce-user at perforce.com http://maillist.perforce.com/mailman/listinfo/perforce-user
-- Jo Woodison jo at mandarinconsulting.com +61 (0)438 243 027
~ mandarin consulting . melbourne . victoria . australia ~




