Chris, Gilles,

Bbased on this old discussion, is there update for this now? 
is reviewbord working ok now for Mercurial repo of ssh:// repository URIs?

Jimmy

在 2011年5月20日星期五UTC+8上午12时39分01秒,Chris Toomey写道:
>
> Thanks Gilles.  We'll look at switching the repository to http then. 
>
> Chris 
>
> On May 18, 11:10 pm, Gilles Moris <gilles.mo...@free.fr> wrote: 
> > AFAIK, the "hg serve --stdio" command does not start hgweb. It just 
> instruct 
> > HG to start the wire protocol to listen on SSH stdin instead of a HTTP 
> > socket. But the HG wire protocol has no command to retrieve a file 
> revision 
> > content. 
> > 
> > So the solution would be to either: 
> > - Implement a new wire command to retrieve a file revision on the HG 
> side. 
> > There has always been some push back for such requests, so I don't see 
> that 
> > happen. 
> > - Implement a specialized HGSSHClient class in the hg.py of the 
> ReviewBoard 
> > scmtools to would run remotely run "hg cat" command and dump the result 
> over 
> > the SSH link, instead of trying to run the HG wire protocol over SSH. 
> > The Pros is that this would work with any mercurial version. 
> > The drawback of this solution is that you can't protect SSH accesses 
> with the 
> > hg-ssh script. You would have to use a different wrapper. 
> > 
> > Regards. 
> > Gilles. 
> > 
> > On Thursday 19 May 2011 01:11:37 am Chris Toomey wrote: 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > > Thanks Giles.  When I was trying to debug it I saw that it was running 
> > > "hg serve" remotely on the target host over ssh, so it looked like it 
> > > should thus be able to work w/ the same hgweb interface, but that's 
> > > about where I got stuck trying to figure out why it wasn't working. 
> > > Was that some work that was started and not completed or was I 
> > > misinterpreting how it was trying to work? 
> > 
> > > Chris 
> > 
> > > On May 17, 10:27 pm, Gilles Moris <gilles.mo...@free.fr> wrote: 
> > > > On Tuesday 17 May 2011 07:51:07 am Chris Toomey wrote: 
> > > > > Hi Christian, 
> > 
> > > > > It just has the info about the file/revision that it says it can't 
> > > > > find: 
> > 
> > > > > {"stat": "fail", "err": {"msg": "The file was not found in the 
> > > > > repository", "code": 207}, "file": "webapp/zend/application/ 
> > > > > Bootstrap.php", "revision": "89c64afda439"} 
> > 
> > > > > If I cd to the repository dir. on the server (the RB server and 
> > > > > mercurial repository are on the same host) and execute "hg cat -r 
> > > > > 89c64afda439 webapp/zend/application/Bootstrap.php" I get the 
> contents 
> > > > > of that rev. of the file, which is definitely in the repository. 
>  And 
> > > > > again, it's able to access that rev. of the file when I use an 
> http:// 
> > > > > repository path in RB. 
> > 
> > > > > Chris 
> > 
> > > > The 'hg cat' command cannot operate remotely through ssh:// 
> repositories. 
> > > > It works only locally. The http:// repos in RB work around that 
> using the 
> > > > raw file download from the hgweb interface. 
> > > > So you cannot configure a HG repo with ssh:// from ReviewBoard. 
> > > > You have to use local path (or NFS/SMB) or http://. It might be 
> possible 
> > > > to use https:// as well. 
> > 
> > > > Regards. 
> > > > Gilles.

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to