Skip to content

Instantly share code, notes, and snippets.

@grrussel
Created July 11, 2012 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grrussel/3092513 to your computer and use it in GitHub Desktop.
Save grrussel/3092513 to your computer and use it in GitHub Desktop.
Mercurial - using "hg serve" to push changes
I've just discovered Mercurial. It's amazing!!! It's a distributed version control system, similar in its flows to git and others from the bunch so if you're already familiar with the concept you'll have no issues working with it.
One thing however is really amazing: it contains a built-in web user interface! Just while being inside the repository type "hg serve" and browse to http://localhost:8000. And there's more to it. "hg serve" can serve as a real server!
There's one thing worth mentioning. If you'd like to use it for hosting a repository there's one thing you have to add to .hgrc (or Mercurial.ini in case you're working in Windows) to make it work:
[web]
allow_push = *
push_ssl = false
Otherwise while trying to push the changes you'll get a message saying something SSL and stuff.
And like I said - Mercurial is great - go check it out!
from http://padcom13.blogspot.se/2009/06/mercurial-using-hg-serve-to-push.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment