Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>Beware!</strong></p> <pre><code>p4 changes "...#&gt;have" </code></pre> <p>does not list changelists that contain only new/added files.</p> <p>Your best bet is to cache the last sync point, something like</p> <pre><code>HEAD=`p4 counter change` if [ -f lastbuild.txt ] then OLDHEAD=`cat lastbuild.txt` else OLDHEAD=`p4 changes -m1 ...#have` echo lastbuild.txt not found! I will guess that your last sync was @$OLDHEAD fi p4 changes ...@$OLDHEAD,$HEAD &gt; changes.txt # -snip- review changes.txt, perhaps prompt "Continue with sync to $HEAD?" p4 sync ...@$HEAD echo $HEAD &gt; lastbuild.txt </code></pre> <p>With this method you will get false positives if you have submitted or cherry-pick-synced any changelists since the last time you updated the sync point cache, but it's better to list an extra changelist for review than to miss one, especially one containing all new code.</p> <hr> <p><strong>Don't try this at home</strong></p> <p>For posterity, here are a couple other things I've tried in the past that ultimately failed:</p> <pre><code>p4 changes ...#have &gt; have.txt p4 changes ...#head &gt; head.txt diff have.txt head.txt </code></pre> <p>covers the case of changelists containing all adds, but the final output falsely includes older changelists for files that are deleted at #have. Also perf can be pretty bad if you have a lot of history in the depot.</p> <pre><code>p4 sync -n ... | cut -f1 -d' ' | p4 -x- changes -m1 | sort | uniq </code></pre> <p>gets pretty close, but fails to list older changelists if a file has been edited multiple times since you last synced. It's also hitting the depot once for every file that will sync, so perf can be really poor.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload