Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
Answer accepted

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
TAGS
Community showcase
Published in Jira

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across Jira Cloud instance.   📢 Get y...

122 views 6 6
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you