Thanks David!  That solved two issues I was having.  Documenting them below 
to hopefully help someone else out in the future.

Doing 'rbt post' for some file modifications resulted in "The patch to 
<filename> didn't apply cleanly".  After fixing the "Raw File URL Mask" 
this problem has gone away.

My 2nd issue was a mod I made to a file showed up in the web gui Diff in a 
different file.  My original "Raw File URL Mask" was using a real file in 
my repo instead of '<filename>' and '<revision>'.  The file I was using was 
README in the base directory.  I made a change to source/README, committed 
it and then did 'rbt post'.  When I looked at the web gui for the new 
review and went to the Diff, my change for source/README was shown but it 
was in the base directory README file instead of the file it was actually 
made in.  Presumably that's because I used the base README file in my "Raw 
File URL Mask" and it had the same name but that's just a guess.  After 
fixing my  "Raw File URL Mask" this problem has gone away.

Thanks for the help!

On Friday, August 9, 2024 at 12:36:43 PM UTC-4 David Trowbridge wrote:

> The raw file mask is essentially a format string, which the server uses to 
> create the URL to fetch blob content. It should explicitly have 
> "<filename>" and "<revision>" in it, not a specific file or revision.
>
> So for your case, it should be "http://myserverurl/cgit/myrepo/blob/
> <filename>?id=<revision>"
>
> David
>
> On Fri, Aug 9, 2024 at 6:06 AM Bagels1b <bro...@gmail.com> wrote:
>
>> Can the Raw File URL Mask reference any file in the repository or should 
>> it be something specific?
>>
>> On Monday, August 5, 2024 at 1:12:50 PM UTC-4 Bagels1b wrote:
>>
>>> I'm trying to get my first ReviewBoard server (7.0.1) up and running but 
>>> I've run into a number of issues.  My RB is on Ubuntu 22.04 and I have a 
>>> remote server (Ubuntu 24.04) with a git mirror of my repo and cgit 
>>> installed.  
>>> My current issue is I can't Add a Repository.  My current error when I 
>>> "Save" is "A repository was not found. Please check the configuration 
>>> to make sure the details are correct and that it allows access using any 
>>> credentials you may have provided."
>>> I can browse to cgit and look at repo's and commits so that seems to be 
>>> working properly.  I can git clone the information in the "Path" field from 
>>> a regular user.  It's of the form 
>>> g...@git-server-01.myserver.com/repo/myrepo.git 
>>> <http://g...@git-server-01.myserver.com/repo/myrepo.git>  I'm not sure 
>>> how to simulate that to mimic what the web interface might be doing.  I 
>>> added the public key from the "Add a Repository" to my git server 
>>> authorized_keys file.
>>> I'm not confident in my Raw File URL Mask.  Can someone explain to me 
>>> how that should look?  I've been to the documentation and I'm basing mine 
>>> on the example
>>>  "http://git.gnome.org/browse/gtk+/blob/<filename>?id=<revision>"
>>> my cgit url is cgit/myrepo so I am replacing browse/gtk+ with that.  As 
>>> far as filename and revision I'm using the README file in the repo and I do 
>>> "git ls-tree HEAD README" to get the revision.  So I end up with this: 
>>> http://myserverurl/cgit/myrepo/blob/README?id=<sha1 from ls-tree 
>>> command>.  Does that seem correct?
>>> Anything else that might cause my issues?
>>> Thanks!
>>>
>>>
>>> -- 
>> Supercharge your Review Board with Power Pack: 
>> https://www.reviewboard.org/powerpack/
>> Want us to host Review Board for you? Check out RBCommons: 
>> https://rbcommons.com/
>> Happy user? Let us know! https://www.reviewboard.org/users/
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Review Board Community" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to reviewboard...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/reviewboard/ba64cec5-a2bd-48c3-bf4a-4293f17be072n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/reviewboard/ba64cec5-a2bd-48c3-bf4a-4293f17be072n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/3d237a87-4a7b-4c48-aec8-521d7f489820n%40googlegroups.com.

Reply via email to