I suggest you ...

Allow user to choose diff view when adding a Perforce integration changelist

When you use p4addchangelist to add differences from an integration to a review, Code Collaborator shows the differences between the merged file and the source or from branch.

We would prefer to see the diffs between the target or source branch and the merge, so we can see what has actually changed on the files we want to submit.

We can upload the view we want using

"addp4diffs //depot/...@change - 1 //depot/...@change"

but this doesn't work for pending changelists, and so is not compatible with the ensure-reviewed trigger.

I don't really want to use Perforce shelving for this. Would much prefer to have a switch on addchangelist to choose which diff view to upload, or even better (for us), a global or group-level "integration-view" admin property.

50 votes
Vote 0 votes Vote Vote
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service

    You'll receive a confirmation email with a link to create a password (optional).

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    anonymousanonymous shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    3 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service

      You'll receive a confirmation email with a link to create a password (optional).

      Signed in as (Sign out)
      Submitting...
      • pwmedcraftpwmedcraft commented  ·   ·  Flag as inappropriate

        Just to correct and clarify my original post, this line:

        "We would prefer to see the diffs between the target or source branch and the merge"

        should read

        "We would prefer to see the diffs between the target or TO branch and the merge"

      • YogiYogi commented  ·   ·  Flag as inappropriate

        In fact, this should be the *default *behavior for addchangelist. If you want to add a flag then it should be to compare against the source branch. But the diff of the currently submitted target files vs. the resulting versions after integration is much more useful and thus should be the default behavior. The current behavior kind of useless.

      Knowledge Base and Helpdesk