status messages during hg clone

Adrian Buehlmann adrian at cadifra.com
Thu Mar 20 13:39:09 CDT 2008


Hi all

I would like to ask if a patch that prints the additional status message
"updating working directory" during hg clone would be accepted.

Example:

% hg clone http://example.com/repo/big big
requesting all changes
adding changesets
adding manifests
adding file changes
added XXX changesets with XXX changes to XXX files
updating working directory
XXX files updated, XXX files merged, XXX files removed, XXX files unresolved


The reason for this is, that looking at

% hg clone http://example.com/repo/big big
requesting all changes
adding changesets
adding manifests
adding file changes
added XXX changesets with XXX changes to XXX files

and waiting feels like the command should be finished, but Mercurial is
updating the working directory and thus writing to disk at this stage.

IMHO, looking at

% hg clone http://example.com/repo/big big
requesting all changes
adding changesets
adding manifests
adding file changes
added XXX changesets with XXX changes to XXX file
updating working directory

and hearing disk accesses would be more intuitive.

I wouldn't change "hg update" and I would propose to also do

% hg clone big big-work
updating working directory
XXX files updated, XXX files merged, XXX files removed, XXX files unresolved

to keep program logic simple.

Of course, the patch would affect a pile of *.out files in tests/.

This change would comply with CompatibilityRules on the wiki.











More information about the Mercurial-devel mailing list