Bob Arnson
2002-09-02 05:08:00 UTC
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
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