LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-23-2014, 04:40 AM   #1
DiBosco
Member
 
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mageia
Posts: 813

Rep: Reputation: 40
Mercurial - trying to push a repository from my local machine to my Raspebrry Pi


I'm newish to Mercurial, although have been using it for a couple of months now as a light user. Where I've been contracting they use it and I have successfully been pushing and pulling a repository of my work to the local server.

What I want to do is be able to use my Raspberry Pi as a Mercurial server, using Apache to be able to keep all my other clients' software up-to-date and accessible from anywhere in the world. OpenVPN works just fine and I can access my mysql server and other files just fine.

So, after much struggling I have finally managed to get the Mercurial server visible from Firefox. My pi is setup is /etc/hosts, so if I enter pi/hg into Firefox's address bar I can see what is on the attached JPEG.

The problem comes when trying to now push/pull repositorioes from my local machine to the Pi. I eventually found something that said they only way you can get the local repository on to the remote server originally is to clone it using ssh, after that you can use http. That is fine if true, so I tried that and it did, indeed, seem to suggest that I'd cracked it (it asked for my password and Tortoise Hg gave a load of progress reposrts). However, once it had bundled the files and said it had uploaded it, Tortoise Hg said it was unable to complete. Although it has now added this as a repository:

ssh:/robertw@pi/var/hg/repos

When I'm on site with this current client, that doesn't happen, it just shows one repository that I can push and pull. (I have only one repository when on-site here.)

If I ssh in to the Pi, I can see in /var/hg/repos there is a .hg file with cache, store and other files, just as there is with the local repository. However, when I try to check for incoming changes using Tortoise Hg it tells me this:


Code:
sqlforms% % hg --repository /home/robertw/Software/Qt5/sqlforms incoming --quiet --bundle /tmp/thg.793k8v/http__pi_hg__jpZNoc.hg http://pi/hg/
'http://pi/hg/' does not appear to be an hg repository:
---%<--- (text/html; charset=ascii)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
<head>
<link rel="icon" href="/hg/static/hgicon.png" type="image/png" />
<meta name="robots" content="index, nofollow" />
<link rel="stylesheet" href="/hg/static/style-paper.css" type="text/css" />
<script type="text/javascript" src="/hg/static/mercurial.js"></script>

<title>Mercurial repositories index</title>
</head>
<body>

<div class="container">
<div class="menu">
<a href="http://mercurial.selenic.com/">
<img src="/hg/static/hglogo.png" width=75 height=90 border=0 alt="mercurial" /></a>
</div>
<div class="main">
<h2>Mercurial Repositories</h2>

<table class="bigtable">
    <tr>
        <th><a href="?sort=name">Name</a></th>
        <th><a href="?sort=description">Description</a></th>
        <th><a href="?sort=contact">Contact</a></th>
        <th><a href="?sort=lastchange">Last modified</a></th>
        <th>&nbsp;</th>
    </tr>
    
<tr class="parity0">
<td><a href="/hg/"></a></td>
<td>unknown</td>
<td>unknown</td>
<td class="age">Thu, 23 Jan 2014 10:02:38 +0000</td>
<td class="indexlinks"></td>
</tr>

</table>
</div>
</div>
<script type="text/javascript">process_dates()</script>


</body>
</html>


---%<---

[command returned code 255 Thu Jan 23 10:36:06 2014]
sqlforms%
Also, when I point Firefox to pi/hg it still doesn't list a repository.

I must be really close to having this working now, but I am guessing I am missing out an important step or completely missing something salient.

Does anyone have any idea from this information as to what I might be doing wrong? Many thanks.
Attached Thumbnails
Click image for larger version

Name:	mercurial.jpeg
Views:	11
Size:	45.5 KB
ID:	14552  

Last edited by DiBosco; 01-23-2014 at 05:09 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mercurial Hg push command not working - Error: No changes found sangal_ak04 Linux - Software 4 01-10-2013 08:30 PM
Cannot pull or push to Git repository as normal user abrinister Linux - Networking 12 10-26-2012 02:47 AM
git push origin doesn't update the remote repository immediately mohtasham1983 Linux - Server 1 07-15-2009 01:07 PM
How to download whole repository into one folder in the local machine ? prasanthp Linux - Newbie 3 06-25-2009 01:33 AM
how can i add a local Folder on local Hard Disk as Yum Repository ?? vahid_p Fedora 4 02-22-2007 10:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration