Newbie: What is my Base Directory?

1,629 views
Skip to first unread message

david

unread,
Mar 29, 2010, 9:34:16 AM3/29/10
to reviewboard
I have managed to setup review board and want to create my first
review.

I have a repository at /media/repos/site

I have a checkout at /media/development/user

I have created the diff from /media/development/user using 'Create
patch' from TortoiseSVN (windows)

So, what do I put as the 'base directory' when trying to create a new
review request?

Thanks for the help!

Christian Hammond

unread,
Mar 29, 2010, 4:33:55 PM3/29/10
to revie...@googlegroups.com
The base directory is the path of the current directory as would be seen from the SVN server.  So, the path relative to the root of the SVN server of the directory you generate the diff in,

An example would help...

So, say your repository is configured to be http://svn.example.com/ (note that the Path or Mirror Path in a Repository entry should always be to the very top of the SVN repository, not a subdirectory within).

Then say that your current directory is at $HOME/src/myrepo/myproject, which maps to http://svn.example.com/trunk/myproject.

Your base directory would be /trunk/myproject.

Does that make sense?

Really, you should use post-review (part of RBTools), which does all this for you and makes things much, much easier.

Also, there are some current compatibility issues with TortoiseSVN's diff. Their diff is not the same as a standard SVN diff, in some subtle ways.

SVN and TortoiseSVN diffs also don't always contain enough information to handle things like renames properly. If you use post-review, it will work around this.

Christian

--
Christian Hammond - chi...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com



--
Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~----------~----~----~----~------~----~------~--~---
To unsubscribe from this group, send email to reviewboard...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en

To unsubscribe from this group, send email to reviewboard+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

david

unread,
Mar 30, 2010, 6:33:03 AM3/30/10
to reviewboard
I tried using post-reivew and I get the following when I run it in my
development area (I think this is called a trunk):

Failed to execute command: ['svn', 'propget', 'reviewboard:url',
'file://server/development/repos/site']
svn: Unable to open an ra_local session to URL
svn: Local URL 'file://server/development/repos/site' contains
unsupported hostname

Christian Hammond

unread,
Mar 30, 2010, 4:13:55 PM3/30/10
to revie...@googlegroups.com
Sounds like SVN isn't happy with the file:// URL. You probably should be setting up an HTTP server.

Whatever post-review reports for the repository path needs to match exactly what Review Board has for the Repository entry, and it needs to be publicly accessible outside the Review Board server.


Christian

--
Christian Hammond - chi...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com



--
Reply all
Reply to author
Forward
0 new messages