Mercurial windows server 2008 - mercurial

I have the all-in-one download with TortoiseHg 2.6.1 and Mercurial 2.4.1 installed on windows server 2k8. I created a repository, served it on port 8000. There are no mercurial configuration files setup right now for this repository. No global config files either. When I try to clone this repos through eclipse (MercruialEclipse plugin) from a remote computer over the internet, I get:
abort: HTTP Error 404: Not Found
What does this mean?
Thanks.

Found the solution. The command syntax was incorrect. The incorrect syntax I was using was
hg clone http://www.xyz.com:8000/<dirname for the repo clone>
The correct command is:
hg clone http://www.xyz.com:8000/ <dirname for the repo clone>
Should also mention that I am using version 2.3.2(mercurial)

Related

Re-cloning a mercurial repository without generaldelta

I'm trying to do a hg clone on an Internet facing machine for later use on an offline build machine. Unfortunately mercurial is 3.9.1 on the Internet machine, but 1.4 on the offline machine.
I get the error abort: requirement 'generaldelta' not supported! and also abort: requirement 'dotencode' not supported!
I found this is becuase generaldelta feature was added in 1.9, and dotencode in 1.7. I've used instructions from the MissingRequirement wiki page to downgrade this repo using the following.
hg clone -U --config format.generaldelta=0 --config format.dotencode=0 --pull /tmp/foo /tmp/bar
However the new repo at /tmp/bar still uses generaldelta, although dotencode require has gone. i.e.
cat /tmp/bar/.hg/requires
fncache
generaldelta <=== still there
revlogv1
store
store
How can I rewrite the repo with both generaldelta and dotencode disabled?
The config option should have been format.usegeneraldelta not format.generaldelta. i.e.
hg clone -U --config format.usegeneraldelta=0 --config format.dotencode=0 --pull /tmp/foo /tmp/bar
Note the config. options are all config.use<feature-name> apart from config.dotencode see Mercurial format options. Beware as there is not any error checking either.

configure mercurial repository on reviewboard

I've installed reviewboard (both in windows and linux), I successfully added an svn repository (i see the commits on the repo in http://reviewboard.ourcompany.com/reviewboard/r/new/) but I can't figure out how to properly add a mercurial repo, I added it to the repo list but there i no way of getting the commits out of it.
I tried using as path:
1)the http address of the mercurial server (the address is correct)
2)cloning locally a bare repo from the http server
I couldn't find any tutorial on how to configure reviewboard with mercurial

How to authenticate and clone a remote repository in TortoiseHg

I am trying to clone a repo on a remote Ubuntu server to my local Windows file system. Never done this before. I have TortoiseHg 0.9.3. I right-click and empty folder and in the TortoiseHg flyout I select "Clone". I enter ssh://myusername#mydomain.org/test as the source path (that's where my repo is) and the current location as the destination path. Then I hit "clone".
TortoiseHg says:
running ""C:\Program Files\TortoiseHg\TortoisePlink.exe" -ssh -2
myuser#mydomain.org "hg -R test serve --stdio"" ... no suitable
response from remote hg [command interrupted]
I then get a popup from PuTTY: "Network error: connection timed out".
Where did I go wrong? I was never asked for my password. Where do I enter that?
Fixed the problem by upgrading TortoiseHg from 0.9.3 to 2.6.x

can't push/pull from mercurial repository - abort: error: An existing connection was forcibly closed by the remote host

I am planning to use mercurial for a new project but I'm having some problem accessing the bitbucket repository. I'm new to mercurial, but I have used git previously.
I get the following error when peforing a hg clone or push:
abort: error: An existing connection was forcibly closed by the remote host
I only have this problem when using my work pc, when accessing the repository from my home pc I can clone and push just fine, any ideas, is there some firewall setting that needs to be configured?
I'm using Mercurial-2.1.2-x64 on windows 7 x64 for both pcs.
So I found the source of the error, I had initially installed tortoise hg which had created the following mercurial.ini file in my user directory, once I deleted this file, it resolved the issue. I suppose the problem was that I had specified the repository url instead of an actual http proxy...
# Generated by TortoiseHg settings dialog
[tortoisehg]
cipushafter =
[http_proxy]
host = https://****#bitbucket.org/****/*** (my repository path)
Browse to the project folder in command prompt and run hg rollback.

Where can I get hgweb.cgi file?

Can anyone tell me where can I get the hgweb.cgi file mentioned here:
https://www.mercurial-scm.org/wiki/HgWebDirStepByStep
I'm using a Mac and I have Mercurial installed and running fine. I just want to serve multiple Mercurial repositories to my local network because this hg serve -a 0.0.0.0 works for only one repository.
You can find it in the Mercurial repo: https://www.mercurial-scm.org/repo/hg-stable/file/tip/hgweb.cgi