Jump to content

Find where a stream is being imported

  • Please log in to reply
2 replies to this topic

#1 ccostes



  • Members
  • Pip
  • 6 posts

Posted 14 October 2016 - 06:19 PM

I'm using imports and streams for a component-based development workflow. Recently I ran into an issue where I modified the directory structure of common code which required a change to the import path for projects importing it. I updated the project I was working on, but accidentally broke a separate project that was also using the common component.

Is there any way to determine where a particular stream is being imported to determine the potential impact of modifications?

#2 vumi



  • Members
  • Pip
  • 2 posts

Posted 16 June 2017 - 12:27 AM

I would appreciate an answer to this question too. Is there some built-in mechanism to do this or are we needed to write some kind of a script that would do the job for us by looking at stream configuration?

#3 Sambwise


    Advanced Member

  • Members
  • PipPipPip
  • 538 posts

Posted 16 June 2017 - 03:21 AM

There is not yet a command like "p4 streams -e Paths=//depot/import/path", so you'll need to script it -- you'll want to iterate over all the streams and grep the Paths field for the depot path you're importing.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users