RE: Manual server updates required: Install GNU Patch problem after installation on Windows/Apache

2010-09-17 Thread Tim Pinet
I had a hell of a time to get patch.exe to work too. I had to put it in
C:\GnuWin32\bin and C:\Windows\system32 and set my PATH environment variable
to:

C:\GnuWin32\bin;C:\PHP\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\Syst
em32\Wbem;C:\MySQL\MySQL Server 5.1\bin;C:\Python26;C:\Python26\Scripts

I wrote my entire install experience in my blog
(http://blogs.pinet.ca/tim/2010/08/24/code-review-goodness-with-reviewboard/
).

Tim

-Original Message-
From: reviewboard@googlegroups.com [mailto:reviewbo...@googlegroups.com] On
Behalf Of Ian
Sent: September-17-10 12:36 PM
To: reviewboard
Subject: Manual server updates required: Install GNU Patch problem after
installation on Windows/Apache

Hi guys,

I see a number of people have had this issue but none of their
resolutions have helped me so I post again.

I have installed everything on Windows following the instructions and
all I see when I browse the site is "Manual server updates required"
and underneath that "Install GNU patch.exe".

* Patch is installed and I can run it from the command line.

* It is on my system path.

* I have tried changing Apache to run as myself so it has full
priveleges and this did not work

* I have tried copying patch to Apache's bin folder, this did not
work.

* There are no logs in my RB installation dir. Apache has some logs
about Python version "Python version mismatch, expected '2.5', found
'2.5.4'. but I'm not sure this is a serious issue.

Can someone help me?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/reviewboard?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en


Re: post-review and perforce

2010-09-17 Thread Tony
Ahhh, crap, I'm an idiot.  Forgot to put p4 on the path of my apache
user.  Everything seems to be chill now.  One final question:  What is
the recommended way for distributing my local copy of the post-review
tool to the others on my team?  I checked out the code from git
(release-0.2) as well.  Is there any need to fork and upload back?
Seems like you already added the regex change to master.  Thanks again
for all the help guys!

tony

On Sep 17, 12:19 pm, Tony  wrote:
> Hmmm, so changing the regex allows post-review to detect perforce and
> begin uploading.  However, I ran into a second problem with the way
> post-review is creating the repository url.  I ended up just removing
> the whole try block from get_repository_info in the PerforceClient
> since it was picking up the correct URL for me without doing any of
> that.  Might that create other problems down the line?
>
> After this, I'm able to upload, however, reviewboard reports that the
> "diff is empty".  I run with --output-diffs and it definitely isn't
> empty.  I've copied the last portion of the debug output below. The
> server log reports that it begins parsing the diff and its size is 838
> as shown in the post-review debug log below.  Any thoughts on why this
> might be?  Thanks again for all the help!
>
> >>> Uploading diff, size: 838
> >>> HTTP POSTing 
> >>> tohttp://buildsrv1.domain.com/reviews/api/json/reviewrequests/9/diff/new/:{}
> >>> Got API Error 105 (HTTP code 200): One or more fields had errors
> >>> Error data: {u'fields': {u'path': [u'[Errno 2] No such file or 
> >>> directory']}, u'stat': u'fail', u'err': {u'msg': u'One or more fields had 
> >>> errors', u'code': 105}}
>
> tony
>
> On Sep 17, 12:49 am, Jan Koprowski  wrote:
>
> > Better option is use tool which allow You edit files inside zip. Under
> > Linux Midnight Command should do it.
>
> > On Fri, Sep 17, 2010 at 9:20 AM, Tony  wrote:
> > > I'm definitely a Python noob, but don't mind digging around in the
> > > code.  I'm not familiar with python distributions and eggs, I assume I
> > > can just unzip the RBTools egg and then rezip it?  I'll give it a shot
> > > when I have a free moment tomorrow and get back to you.  Thanks again!
>
> > > tony
>
> > > On Sep 16, 10:43 pm, Christian Hammond  wrote:
> > >> Interesting. That's definitely the problem. post-review expects the 
> > >> version
> > >> information to be entirely numeric.
>
> > >> I don't know what your Python comfort level is, but if you edited
> > >> rbtools/rbtools/postreview.py and found the line that includes "Server
> > >> version: ", and modified it to look like:
>
> > >>     m = re.search(r'^Server version: [^
> > >> ]*/([0-9]+)\.([0-9]+)(\.PATCH)?/[0-9]+ .*$',
>
> > >> It may be work.
>
> > >> That's just off the top of my head. But give it a try and if it works, we
> > >> can include it.
>
> > >> Christian
>
> > >> --
> > >> Christian Hammond - chip...@chipx86.com
> > >> Review Board -http://www.reviewboard.org
> > >> VMware, Inc. -http://www.vmware.com
>
> > >> On Thu, Sep 16, 2010 at 7:41 PM, Tony  wrote:
> > >> > Christian,
>
> > >> > Thanks for the quick response.  I figured as much for the root thing.
> > >> > Realized after I sent the email that p4 wasn't on my path as root, so
> > >> > that explains it anyway...
>
> > >> > In terms of the p4 info the server version line is present:
>
> > >> > Server version: P4D/LINUX26AMD64/2005.2.PATCH/100601 (2006/05/26)
>
> > >> > The whole thing looks like this (with the personal details removed):
>
> > >> > User name: tony
> > >> > Client name: tony_mac
> > >> > Client host: mybox.local
> > >> > Client root: /folder/source
> > >> > Current directory: /folder/source
> > >> > Client address: 10.100.101.21:53141
> > >> > Server address: perforcesrv1.mydomain.com:1666
> > >> > Server root: /perforce_depot/
> > >> > Server date: 2010/09/16 19:35:27 -0700 PDT
> > >> > Server version: P4D/LINUX26AMD64/2005.2.PATCH/100601 (2006/05/26)
> > >> > Server license: MyCompany Inc 17 users (support expired 2007/05/16)
>
> > >> > Thanks again!
>
> > >> > tony
>
> > >> > On Sep 16, 6:40 pm, Christian Hammond  wrote:
> > >> > > Hi Tony,
>
> > >> > > We discourage running as root, so that wouldn't be it.
>
> > >> > > It's likely that it's failing to parse the server version info. Can 
> > >> > > you
> > >> > type
> > >> > > `p4 info` and show me the "Server version:" line, if it exists? If it
> > >> > > doesn't, that's useful to know too, and I'd like to know if there's 
> > >> > > an
> > >> > > equivalent line on there.
>
> > >> > > Christian
>
> > >> > > --
> > >> > > Christian Hammond - chip...@chipx86.com
> > >> > > Review Board -http://www.reviewboard.org
> > >> > > VMware, Inc. -http://www.vmware.com
>
> > >> > > On Thu, Sep 16, 2010 at 6:20 PM, Tony  
> > >> > > wrote:
> > >> > > > Hey everyone,
>
> > >> > > > I'm trying to get ReviewBoard set up.  Installing the server was no
> > >> > > > problem, however I've been having issues with post-review and
> > >> > > > per

Re: Can't log in

2010-09-17 Thread j4ys0n
That did it!

Thanks!

I should have thought to do that before posting..

On Sep 17, 3:41 pm, Christian Hammond  wrote:
> Try clearing your cookies and seeing if that helps. It could be that it's
> attempting to send a cookie to the server from the previous auth session,
> but due to the reinstall, the encryption salt being used is different, so
> the token no longer means anything. I would expect it to clear the cookie,
> but there may be something weird bug.
>
> Christian
>
> --
> Christian Hammond - chip...@chipx86.com
> Review Board -http://www.reviewboard.org
> VMware, Inc. -http://www.vmware.com
>
>
>
> On Fri, Sep 17, 2010 at 12:32 PM, j4ys0n  wrote:
> > Yeah.. something must have happened to my browser. It was working fine
> > earlier.. that's strange. I can log in from Firefox, but not Chrome.
>
> > On Sep 17, 3:22 pm, Christian Hammond  wrote:
> > > What version of Review Board are you running? What authentication method?
>
> > > Do you have any extensions in your browser that block cookies or scripts?
>
> > > Christian
>
> > > --
> > > Christian Hammond - chip...@chipx86.com
> > > Review Board -http://www.reviewboard.org
> > > VMware, Inc. -http://www.vmware.com
>
> > > On Fri, Sep 17, 2010 at 12:20 PM, j4ys0n  wrote:
> > > > So I had to reinstall my site so that it goes to a subdirectory of my
> > > > domain. The site installed, I set permissions and I can get to the
> > > > login page, but I can't log in. There's no error message, it just
> > > > doesn't work. Any idea what would be causing this? It keeps telling me
> > > > cookies must be enabled, but they are enabled.
>
> > > > Thanks
>
> > > > --
> > > > Want to help the Review Board project? Donate today at
> > > >http://www.reviewboard.org/donate/
> > > > Happy user? Let us know athttp://www.reviewboard.org/users/
> > > > -~--~~~~--~~--~--~---
> > > > To unsubscribe from this group, send email to
> > > > reviewboard+unsubscr...@googlegroups.com > > >  oups.com>
> > 
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/reviewboard?hl=en
>
> > --
> > Want to help the Review Board project? Donate today at
> >http://www.reviewboard.org/donate/
> > Happy user? Let us know athttp://www.reviewboard.org/users/
> > -~--~~~~--~~--~--~---
> > To unsubscribe from this group, send email to
> > reviewboard+unsubscr...@googlegroups.com > oups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/reviewboard?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en


Re: Can't log in

2010-09-17 Thread Christian Hammond
Try clearing your cookies and seeing if that helps. It could be that it's
attempting to send a cookie to the server from the previous auth session,
but due to the reinstall, the encryption salt being used is different, so
the token no longer means anything. I would expect it to clear the cookie,
but there may be something weird bug.

Christian

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


On Fri, Sep 17, 2010 at 12:32 PM, j4ys0n  wrote:

> Yeah.. something must have happened to my browser. It was working fine
> earlier.. that's strange. I can log in from Firefox, but not Chrome.
>
>
> On Sep 17, 3:22 pm, Christian Hammond  wrote:
> > What version of Review Board are you running? What authentication method?
> >
> > Do you have any extensions in your browser that block cookies or scripts?
> >
> > Christian
> >
> > --
> > Christian Hammond - chip...@chipx86.com
> > Review Board -http://www.reviewboard.org
> > VMware, Inc. -http://www.vmware.com
> >
> >
> >
> > On Fri, Sep 17, 2010 at 12:20 PM, j4ys0n  wrote:
> > > So I had to reinstall my site so that it goes to a subdirectory of my
> > > domain. The site installed, I set permissions and I can get to the
> > > login page, but I can't log in. There's no error message, it just
> > > doesn't work. Any idea what would be causing this? It keeps telling me
> > > cookies must be enabled, but they are enabled.
> >
> > > Thanks
> >
> > > --
> > > Want to help the Review Board project? Donate today at
> > >http://www.reviewboard.org/donate/
> > > Happy user? Let us know athttp://www.reviewboard.org/users/
> > > -~--~~~~--~~--~--~---
> > > To unsubscribe from this group, send email to
> > > reviewboard+unsubscr...@googlegroups.com
> 
> > > For more options, visit this group at
> > >http://groups.google.com/group/reviewboard?hl=en
>
> --
> 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+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/reviewboard?hl=en
>

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Re: Can't log in

2010-09-17 Thread j4ys0n
Yeah.. something must have happened to my browser. It was working fine
earlier.. that's strange. I can log in from Firefox, but not Chrome.


On Sep 17, 3:22 pm, Christian Hammond  wrote:
> What version of Review Board are you running? What authentication method?
>
> Do you have any extensions in your browser that block cookies or scripts?
>
> Christian
>
> --
> Christian Hammond - chip...@chipx86.com
> Review Board -http://www.reviewboard.org
> VMware, Inc. -http://www.vmware.com
>
>
>
> On Fri, Sep 17, 2010 at 12:20 PM, j4ys0n  wrote:
> > So I had to reinstall my site so that it goes to a subdirectory of my
> > domain. The site installed, I set permissions and I can get to the
> > login page, but I can't log in. There's no error message, it just
> > doesn't work. Any idea what would be causing this? It keeps telling me
> > cookies must be enabled, but they are enabled.
>
> > Thanks
>
> > --
> > Want to help the Review Board project? Donate today at
> >http://www.reviewboard.org/donate/
> > Happy user? Let us know athttp://www.reviewboard.org/users/
> > -~--~~~~--~~--~--~---
> > To unsubscribe from this group, send email to
> > reviewboard+unsubscr...@googlegroups.com > oups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/reviewboard?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en


Re: Can't log in

2010-09-17 Thread Christian Hammond
What version of Review Board are you running? What authentication method?

Do you have any extensions in your browser that block cookies or scripts?

Christian

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


On Fri, Sep 17, 2010 at 12:20 PM, j4ys0n  wrote:

> So I had to reinstall my site so that it goes to a subdirectory of my
> domain. The site installed, I set permissions and I can get to the
> login page, but I can't log in. There's no error message, it just
> doesn't work. Any idea what would be causing this? It keeps telling me
> cookies must be enabled, but they are enabled.
>
> Thanks
>
> --
> 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+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/reviewboard?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Can't log in

2010-09-17 Thread j4ys0n
So I had to reinstall my site so that it goes to a subdirectory of my
domain. The site installed, I set permissions and I can get to the
login page, but I can't log in. There's no error message, it just
doesn't work. Any idea what would be causing this? It keeps telling me
cookies must be enabled, but they are enabled.

Thanks

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en


Re: post-review and perforce

2010-09-17 Thread Tony
Hmmm, so changing the regex allows post-review to detect perforce and
begin uploading.  However, I ran into a second problem with the way
post-review is creating the repository url.  I ended up just removing
the whole try block from get_repository_info in the PerforceClient
since it was picking up the correct URL for me without doing any of
that.  Might that create other problems down the line?

After this, I'm able to upload, however, reviewboard reports that the
"diff is empty".  I run with --output-diffs and it definitely isn't
empty.  I've copied the last portion of the debug output below. The
server log reports that it begins parsing the diff and its size is 838
as shown in the post-review debug log below.  Any thoughts on why this
might be?  Thanks again for all the help!


>>> Uploading diff, size: 838
>>> HTTP POSTing to 
>>> http://buildsrv1.domain.com/reviews/api/json/reviewrequests/9/diff/new/: {}
>>> Got API Error 105 (HTTP code 200): One or more fields had errors
>>> Error data: {u'fields': {u'path': [u'[Errno 2] No such file or 
>>> directory']}, u'stat': u'fail', u'err': {u'msg': u'One or more fields had 
>>> errors', u'code': 105}}

tony

On Sep 17, 12:49 am, Jan Koprowski  wrote:
> Better option is use tool which allow You edit files inside zip. Under
> Linux Midnight Command should do it.
>
>
>
> On Fri, Sep 17, 2010 at 9:20 AM, Tony  wrote:
> > I'm definitely a Python noob, but don't mind digging around in the
> > code.  I'm not familiar with python distributions and eggs, I assume I
> > can just unzip the RBTools egg and then rezip it?  I'll give it a shot
> > when I have a free moment tomorrow and get back to you.  Thanks again!
>
> > tony
>
> > On Sep 16, 10:43 pm, Christian Hammond  wrote:
> >> Interesting. That's definitely the problem. post-review expects the version
> >> information to be entirely numeric.
>
> >> I don't know what your Python comfort level is, but if you edited
> >> rbtools/rbtools/postreview.py and found the line that includes "Server
> >> version: ", and modified it to look like:
>
> >>     m = re.search(r'^Server version: [^
> >> ]*/([0-9]+)\.([0-9]+)(\.PATCH)?/[0-9]+ .*$',
>
> >> It may be work.
>
> >> That's just off the top of my head. But give it a try and if it works, we
> >> can include it.
>
> >> Christian
>
> >> --
> >> Christian Hammond - chip...@chipx86.com
> >> Review Board -http://www.reviewboard.org
> >> VMware, Inc. -http://www.vmware.com
>
> >> On Thu, Sep 16, 2010 at 7:41 PM, Tony  wrote:
> >> > Christian,
>
> >> > Thanks for the quick response.  I figured as much for the root thing.
> >> > Realized after I sent the email that p4 wasn't on my path as root, so
> >> > that explains it anyway...
>
> >> > In terms of the p4 info the server version line is present:
>
> >> > Server version: P4D/LINUX26AMD64/2005.2.PATCH/100601 (2006/05/26)
>
> >> > The whole thing looks like this (with the personal details removed):
>
> >> > User name: tony
> >> > Client name: tony_mac
> >> > Client host: mybox.local
> >> > Client root: /folder/source
> >> > Current directory: /folder/source
> >> > Client address: 10.100.101.21:53141
> >> > Server address: perforcesrv1.mydomain.com:1666
> >> > Server root: /perforce_depot/
> >> > Server date: 2010/09/16 19:35:27 -0700 PDT
> >> > Server version: P4D/LINUX26AMD64/2005.2.PATCH/100601 (2006/05/26)
> >> > Server license: MyCompany Inc 17 users (support expired 2007/05/16)
>
> >> > Thanks again!
>
> >> > tony
>
> >> > On Sep 16, 6:40 pm, Christian Hammond  wrote:
> >> > > Hi Tony,
>
> >> > > We discourage running as root, so that wouldn't be it.
>
> >> > > It's likely that it's failing to parse the server version info. Can you
> >> > type
> >> > > `p4 info` and show me the "Server version:" line, if it exists? If it
> >> > > doesn't, that's useful to know too, and I'd like to know if there's an
> >> > > equivalent line on there.
>
> >> > > Christian
>
> >> > > --
> >> > > Christian Hammond - chip...@chipx86.com
> >> > > Review Board -http://www.reviewboard.org
> >> > > VMware, Inc. -http://www.vmware.com
>
> >> > > On Thu, Sep 16, 2010 at 6:20 PM, Tony  wrote:
> >> > > > Hey everyone,
>
> >> > > > I'm trying to get ReviewBoard set up.  Installing the server was no
> >> > > > problem, however I've been having issues with post-review and
> >> > > > perforce.  I have two problems, the first is clearly a permission
> >> > > > problem, but I can't seem to find where the python files live to
> >> > > > change them.  I'm not super familiar with Python so excuse my
> >> > > > ignorance.
>
> >> > > > I'm on OS X and running an older (server 2005.2) version of perforce.
>
> >> > > > The first error is:
> >> > > > post-review -d
> >> > > > >>> svn info
> >> > > > >>> git rev-parse --git-dir
> >> > > > >>> hg root
> >> > > > >>> p4 info
> >> > > > Traceback (most recent call last):
> >> > > >  File "/usr/local/bin/post-review", line 8, in 
> >> > > >    load_entry_point('RBTools==0.2', 'console_scripts', 'post-review')
> >> > > > ()
> 

Manual server updates required: Install GNU Patch problem after installation on Windows/Apache

2010-09-17 Thread Ian
Hi guys,

I see a number of people have had this issue but none of their
resolutions have helped me so I post again.

I have installed everything on Windows following the instructions and
all I see when I browse the site is "Manual server updates required"
and underneath that "Install GNU patch.exe".

* Patch is installed and I can run it from the command line.

* It is on my system path.

* I have tried changing Apache to run as myself so it has full
priveleges and this did not work

* I have tried copying patch to Apache's bin folder, this did not
work.

* There are no logs in my RB installation dir. Apache has some logs
about Python version "Python version mismatch, expected '2.5', found
'2.5.4'. but I'm not sure this is a serious issue.

Can someone help me?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en


Re: Best practise when using Mercurial?

2010-09-17 Thread Dan Buch
On Fri, Sep 17, 2010 at 09:45:18AM +0200, Lars Olsson wrote:
> Hi,
> 
> I have previously used RB on both ClearCase and SVN.
> Now I am trying to use it together with mercurial. What is the
> preferred way to work with RB an Mercurial?
> 
> RB is running on the same server as the main mercurial repo, but if
> possible, I would like to crete diffs from client repos?
> 
> Anyone that can share how they use Mercurial and Reviewboard?
> 
> best regards,
> lars
> 
> -- 
> 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+unsubscr...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/reviewboard?hl=en

Lars,

Thanks to Augie Fackler (durin42,) the support for hgsubversion is
pretty seamless.  Support for "plain" Mercurial repos definitely needs
work.

I did some work to this end which was accepted for RB 1.5 and the next
version of RBTools.  Unfortunately, you'll likely need both sides
(server and client) upgraded before being able to use Mercurial
effectively.  That said, the Mercurial support that *has* been
implemented only covers a few use cases, so more input is greatly
appreciated.

-- 
~Dan



pgpDN5IEs8oeF.pgp
Description: PGP signature


Re: post-review and perforce

2010-09-17 Thread Jan Koprowski
Better option is use tool which allow You edit files inside zip. Under
Linux Midnight Command should do it.

On Fri, Sep 17, 2010 at 9:20 AM, Tony  wrote:
> I'm definitely a Python noob, but don't mind digging around in the
> code.  I'm not familiar with python distributions and eggs, I assume I
> can just unzip the RBTools egg and then rezip it?  I'll give it a shot
> when I have a free moment tomorrow and get back to you.  Thanks again!
>
> tony
>
> On Sep 16, 10:43 pm, Christian Hammond  wrote:
>> Interesting. That's definitely the problem. post-review expects the version
>> information to be entirely numeric.
>>
>> I don't know what your Python comfort level is, but if you edited
>> rbtools/rbtools/postreview.py and found the line that includes "Server
>> version: ", and modified it to look like:
>>
>>     m = re.search(r'^Server version: [^
>> ]*/([0-9]+)\.([0-9]+)(\.PATCH)?/[0-9]+ .*$',
>>
>> It may be work.
>>
>> That's just off the top of my head. But give it a try and if it works, we
>> can include it.
>>
>> Christian
>>
>> --
>> Christian Hammond - chip...@chipx86.com
>> Review Board -http://www.reviewboard.org
>> VMware, Inc. -http://www.vmware.com
>>
>> On Thu, Sep 16, 2010 at 7:41 PM, Tony  wrote:
>> > Christian,
>>
>> > Thanks for the quick response.  I figured as much for the root thing.
>> > Realized after I sent the email that p4 wasn't on my path as root, so
>> > that explains it anyway...
>>
>> > In terms of the p4 info the server version line is present:
>>
>> > Server version: P4D/LINUX26AMD64/2005.2.PATCH/100601 (2006/05/26)
>>
>> > The whole thing looks like this (with the personal details removed):
>>
>> > User name: tony
>> > Client name: tony_mac
>> > Client host: mybox.local
>> > Client root: /folder/source
>> > Current directory: /folder/source
>> > Client address: 10.100.101.21:53141
>> > Server address: perforcesrv1.mydomain.com:1666
>> > Server root: /perforce_depot/
>> > Server date: 2010/09/16 19:35:27 -0700 PDT
>> > Server version: P4D/LINUX26AMD64/2005.2.PATCH/100601 (2006/05/26)
>> > Server license: MyCompany Inc 17 users (support expired 2007/05/16)
>>
>> > Thanks again!
>>
>> > tony
>>
>> > On Sep 16, 6:40 pm, Christian Hammond  wrote:
>> > > Hi Tony,
>>
>> > > We discourage running as root, so that wouldn't be it.
>>
>> > > It's likely that it's failing to parse the server version info. Can you
>> > type
>> > > `p4 info` and show me the "Server version:" line, if it exists? If it
>> > > doesn't, that's useful to know too, and I'd like to know if there's an
>> > > equivalent line on there.
>>
>> > > Christian
>>
>> > > --
>> > > Christian Hammond - chip...@chipx86.com
>> > > Review Board -http://www.reviewboard.org
>> > > VMware, Inc. -http://www.vmware.com
>>
>> > > On Thu, Sep 16, 2010 at 6:20 PM, Tony  wrote:
>> > > > Hey everyone,
>>
>> > > > I'm trying to get ReviewBoard set up.  Installing the server was no
>> > > > problem, however I've been having issues with post-review and
>> > > > perforce.  I have two problems, the first is clearly a permission
>> > > > problem, but I can't seem to find where the python files live to
>> > > > change them.  I'm not super familiar with Python so excuse my
>> > > > ignorance.
>>
>> > > > I'm on OS X and running an older (server 2005.2) version of perforce.
>>
>> > > > The first error is:
>> > > > post-review -d
>> > > > >>> svn info
>> > > > >>> git rev-parse --git-dir
>> > > > >>> hg root
>> > > > >>> p4 info
>> > > > Traceback (most recent call last):
>> > > >  File "/usr/local/bin/post-review", line 8, in 
>> > > >    load_entry_point('RBTools==0.2', 'console_scripts', 'post-review')
>> > > > ()
>> > > >  File "build/bdist.linux-x86_64/egg/rbtools/postreview.py", line
>> > > > 2809, in main
>> > > >  File "build/bdist.linux-x86_64/egg/rbtools/postreview.py", line
>> > > > 2759, in determine_client
>> > > >  File "build/bdist.linux-x86_64/egg/rbtools/postreview.py", line
>> > > > 1409, in get_repository_info
>> > > > AttributeError: 'NoneType' object has no attribute 'group'
>>
>> > > > When running as root this changes to the following:
>> > > > sudo post-review -d
>> > > > >>> svn info
>> > > > >>> git rev-parse --git-dir
>> > > > >>> hg root
>> > > > >>> p4 info
>> > > > The current directory does not contain a checkout from a
>> > > > supported source code repository.
>>
>> > > > The p4 command line tool is on my path and runs without issue alone.
>> > > > Any and all pointers are appreciated.  Or if there's a better place
>> > > > for me to ask this, please let me know.  I've tried digging through
>> > > > the docs and didn't see anything that might solve the issues.  Clearly
>> > > > running the tool as root isn't ideal, but isn't a dealbreaker either.
>> > > > Thanks in advance!
>>
>> > > > tony
>>
>> > > > --
>> > > > Want to help the Review Board project? Donate today at
>> > > >http://www.reviewboard.org/donate/
>> > > > Happy user? Let us know athttp://www.reviewboard.org/users/
>> > > > -~--~~~---

Best practise when using Mercurial?

2010-09-17 Thread Lars Olsson
Hi,

I have previously used RB on both ClearCase and SVN.
Now I am trying to use it together with mercurial. What is the
preferred way to work with RB an Mercurial?

RB is running on the same server as the main mercurial repo, but if
possible, I would like to crete diffs from client repos?

Anyone that can share how they use Mercurial and Reviewboard?

best regards,
lars

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en


Re: post-review and perforce

2010-09-17 Thread Tony
I'm definitely a Python noob, but don't mind digging around in the
code.  I'm not familiar with python distributions and eggs, I assume I
can just unzip the RBTools egg and then rezip it?  I'll give it a shot
when I have a free moment tomorrow and get back to you.  Thanks again!

tony

On Sep 16, 10:43 pm, Christian Hammond  wrote:
> Interesting. That's definitely the problem. post-review expects the version
> information to be entirely numeric.
>
> I don't know what your Python comfort level is, but if you edited
> rbtools/rbtools/postreview.py and found the line that includes "Server
> version: ", and modified it to look like:
>
>     m = re.search(r'^Server version: [^
> ]*/([0-9]+)\.([0-9]+)(\.PATCH)?/[0-9]+ .*$',
>
> It may be work.
>
> That's just off the top of my head. But give it a try and if it works, we
> can include it.
>
> Christian
>
> --
> Christian Hammond - chip...@chipx86.com
> Review Board -http://www.reviewboard.org
> VMware, Inc. -http://www.vmware.com
>
> On Thu, Sep 16, 2010 at 7:41 PM, Tony  wrote:
> > Christian,
>
> > Thanks for the quick response.  I figured as much for the root thing.
> > Realized after I sent the email that p4 wasn't on my path as root, so
> > that explains it anyway...
>
> > In terms of the p4 info the server version line is present:
>
> > Server version: P4D/LINUX26AMD64/2005.2.PATCH/100601 (2006/05/26)
>
> > The whole thing looks like this (with the personal details removed):
>
> > User name: tony
> > Client name: tony_mac
> > Client host: mybox.local
> > Client root: /folder/source
> > Current directory: /folder/source
> > Client address: 10.100.101.21:53141
> > Server address: perforcesrv1.mydomain.com:1666
> > Server root: /perforce_depot/
> > Server date: 2010/09/16 19:35:27 -0700 PDT
> > Server version: P4D/LINUX26AMD64/2005.2.PATCH/100601 (2006/05/26)
> > Server license: MyCompany Inc 17 users (support expired 2007/05/16)
>
> > Thanks again!
>
> > tony
>
> > On Sep 16, 6:40 pm, Christian Hammond  wrote:
> > > Hi Tony,
>
> > > We discourage running as root, so that wouldn't be it.
>
> > > It's likely that it's failing to parse the server version info. Can you
> > type
> > > `p4 info` and show me the "Server version:" line, if it exists? If it
> > > doesn't, that's useful to know too, and I'd like to know if there's an
> > > equivalent line on there.
>
> > > Christian
>
> > > --
> > > Christian Hammond - chip...@chipx86.com
> > > Review Board -http://www.reviewboard.org
> > > VMware, Inc. -http://www.vmware.com
>
> > > On Thu, Sep 16, 2010 at 6:20 PM, Tony  wrote:
> > > > Hey everyone,
>
> > > > I'm trying to get ReviewBoard set up.  Installing the server was no
> > > > problem, however I've been having issues with post-review and
> > > > perforce.  I have two problems, the first is clearly a permission
> > > > problem, but I can't seem to find where the python files live to
> > > > change them.  I'm not super familiar with Python so excuse my
> > > > ignorance.
>
> > > > I'm on OS X and running an older (server 2005.2) version of perforce.
>
> > > > The first error is:
> > > > post-review -d
> > > > >>> svn info
> > > > >>> git rev-parse --git-dir
> > > > >>> hg root
> > > > >>> p4 info
> > > > Traceback (most recent call last):
> > > >  File "/usr/local/bin/post-review", line 8, in 
> > > >    load_entry_point('RBTools==0.2', 'console_scripts', 'post-review')
> > > > ()
> > > >  File "build/bdist.linux-x86_64/egg/rbtools/postreview.py", line
> > > > 2809, in main
> > > >  File "build/bdist.linux-x86_64/egg/rbtools/postreview.py", line
> > > > 2759, in determine_client
> > > >  File "build/bdist.linux-x86_64/egg/rbtools/postreview.py", line
> > > > 1409, in get_repository_info
> > > > AttributeError: 'NoneType' object has no attribute 'group'
>
> > > > When running as root this changes to the following:
> > > > sudo post-review -d
> > > > >>> svn info
> > > > >>> git rev-parse --git-dir
> > > > >>> hg root
> > > > >>> p4 info
> > > > The current directory does not contain a checkout from a
> > > > supported source code repository.
>
> > > > The p4 command line tool is on my path and runs without issue alone.
> > > > Any and all pointers are appreciated.  Or if there's a better place
> > > > for me to ask this, please let me know.  I've tried digging through
> > > > the docs and didn't see anything that might solve the issues.  Clearly
> > > > running the tool as root isn't ideal, but isn't a dealbreaker either.
> > > > Thanks in advance!
>
> > > > tony
>
> > > > --
> > > > Want to help the Review Board project? Donate today at
> > > >http://www.reviewboard.org/donate/
> > > > Happy user? Let us know athttp://www.reviewboard.org/users/
> > > > -~--~~~~--~~--~--~---
> > > > To unsubscribe from this group, send email to
> > > > reviewboard+unsubscr...@googlegroups.com
> > 
>
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/reviewboard?hl=en
>
> > --
> > Want to help the Review Board project?