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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,463,405
Community Members
 
Community Events
176
Community Groups

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,

0 votes

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

Atlassian Community Events