Hg just hangs in the terminal

I started using Mercurial for my personal projects and I am currently looking at Joel's tutorial: http://hginit.com/02.html

The problem is when I type hg serve

in the terminal, it just hangs. Other commands like hg init

that work fine. Does anyone know what's going on?

I installed mercurial by doing this: sudo apt-get install mercurial meld

+2


a source to share


2 answers


You want to use the -d option to run it in the background:

hg serve -d

      



Otherwise, it will just start as a foreground process by going into stdout and stderr.

Run hg help serve

to see more options.

+8


a source


Try setting the port to something other than 8000 for example hg serve -p 9001

. There may be a conflict. Also note that it doesn't output anything to the terminal when run. It just sits there until you choose CTRL+C

.



+2


a source







All Articles