[PATCH] Have verbose flag print the changeset hash when committing

Adrian Buehlmann adrian at cadifra.com
Fri Aug 22 12:00:25 CDT 2008


On 22.08.2008 18:18, Doug Philips wrote:
> OK. But as I said, that wasn't the reason I wanted it.
> I actually expected to get a lot push back and figured a separate switch
> would permit the new behaviour only when asked.

Sure. But the proposal is so good that it should be the
default behavior. No need to use the back door.

> What I really wanted (and I guess I should have just posted the
> patch instead of an inquiry :)) was:
> 
> % hg commit --show-changeset ...
> 965:00c520d3f334

That's an excellent idea to output the revision number too besides the
revision id! (and that's even deterministic in the testsuite)

So I will do a patch that prints the following additional output line:

committed changeset 6930:a58a611c320f

at the end of a plain 'hg commit' (so no --show-changeset or -v
needed).

If a user doesn't want to see this, he can specify "-q" or "--quiet"
and then he won't see the notice about the added head either.

If the user specifies --debug, I will output the full hash
like this:

committed changeset 6930:a58a611c320fc763bb2dac5b3e468bad4c270629


More information about the Mercurial-devel mailing list