Query regarding mercurial command

Nitin Negi nitinn at universal-sw.com
Thu Aug 19 10:18:02 CDT 2010


Hi Vishakh,



In pursuance with my last mail, now I am trying to -



Step 1. Create Central Repository in one machine and commit the files in it



Step 2. From the second system trying to get the list of files/folders from the central repository by http://blackducktwo:8000/



Please let me know that is it feasible to get the list of files/folder from the central repository with the way i am following, if not, what would be the right way ?



Mentioned below are the detailed steps i did -

Step 1. I had created a central repository using Mercurial's built in web server in my system with the following command:-



C:\> mkdir CentralRepo

C:\> cd CentralRepo

C:\CentralRepo> hg init

C:\CentralRepo> hg serve

Since my computer name is blackducktwo.I can just go to http://blackducktwo:8000/ with a web browser and see that the server is up and running, even though the repository there is completely empty



Step 2. After that I cloned it to my system using command 'C:\Users\Nitin> http://blackducktwo:8000// recipes' I get the empty repository. After that I added files in the recipes folder, commit it and push it to the central repository. I had done the necessary changes in the .hg\hgrc on the server i.e... (Screenshot attached Pic1.jpg)



[web]
push_ssl=False
allow_push=*



Step 3. I have another system in which Mercurial is already installed. There in the command prompt I tried 'hg manifest -R http://blackducktwo:8000/CentralRepo' command to get the list of folder/files.

But I am getting an error mentioned below in the command prompt where 'hg serve' was running. (Screenshot attached Pic2.jpg).



----------------------------------------
Exception happened during processing of request from ('172.16.1.192', 2411)
Traceback (most recent call last):
  File "SocketServer.pyc", line 558, in process_request_thread
  File "SocketServer.pyc", line 320, in finish_request
  File "mercurial\hgweb\server.pyc", line 42, in __init__
  File "SocketServer.pyc", line 615, in __init__
  File "BaseHTTPServer.pyc", line 329, in handle
  File "BaseHTTPServer.pyc", line 323, in handle_one_request
  File "mercurial\hgweb\server.pyc", line 74, in do_GET
  File "mercurial\hgweb\server.pyc", line 65, in do_POST
  File "mercurial\hgweb\server.pyc", line 58, in do_write
  File "mercurial\hgweb\server.pyc", line 122, in do_hgweb
  File "mercurial\hgweb\hgweb_mod.pyc", line 85, in __call__
  File "mercurial\hgweb\hgweb_mod.pyc", line 117, in run_wsgi
ErrorResponse
----------------------------------------



Would you mind sharing with me your messenger id.



Thanks with regards

Nitin





________________________________________
From: Vishakh Harikumar [vsh426 at gmail.com]
Sent: Wednesday, August 18, 2010 2:04 PM
To: Nitin Negi
Cc: mercurial
Subject: Re: Query regarding mercurial command

On Wed, Aug 18, 2010 at 9:53 PM, Nitin Negi <nitinn at universal-sw.com> wrote:
> Hi,
>
>    I am new to Mercurial SCM. I have one query :-
>
> 1) In Subversion the command for getting list of directory entries in the repository which is access able through http/https :-
> svn list https://quantifa.svn.sourceforge.net/svnroot/quantifa/
> it gives you all the listing.
>
> Same thing i want to achieve in mercurial and I found the equivalent command 'manifest' in mercurial to 'svn list'.
>
> I tried "D:\>hg manifest -R http://hg.savannah.gnu.org/hgweb/octave/"  in the command prompt but it is giving me an error :-
>
> abort: repository 'http://hg.savannah.gnu.org/hgweb/octave/' is not local
>
> It would be very grateful if you replied me with the answer.
>
>
> Thanks with Regards
> Nitin
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel
>

most hg commands operate on local repositories
hence the 'abort: repository not local'. clone the repo first and do
the same locally.
if you are getting started, consider reading one of the following:
http://mercurial.aragost.com/kick-start/
http://hginit.com/
http://hgbook.red-bean.com/read/

also this mail belongs to the mercurial user list mercurial at selenic.com

--
vsh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20100819/0dc5d815/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Pic1.jpg
Type: image/pjpeg
Size: 163965 bytes
Desc: Pic1.jpg
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20100819/0dc5d815/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Pic2.jpg
Type: image/pjpeg
Size: 118370 bytes
Desc: Pic2.jpg
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20100819/0dc5d815/attachment-0003.bin>


More information about the Mercurial-devel mailing list