Jump to content


How to find last modified file in a stream

p4api

  • Please log in to reply
5 replies to this topic

#1 Rakhee

Rakhee

    Member

  • Members
  • PipPip
  • 14 posts

Posted 15 March 2015 - 12:44 AM

All,

Is there a neat p4 command to find latest submitted CL in a stream?

Thanks,

#2 P4Matt

P4Matt

    Advanced Member

  • Members
  • PipPipPip
  • 1383 posts

Posted 16 March 2015 - 05:38 AM

p4 changes -m1 <stream name>/...

Of course the problem with that is that it only picks up changes that happened _in_that stream. It misses anything that comes from an import. To catch things from an import you'll need to make a workspace based on that stream and then run:

    
p4 changes -m1 //<workspace_name>/...

There is a feature request asking for the ability to run commands like 'changes' against a stream and see results across imports and in-stream content, without creating a workspace first. I'll add you to it.

#3 mcru

mcru

    Advanced Member

  • Members
  • PipPipPip
  • 67 posts

Posted 27 June 2017 - 08:51 PM

Was this feature ever implemented? If not, can I be added to it as well?

#4 p4rfong

p4rfong

    Advanced Member

  • Staff Moderators
  • 343 posts

Posted 29 June 2017 - 01:53 AM

This was never implemented.  I added your name to the request.

#5 mister_wilson

mister_wilson

    Advanced Member

  • Members
  • PipPipPip
  • 121 posts
  • LocationMontreal, Quebec

Posted 07 November 2017 - 06:23 PM

Can i also be added to this request? Is there any ETA on when this might be implemented?

Thanks,

-JW

#6 Sambwise

Sambwise

    Advanced Member

  • Members
  • PipPipPip
  • 1175 posts

Posted 07 November 2017 - 06:58 PM

I'd recommend creating the workspace, running the command, and then deleting the workspace -- it's relatively low overhead since you don't need to sync the workspace to use its generated view.





Also tagged with one or more of these keywords: p4api

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users