FogBugz Technical Support

A forum for technical support discussion related to Fogbugz.
The current FogBugz Knowledge Base can be found at http://help.fogcreek.com/fogbugz.

Posts by Fog Creek Employees are marked:

Documentation
Release Notes
Network Status

FogBugz with SVN

Hii
We are using SVN as our version controller and Fogbugz as our bug tracking tool and Websvn is installed to browse in the intranet, and we have tortoiseSVN client installed on client system.
I am trying to add multiple repositories to my config.inc file whichis inside the websvn folder.
My lines are

$config->addRepository("abc", "file:///H:/repository.svn/work/xyz/abc/", "xyz");

$config->addRepository("test123", "file:///H:/repository.svn/work/test/test123/", "test");

I also added
http://websvn.company.com/filedetails.php?rep=0&path=^FILE&rev=0&sc=1
to Source Control URL for Logs
and
http://websvn.company.com/diff.php?rep=0&path=^FILE&rev=^R2&sc=1
to Source Control URL for diffs

to settings -> site -> Main of my Fogbugz

but when every I commit file to SVN, my Fogbugz is always using only the first one in
$config-> addRepository
even though the file I am commiting belongs to second repository, how should I mention the application to take the respective repostitory.

I refered this blog of your
http://analystdeveloper.com/blogs/gurkaneng/archive/2005/09.aspx

plz let me know the changes that I need to get it working
Tripura Send private email
Monday, October 13, 2008
 
 
Change your SVN urls where they say rep=0 to be

rep=^REP

Then make sure that the post-commit script you are using is passing the repository to FogBugz.
Michael H. Pryor Send private email
Monday, October 13, 2008
 
 
Hi
Thankyou for the info
I updated my URL with rep=^REP
but what changes do I need to do in Post-commit.bat  file
I have this file in hooks folder of each and every repository.
can you plz tell me what changes do I need to do and where I need to do
Tripura Send private email
Monday, October 13, 2008
 
 
Oops, I made a mistake. I meant to write rep=^REPO
not rep=^REP

If you are using the latest FogBugz and those post-commit scripts, check your CVS table in FogBugz to see if the column sRepo is getting filled in with your repo name.
Michael H. Pryor Send private email
Monday, October 13, 2008
 
 
Thanks for the update
The Fogbugz Version is 6.1.27
and I have post-commit.bat and logBugDataSVN.vbs in my hooks folder
and I am not sure where the CVSTable will be

I opend the post-commit.bat but I am not finding anything with sRepo
Tripura Send private email
Monday, October 13, 2008
 
 
The CVS table is in your FogBugz database.
Michael H. Pryor Send private email
Monday, October 13, 2008
 
 
Hi
I checked my database and there is a table by name SVS and it has sRepo as one of its columns
but the column is empty
The new repository which I entered in the config.inc file is 4th one in my repository list but when I updated changes and commit the file itis taking the path of the 1st repository in the list

what should I do now
Tripura Send private email
Monday, October 13, 2008
 
 
sorry for the typo the table name is CVS not SVY
Tripura Send private email
Monday, October 13, 2008
 
 
Hello Michael
Can tell the way inwhich I need to fill the sRepo column of CVS table, in my Fogbugz database
right now I am seeing an empty column.

If it supposed to take the path automatically, do I need to update any other info in any other file ?
Tripura Send private email
Monday, October 13, 2008
 
 
Update to the latest version of FogBugz and grab the new post-commit and logbugdata scripts.  They should fill in this info for you for future checkins (they won't happen for old checkins)
Michael H. Pryor Send private email
Monday, October 13, 2008
 
 
Hii
we did the Upgrate yessterday night
and now its filling the sRepo column
but when I click on the link to see the changes, its still picking the first repository mentioned in the config.inc file
and the msg is
svn: Unable to open an ra_local session to URL
svn: Unable to open repository 'file:///H:/repository.svn/work/first/repository in config filetrunk/code/webroot/index.cfm'

how should I tell it to pick the right one, not the first one
Tripura Send private email
Tuesday, October 14, 2008
 
 
Copy and paste the url you are clicking from FogBugz.

Then copy and paste the url that shows you that file if you navigate to it directly through subversion.

Comparing the two will tell you what's wrong.
Michael H. Pryor Send private email
Tuesday, October 14, 2008
 
 
Michael
I am commiting my file to "xyz" project and this is the 5th entry in my config.inc file
and its written like this
$config->addRepository("xyz_Website", "file:///H:/repository.svn/work/xyz/xyz_Website//", "xyz");

and I am seeing like this in FogBugz
xyz_Website
trunk/code/webroot/index.cfm 292 293

but when I click on the "trunk/code/webroot/index.cfm" its pointing to my first entry in config.inc file which is

$config->addRepository("abc_Website", "file:///H:/repository.svn/work/abc/abc_Website//", "abc");

and showing me the following error
svn: Unable to open an ra_local session to URL
svn: Unable to open repository 'file:///H:/repository.svn/work/abc/abc_Website/trunk/code/webroot/index.cfm'

and in my CVS Table sRepo is filled with "xyz_Website"

what can I compare now
Tripura Send private email
Tuesday, October 14, 2008
 
 
1. Go to the words "trunk/code/webroot/index.cfm" in FogBugz and paste the URL that you see in your web browser when you hover over that link.
2. Go directly to your websvn repository in the browser and find the index.cfm file directly (not using the FogBugz url).
When you display it, what does the url say in your address bar?
Michael H. Pryor Send private email
Tuesday, October 14, 2008
 
 
My source code is on ServerA
My repository is on ServerB
My FogBugz is on ServerC

The URL that I am seeing in fogbugz after clicking the Link is
http://websvn.company.com/filedetails.php?rep=abc_Website&path=trunk%2Fcode%2Fwebroot%2Findex%2Ecfm&rev=0&sc=1

and the msg in the page is ::

Current Directory: [/] [trunk/] [code/] [webroot/] [index.cfm]
Compare with Previous - Blame

svn: File not found: revision 656, path '/trunk/code/webroot/index.cfm'

and at the top Left side of the page its showing me the name of the 1st repository which is mentioned in the config.inc file, as "xyz.xyz_Website"
which is wrong.
It should actually show me "abc.abc_Website" which is the 5th entry in my config.inc file


The path at which my code exists is
D:\websites\abc\abcpath\webroot\index.cfm on ServerA

and the repository path on ServerB is
H:\repository.svn\work\abc\abc_Website
Tripura Send private email
Tuesday, October 14, 2008
 
 
Go to http://websvn.company.com and navigate to the file you just checked in.  What does your url say?
Michael H. Pryor Send private email
Tuesday, October 14, 2008
 
 
When click http://websvn.companyname.com/ its showing me the List of files and folders of websvn Directory on my ServerB
but my code is on ServerA
I am not getting the way to access the file from Websvn url
Tripura Send private email
Tuesday, October 14, 2008
 
 
Find this file on your websvn website:
[/] [trunk/] [code/] [webroot/] [index.cfm]

If you cannot see that file directly through the websvn interface, then websvn may not be configured correctly.
Michael H. Pryor Send private email
Tuesday, October 14, 2008
 
 
But the problem is its pointing to Wrong repository
its pointing to the 1st $config->addRepository mentioned inthe config.inc file instead of taking the 5th $config->addRepository to which my file is actually commited and when I click on Blame from  "Compare with Previous - Blame " hyperlinks, its showing me 'file:///H:/repository.svn/work/abc/' instead of showing 'file:///H:/repository.svn/work/xyz/' which is the main problem
If at all I move
$config->addRepository("xyz_Website", "file:///H:/repository.svn/work/xyz/xyz_Website//", "xyz"); from 5th postion to 1st in the list everything is working well for this repository, but if I move back to 5th position again it starts picking the 1st one in the list which is invalid
how should I comeover this, what changes do I need to do
so that it picks the Right path
Tripura Send private email
Tuesday, October 14, 2008
 
 
That's not a FogBugz configuration problem though.  If just browsing to WebSVN directly doesn't show you the file correctly, then WebSVN isn't set up correctly yet.  We shouldn't attempt to debug the FogBugz integration until WebSVN can successfully show you the file without FogBugz involved.
Michael H. Pryor Send private email
Tuesday, October 14, 2008
 
 
I tried like this
http://svn/xyz/xy_Website/trunk/code/webroot/index.cfm

this is working pretty well
and its opening the file
Tripura Send private email
Tuesday, October 14, 2008
 
 
Ok, so maybe you just need to change your FogBugz url to match that format:

http://svn/xyz/xy_Website/trunk/code/webroot/index.cfm

would be

http://svn/^REPO/^FILE
Michael H. Pryor Send private email
Tuesday, October 14, 2008
 
 
No
Its not working
Not Found
The requested URL /filedetails.php was not found on this server.

--------------------------------------------------------------------------------

Apache/2.0.58 (Win32) mod_auth_sspi/1.0.4 mod_ssl/2.0.58 OpenSSL/0.9.7f DAV/2 SVN/1.4.4 PHP/5.2.1 Server at svn.companyname.com Port 80

But
http://websvn/^REPO/^FILE  in FogBugz url is working pretty well when
$config->addRepository("xyz_Website", "file:///H:/repository.svn/work/xyz/xyz_Website//", "xyz");
is placed at1st position in config.inc file
Tripura Send private email
Tuesday, October 14, 2008
 
 
It sounds like there is a configuration problem with your WebSVN setup.

Regardless of where you have

$config->addRepository("xyz_Website", "file:///H:/repository.svn/work/xyz/xyz_Website//", "xyz");

in your websvn config, you should be able to browse to a file in either url.

When you go that file, it has a url.

You take that url, and remove the pieces that FogBugz needs to insert and replace them with the variables REPO and FILE

For example if your repo is abc and file is test.txt and you can go to

http://svn/abc/test.txt

then in FogBugz you would put

http://svn/^REPO/^FILE

But all FogBugz is doing is a simple replacement.  If your WebSVN isn't configured properly to show you the file then FogBugz can't fix that.
Michael H. Pryor Send private email
Tuesday, October 14, 2008
 
 
hmm
so what should I do now
do I need reinstall webSVN or ?
another clarification is, I have more than one repositories with the same name as 'xyz_Website' and will this cause any problem, can I use like this
Tripura Send private email
Wednesday, October 15, 2008
 
 
Michael
One more question..
As I said i have n number of repositories and I want to give access restrictions to the different user groups,
from my WebSVN , right now every one is ableto access each and every repository using WebSVN but I want to restrict the access so that a  group can see/access their respective code only.
How should I do that and what is the better approch for this..
Else can you redirect me to any document which explains this part
Tripura Send private email
Thursday, October 16, 2008
 
 
You may want to ask on the WebSVN mailing list:
http://websvn.tigris.org/servlets/ProjectMailingListList

Unfortunately I'm not a websvn expert.  I set it up a few years ago to make sure the configuration worked, but haven't looked at it lately.
Michael H. Pryor Send private email
Friday, October 17, 2008
 
 
Thankyou for the update
unfortunately my previous is not solved still :(
Tripura Send private email
Friday, October 17, 2008
 
 
Thankyou for all the support
I am trying some other ways now
Tripura Send private email
Monday, October 20, 2008
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz Bug Tracking and Evidence-Based Scheduling.