I have a file on a perforce depot and when I am updating it with an automated script I want to find all the workspaces mapping the file (with a p4 command) and send emails to the owners of these workspaces (file is containing the latest view spec of a project and the recipients of the email should get notifications so they can update their view spec too )
is there a way to find all the perforce workspaces which are mapping a certain file in the depot?
388 Views Asked by Hani_l At
1
There are 1 best solutions below
Related Questions in MAPPING
- Change lowercase and uppercase of characters in java
- Texture mapping consuming physical memory
- Looping functoid, Mapping
- is there a way to find all the perforce workspaces which are mapping a certain file in the depot?
- XSLT Mapping for replacing child nodes with new set under parent nodes
- Missing Foreign Keys when mapping Child Entities from JSON / How to generate them?
- How do I set up the relation using Fluent API between an Employee entity and an ICollection<Employee>?
- Mapping int to int (in Java)
- Add brands through company, it's possible? How?
- maven-rpm-plugin set folders permission differently from files when mapping
- Projecting a texture from plane to object with Unity
- how to extract characters of a language
- When I try to map the properties for an entity (Entity Framework), I get the error the type '__' must be a non-nullable value type
- Android + Dozer throws IllegalArgumentException
- (Using Spring)How to stop DTO from repeating when the map appears to be fine?
Related Questions in PERFORCE
- Perforce workspaces and multiple branches
- Perforce won't branch over deleted files
- How can I query Perforce for a list of users who have workspaces that reference a particular file in the depot?
- is there a way to find all the perforce workspaces which are mapping a certain file in the depot?
- Have teamcity checkout on build agent machine
- Perforce - switch to workspace from command line
- git p4 sync - where did the perforce changes go?
- Can I apply changes from a perforce patch(downloaded from review board) to my code
- Data integrity before migration
- Associate specific paths in Atlassian Fisheye with Perforce branch mappings
- Unity & P4Connect
- Perforce how to Read the branch mapping from standard input without invoking an editor
- Facing issue with jenkins: label name not recognized by sync command
- Gradle 'maven-publish' plugin fails with "unmappable character for encoding" error
- Perforce to git migration
Related Questions in WORKSPACE
- is there a way to find all the perforce workspaces which are mapping a certain file in the depot?
- What is the philosophy behind the workspaces in R?
- Perforce - switch to workspace from command line
- Saving variables within a function? (MATLAB)
- PDF Form cannot be saved in LiveCycle HTML Workspace ES4 when file exceeds certain file size
- Do not attempt to save variables after Octave crashes
- Where to cache a file for a Eclipse RCP-plugin
- WorkSpace Vs Project Vs Target in Xcode
- Eclipse Re-Open once closed project
- ROS package not found after catkin_make
- Create Android project from source in Eclipse: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'
- Function which relies on workspace and memory
- Turn ALL current workspace variables into global variables
- About Android launcher's WorkSpace
- Decode Apk, open Eclipse Auto-Save Data?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Providing that none of the workspaces you want to look at are using the 'Host' field, you can run:
p4 -c have
to get a list of all files that are synced on the client.
Note this would first involve you getting a list of all workspaces on the server, by running:
p4 clients
Also this may be quite resource intensive, if your server has a lot of clients that sync a lot of files, so I would recommend using something like the Perforce Review Daemon or Perforce Swarm for code review and notification.
More details about these are available here:
http://www.perforce.com/perforce/doc.current/manuals/p4sag/chapter.scripting.html
http://www.perforce.com/collaboration
Hope this helps, Jen.