FogBugz Technical Support

A forum for technical support discussion related to Fogbugz.
The current FogBugz Knowledge Base can be found at

Posts by Fog Creek Employees are marked:

Release Notes
Network Status

Perforce integration docs are incomplete

Issue: Where are the docs to set up perfbrowse.cgi? 

I have the perforce integration working so that when I do a check in, it is reflected in FB4.  That is cool!

But I when I click on the link in FB4, it cannot get to p4...

I will go dig around the p4 docs, but there should be some mention of this in the FB docs related to perforce integration.

Woofster Send private email
Thursday, March 31, 2005
The link to those docs is here:

Is that not producing the docs you're looking for?
Dmitri Kalmar Send private email
Thursday, March 31, 2005
Odd, I did not find/see that url while I was working from the on line docs.

Anyway, the link to perfbrowse at the perforce web site is.... not useful. The perfbrowse there is for ancient versions of perforce.

I am contacting perforce to ask how to handle perfbrowse on a more recent version of perforce.
Woofster Send private email
Thursday, March 31, 2005
OK, forget perfbrowse.  Here is why:

a) It is ancient
b) It was written by a perforce user and is supported by no one
c) It looks old and crusty
d) It requires a perl savvy admin to set it up (which I ain't)
e) It requires a perl run time in your web server to use (which I could have, but do not at present)
f) There is a Perforce created and maintained tool, P4Web, that is much fuller featured, and appears to be 'the ticket'

BUT, there are no docs on how to integrate FB with P4Web....

So before I go and try to work this whole thing out.... are there some docs I can follow?

Woofster Send private email
Thursday, March 31, 2005
All you need from p4web is two URLs.

What is the URL for when you want p4Web to show you the entire checked in file?

What is the URL for when you want p4Web to show you the diff between two revisions for a checked in file?

If you post example urls for those two questions for a test file, I can tell you what to put in the Site settings for FogBugz (or you can look and see and if the replace is easy and put it in yourself).
Michael H. Pryor Send private email
Thursday, March 31, 2005
I am working on this....

The issue at this point is that perfbrowse (which I don't have the huevos (sp) to try) has an acceptable DIFF presentation, but p4web has an old fashioned character based DIFF presentation (that will not fly for us).

So I am still researching which route to take.

I see how FB handles the url to the VCS. That is clear (and easy). My issue is how to get acceptable browser access to Perforce.

(Can the FB web gui launch a win32 app?  If so, then I could make this sing 'just right.')
Woofster Send private email
Friday, April 1, 2005
It could but you would have to either send down a special mime type that your win32 app knew how to open and parse..

like a file.openmeinperforce text/specialperfoceapp content type.

Or you could write a custom URI: handler so that something like a link to


opens with that win32 app.
Michael H. Pryor Send private email
Friday, April 1, 2005
I think these are the strings for P4Web:

Michael H. Pryor Send private email
Friday, April 1, 2005
Michael, I think the diff URL is missing a ^ before the number of the second revision.  So I think the Diff URL should be:^FILE&ra=s&c=@^FILE?ac=19&rev1=^R1&rev2=^R2

On another note, even with that I'm not getting Perforce diffs showing up right.  The URL actually resolves to a diff of the same two revisions, which seems a little strange.  I think it might be a problem with the .vbs script trigger you've provided.  This line looks like it sends the info to FogBugz:
            http.Open "GET", "http://" & BUGZ_SERVER & BUGZ_URL & CVSSUBMIT & _
                "?ixBug=" & ixBug & "&sFile=" & sFile & "&sPrev=" & sRev & "&sNew=" & sRev, False

VB really isn't my thing and I don't know much about FogBugz internals, but it looks like this sends the same revision number for sPrev and sNew.  I set the first sRev to (sRev-1) and it seems to be working now on my installation.
Jon B Send private email
Wednesday, April 6, 2005
Hey, you are right! Total bug in the FogBugs perforce script.

Now my database has a week of bad urls in it that won't diff (we have a new install).

(Not the end of the world since we have no browser based diff tool for perforce, but someday we will [Perforce says P4Web 2005.2 might have a better diff.])

Here is the script as I modded it (just changed/new lines):

      Dim sFile, sRev, sPrev
          sPrev = CInt(sRev) - 1
                      "?ixBug=" & ixBug & "&sFile=" & sFile & "&sPrev=" & sPrev & "&sNew=" & sRev, False

So now at least the data is in FB correctly, so if we had a diff tool it would have a chance of working....
Woofster Send private email
Thursday, April 7, 2005

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.