apache repository setup

Andrew Thompson andrewkt at aktzero.com
Tue Aug 9 14:55:06 CDT 2005


John Evans wrote:
> appreciate the help.
> yes. .hg and a local working set too.
> for testing, on je-server1, I locally created another repository in 
> /home/guestuser/gu-repo (hg clone /home/je/je-repo, hg update), and am 
> able to modify files in the new working set, then do a "hg commit", 
> "hg push /home/je/je-repo".  and then in a tmp directory, I can 
> perform a "hg clone /home/je/je-repo" and the modified files are 
> present in my newly cloned repository.  so, appears as if I can 
> perform all of the required hg commands locally, but when I try to use 
> hg push ssh:... remotely, then something goes wrong.
> mucking with sshd config seems to be the answer, but not sure.
> thanks

You're not running Windows are you? (I think I found something that 
might cause a problem on Windows.*)

Have you run ssh by hand against that particular server before? (it 
dumps stuff other than what is expected if you haven't)

Try some basic looking around and see if you can identify what's going 
on on the server side:

ssh je at je_server1 "ls"
ssh je at je_server1 "ls /~/je-repo"
ssh je at je_server1 "ls /~/je-repo/.hg"

In case for some strange reason it's a permissions issue, try touch'ing 
a file in your home folder, and in the repo:

ssh je at je_server1 "touch ~/asdf1"
ssh je at je_server1 "touch ~/je-repo/asdf1"

None of this is expected to be a solution, but to establish some facts 
about what works and what doesn't.

I even ran something like the following against a repo of mine(I had 
never tried this before today). It should return the same as running the 
command locally.

ssh je at je_server1 "hg -R ~/je-repo verify"

*Double quotes may not be required, and may not even work in your shell. 
I included them because if I were to try and run the lines from my WinXP 
desktop, they *would* be required.

-- 
Andrew Thompson
http://aktzero.com/



More information about the Mercurial mailing list