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

Crucible tried to anchor your patch, but did not find any matching paths --- mercurial

Mohammed Mohammed April 22, 2015

I am using mercurial to create a patch and upload it to crucible, however it cannot anchor no matter what I try. I've tried creating the patch exactly how the atlassian website says by using

hg diff > patch

However, when I upload the result, it does not anchor, even if I pick the repository manually from the drop down.

I have the repo cloned with the new files added, but not committed. The diff looks correct, but there must be something wrong to throw off the anchoring. I just want to be able to see iterative changes to the patches.

 

Any help is appreciated. Thanks

2 answers

0 votes
gustavo_refosco
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 23, 2015

Hi Mohammed,

In this case the only workaround I can think of is to review each file separately, uploading the first revision of this file (when it's created) to the review and, upon any changes, upload it again, with the same filename, so the diff will be done. This could be done, for each file, as follows (this is just an example of workflow):

  1. Create a new file (e.g. test.txt).
  2. Create a review, adding this test.txt as an attachment.
  3. After the file is reviewed, apply the necessary modifications to the file in the repository, then upload it as an attachment with the same filename.
  4. Refresh the page. You'll see this addition revision will be shown in the review, to be diff against the previous one.

I'm aware this may not be the most ideal solution. In case you have any thoughts on your mind and would like to share a suggestion please feel free to raise a feature request at https://jira.atlassian.com.

Regards,

Gustavo Refosco

0 votes
gustavo_refosco
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 22, 2015

Hi Mohammed,

As you mentioned you are creating a patch for new files, not yet commited (i.e. not still indexed), it's expected Crucible won't be able to anchor this patch to the repository. In this case, the patches would be uploaded separately, as stated by the document with "If Crucible is unable to anchor the patch to a repository, you will only be able to upload the patches as separate files".

It's still possible, though, to perform iterative patch reviews even not being able to attach these patches to the repository. You can do this adding the patches as attachments, as follows:

  1. Create a review and, when adding content, select Attachments.
  2. In the next screen, click in Upload another file as the base of a diff, then for *Base of Diff File select the file correspondent to the first revision.
  3. For File select the file correspondent to the next revision, which will be compared to the previous one.
  4. Click in Upload. This will upload the two files, diffing them.

Regards,

Gustavo Refosco

Mohammed Mohammed April 23, 2015

This results in a diff file being uploaded as an attachment without creating the directory tree with each separate file. Any ideas?

Mohammed Mohammed April 23, 2015

My patch consists of multiple files.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events