Jump to content


How to change owner through command line

p4 stream command line owner cmd

  • Please log in to reply
2 replies to this topic

#1 Elliott Lock

Elliott Lock

    Advanced Member

  • Members
  • PipPipPip
  • 36 posts

Posted 15 August 2017 - 08:20 PM

Hi,

I'm looking for a method of changing the owner of a stream through command line. Unfortunately calling something like "p4 stream //dev/task_stream" and editing the owner via notepad is going to meet my requirements.

I require a silent method, by passing a new owner through the command line. For example: "p4 stream Owner=User1 //dev/task_stream | p4 stream -i"

Is anyone aware of a method of doing this?

Many Thanks

#2 Sambwise

Sambwise

    Advanced Member

  • Members
  • PipPipPip
  • 965 posts

Posted 15 August 2017 - 09:21 PM

You almost got it, just need to move the flags around a little.  :)

p4 --field Owner=User1 stream -o //dev/task_stream | p4 stream -i

#3 Elliott Lock

Elliott Lock

    Advanced Member

  • Members
  • PipPipPip
  • 36 posts

Posted 16 August 2017 - 09:49 AM

Legend, It works. Thank you very much :)





Also tagged with one or more of these keywords: p4 stream, command line, owner, cmd

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users