title: How to reparent a stream in a bash script
body: <p>How can I script reparenting a development stream from one mainline to another?<br>I have only used the GUI so far and never scripted with p4 before.</p>
  <p>We manually perform this in the GUI by drag and drop, which is greatly explained here: <a href="https://www.perforce.com/video-tutorials/vcs/reparenting-streams" rel="nofollow noreferrer">https://www.perforce.com/video-tutorials/vcs/reparenting-streams</a></p>
  <p>As I understand it the page does not explain how to do it in command line extensively:</p>
  <blockquote>
  <p>To reparent a stream, you simply drag and drop the stream to a new
  parent in the Stream Graph. Alternatively, you can edit the parent
  stream field in the stream settings through the GUI dialog or directly
  in the stream spec from the command line.</p>
  </blockquote>
  <p>I have tried to search the forums for this and cannot find it.</p>
  <p>Example:</p>
  <pre><code>dev_stream=//depot/development/cur_dev
  src_stream=//depot/main/stable
  dst_stream=//depot/upgrade/latest
  </code></pre>
  <p>Stream hierarchy:</p>
  <pre><code>dev_stream is a development stream
  src_stream is a mainline stream
  dst_stream is a mainline stream
  
  dev_stream is a child of src_stream
  </code></pre>
  <p>I want to reparent dev_stream to dst_stream in a <strong>script</strong>.</p>
  <p>Thanks in advance for any feedback!</p>