Author Topic: Perforce: Project diff file selection  (Read 675 times)

jporkkahtc

  • Senior Community Member
  • Posts: 1425
  • Hero Points: 112
  • Text
Perforce: Project diff file selection
« on: September 18, 2014, 02:44:46 pm »
In my source tree, generated files are not completely separated from the source tree.
Its something like:
Root\
    Src1\
    Src2\
    Includes\
    GeneratedFiles\

There are also some generated files deep under Src1.
The Slick project and workspace files are in Root. (The VTG is no longer :-).

I have a workspace of several projects.
Project1 is a wild-card for "Src1\", "*", with an exclusion setup to exclude all generated files from Src1 ( something like: *.obj;gen\;*.lib )
Project2 is similar


When I try to do a Compare project to Perforce, it starts at the root of the project, and scans all the files found there.
It doesn't exclude the project file exclusions, nor does it only include the project file inclusions.
So the end result is a diff that takes longer than it should and it is cluttered with a lot of stuff I don't want to see.

Is there a better way to do this?
As is, it makes project / workspace diff unusable.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1959
  • Hero Points: 81
Re: Perforce: Project diff file selection
« Reply #1 on: September 19, 2014, 01:37:30 pm »
I'll see what I can do with this.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1959
  • Hero Points: 81
Re: Perforce: Project diff file selection
« Reply #2 on: September 19, 2014, 02:26:35 pm »
What are your projects' working dirs set to?  If they're set to ., and the files are set to something like "path1\*.cpp", we calculate that we need files from . AND path1, so we wind up using . because it's higher up.  If you have . as your working directory, but you're not using anything from there, you'll be better off to set the working directory to where the files are.  Does this help any?  It made a big difference in my sample.

jporkkahtc

  • Senior Community Member
  • Posts: 1425
  • Hero Points: 112
  • Text
Re: Perforce: Project diff file selection
« Reply #3 on: September 19, 2014, 05:56:50 pm »
The workspace is in "Root".
There is a project, PA.
PA working dir = "src\"
PA Files is "src\*.*", recursive, wildcard.
This wildcard has a bunch of exclusions such as "bin\;*.obj".


When I do a COmpareProjectToPerforce, the resulting differences include all those files which I have tried to explicitly exclude.
Each of these files has a "?" icon.


The tree is limited to the files in "src\" at least, but this doesn't help when I do a workspace compare.


Without being able to filter this stuff out, comparing a project or workspace isn't very useful -- too much noise.


Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1959
  • Hero Points: 81
Re: Perforce: Project diff file selection
« Reply #4 on: September 22, 2014, 08:19:29 pm »
I'm going to email you a tweaked macro to try and see if it clears up the noise without clearing up files you actually need.