Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

does takeSnapshot() respect the repository view? #3708

rmondragon ·
We're currently using takeSnapshot() on a perforce repository definition with a view of:

//repository/a/...
- /subDir1/...
- /subDir2/...

However, what we seem to be getting is not the changelist value we expect. We'd expect to get a value of the most recent changelist that doesn't include those sub directories removed from the view, however, that doesn't seem to be the case and we just get the head revision of //repository/a/..., regardless of if that changelist only has changes in a sub directory that is not in the client view.

Is this expected behavior? Is there any workaround for this if it is?
  • replies 1
  • views 488
  • stars 0
robinshen ADMIN ·
QuickBuild will set up a client using specified view, and then run below command to get latest change list:
p4 -c <client name> changes -s submitted -m 1 <not excluded depot path>


For your case, it will run:
p4 -c <client name> changes -s submitted -m 1 //repository/a/...


To exclude change list from subdir1 and subdir2, QB will need to get all changes and filter those only affecting subdir1 and subdir2 which might not be efficient.