Fix handling of paths when run outside the repo.
The main problem was that dirstate.getcwd() returned just "",
which was interpreted as "we're at the repo root". It now returns
an absolute path.
The util.pathto function was also changed to deal with the "cwd is
an absolute path" case.
*** failed to import extension badext: invalid syntax (badext.py, line 1)
hg help [COMMAND]
show help for a command, extension, or list of commands