How do I upload an iterative pre-commit patch to Crucible?

How do I upload an iterative pre-commit patch to Crucible? The instructions (https://confluence.atlassian.com/display/CRUCIBLE/Iterative+reviews?continue=https%3A%2F%2Fconfluence.atlassian.com%2Fdisplay%2FCRUCIBLE%2FIterative%2Breviews&application=cac#Iterativereviews-Iterativepatchuploads) do not describe how to select the patch that the new patch is a revision of. I am getting anchoring failures.

2 answers

1 accepted

0 votes
Accepted answer

Thanks, Dave. Your answer lead me to consider if I was following the instructions exactly.

I was using Mercurial. Because it is a distributed RCS, I didn't take pre-commit literally. I was interpreting it as pre-push. As a result, I was generating a diff from a commit that was not yet in the repo that fisheye was monitoring. And because of that, I wasn't being presented with the dialogue to select the original patch.

I compared the diff headers between "hg diff >patch" and "hg diff -r XXXX -r YYYY >patch" and found the problem. Crucible is expecting -r YYYY in the header, but my command puts -r XXXX r YYYY which confused it. When I hand-edited the patch file to remove -r XXXX, leaving only -r YYYY, it worked.

In summary, if it looks like this:

diff -r f4142f6a05cf -r 6a78d9e66478 CmnClient/src/CmnClient/SystemManagerClient.cpp

It should be changed to look like this:

diff -r f4142f6a05cf CmnClient/src/CmnClient/SystemManagerClient.cpp

 

 

Hi Doug,

When you uploaded the first patch, did it correctly anchor to the repository? If it does, when you add the iteration of that patch, it should show up (as per the screenshot in the doc you linked), allowing you to select it as an iteration of that previous patch.

Can you confirm that you've created your patches as per these instructions?

Best regards,

Dave Lahn

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked Thursday in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

5,388 views 21 17
View question

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you