Webrev for Mercurial and Teamware

This version of webrev has been updated to be able to handle both Teamware and Mercurial.

From a usage point of view, it is mostly unchanged. However there are a few differences and improvements that should be pointed out.

Mercurial or Teamware?

So how will it decides whether to use Mercurial or Teamware? There are several ways:

In any cases, webrev will display which tool it is using:

$ webrev
SCM detected: teamware
...
$ webrev -m
SCM detected: mercurial

Mercurial Forest support

The forest extension for mercurial allows operations on trees with nested repositories. If you want webrev to make use of that extension, then use the -f option and point it to the top of the tree.

File list

If no file list is specified, then webrev will try to generate one from the state of the workspace.

For Teamware, it will parse the output of a 'putback -n' command

For Mercurial it will first try to parse the result of 'hg outgoing' (this means you have one or more commit pending). If no commit is pending it will then parse the output of 'hg status'. It is possible to tell webrev to forego the first step (i.e. Ignore all pending commit) by using the -N option.

Misc options

Other options:

Other environment variables:

CODEMGR_PARENT: parent workspace location (teamware only).

WDIR: Control the output directory.