Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Crucible pre-commit query

If I create patch file for one of a branch on my local machine and  them upload to crucible via pre-commit  how crucible make it sure that the patch file goes to the correct branch?

2 answers

1 accepted

0 votes
Answer accepted

As explained in https://confluence.atlassian.com/display/CRUCIBLE/Creating+patch+files+for+pre-commit+reviews:

Crucible will analyse all the paths in the patch, find the branches containing all those paths, then anchor the patch to the trunk or the branch with the most recent commit activity.

Feel free to raise a improvement suggestion in https://jira.atlassian.com/browse/CRUC project to be able to specify the branch, at the moment it is not possible I am afraid.

Kind regards,
Piotr 

Hi Piotr, I am trying to create a pre-commit review from crucible using the attached patch file. But This is not getting anchored to "Demo" repository. This repository points to core-framework and the patch file is also created inside that directory only. Now we create pre-commit hook for code changes that have not yet been committed to the SCM. and like you said "Crucible will analyse all the paths in the patch, find the branches containing all those paths, then anchor the patch to the trunk or the branch with the most recent commit activity." Here I am little confused about committing to SCM or in other way can I commit to local repo and create patch file then attach it to review or I should not create to local repo whatever changes I do in my local repo code create a patch from there and attach it to crucible review. Could you please help on that!!! Thanks in advance!!!

Hi Rahul, You mentioned an attached patch file but I can't see any attached file here. If you believe the patch is anchored to wrong repository than expected, please try picking up correct repository when anchoring the patch, you should be able to specify which repository the patch should be anchored to. What SCM type do you use by the way? You mention committing to local repository so I am guessing this is git or mercurial, is that correct? Regarding your last question, it shouldn't really matter whether you committed changes to your local repository or not. Crucible should manage to anchor the patches correctly as long as the "from" changeset of your patch is already known to Crucible and was indexed correctly. Hope that helps,

I can add the Git repo(drop down option available) but doesn't seem to be a way to select the branch to use

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

ThinkTilt is joining the Atlassian Family!

This morning, Atlassian announced the acquisition of ThinkTilt , the maker of ProForma, a no-code/low code form builder with 700+ customers worldwide. ThinkTilt helps IT empower any team in their or...

352 views 19 20
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