Jump to content


p4 command to determine the depot source path of file marked for integrate

trigger

  • Please log in to reply
3 replies to this topic

#1 gsb

gsb

    Advanced Member

  • Members
  • PipPipPip
  • 30 posts

Posted 13 October 2015 - 08:29 PM

I'm working on a p4 change-submit trigger where I need to determine the source depot path for files marked as "integrate"  and reject the submit if the source is coming from a certain branch.

We're running Perforce 2012.2.  I cannot find any p4 commands that would provide me the source depot path of an file marked for integrate.  

Any advice?
-Greg

#2 Robert Cowham

Robert Cowham

    Advanced Member

  • PCP
  • 279 posts
  • LocationLondon, UK

Posted 13 October 2015 - 08:45 PM

iirc this may help:
P4 integrated
On 13 Oct 2015 10:30 pm, "gsb" <perforce-user-forum@forums.perforce.com>
wrote:

Quote

Posted on behalf of forum user 'gsb'.

I'm working on a p4 change-submit trigger where I need to determine the
source depot path for files marked as "integrate"  and
reject the submit if the source is coming from a certain branch.

We're running Perforce 2012.2.  I cannot find any p4 commands that
would provide me the source depot path of an file marked for
integrate.
Any advice?
-Greg



--
Please click here to see the post in its original format:

http://forums.perfor...d-for-integrate

_______________________________________________
perforce-user mailing list  -  perforce-user@perforce.com
http://maillist.perf...o/perforce-user


_______________________________________________
perforce-user mailing list  -  perforce-user@perforce.com
http://maillist.perf...o/perforce-user


Co-Author of "Learning Perforce SCM", PACKT Publishing, 25 September 2013, ISBN 9781849687645

"It's wonderful to see a new book about Perforce, especially one written by Robert Cowham and Neal Firth. No one can teach Perforce better than these seasoned subject matter experts"
  • Laura Wingerd, author of Practical Perforce, former VP of Product Technology at Perforce

#3 P4Sam

P4Sam

    Advanced Member

  • Members
  • PipPipPip
  • 484 posts
  • LocationSan Francisco, CA

Posted 13 October 2015 - 08:50 PM

View Postgsb, on 13 October 2015 - 08:29 PM, said:

I'm working on a p4 change-submit trigger where I need to determine the source depot path for files marked as "integrate"  and reject the submit if the source is coming from a certain branch.

Use "p4 resolved" -- make sure to use the submitting client to run the command, since "resolved" shows you resolve information for the current client, not across all clients.

#4 gsb

gsb

    Advanced Member

  • Members
  • PipPipPip
  • 30 posts

Posted 13 October 2015 - 08:52 PM

Thanks.  I just found that "p4 -c clientname resolved" will tell me if a file marked for integrate is "copy from" or "merge from" for a client workspace.  I'll try that.
-Greg





Also tagged with one or more of these keywords: trigger

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users