status messages during hg clone

Adrian Buehlmann adrian at cadifra.com
Fri Mar 21 07:07:17 CDT 2008


On 21.03.2008 00:02, Benoit Boissinot wrote:
> On Thu, Mar 20, 2008 at 7:39 PM, Adrian Buehlmann <adrian at cadifra.com> wrote:
>> 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.
> 
> I, and other in #mercurial, think it's a good idea. So please go ahead.

I uploaded changeset bf7afddcdca2, pullable from here:
http://www.cadifra.com/cgi-bin/repos/mercurial-abuehl/rev/bf7afddcdca2
(based on clean e29557d687c9).

The only source change is:

--- a/mercurial/hg.py	Fri Mar 21 00:55:53 2008 +0100
+++ b/mercurial/hg.py	Fri Mar 21 11:46:51 2008 +0100
@@ -243,6 +243,7 @@ def clone(ui, source, dest=None, pull=Fa
             fp.close()

             if update:
+                dest_repo.ui.status(_("updating working directory\n"))
                 if not checkout:
                     try:
                         checkout = dest_repo.lookup("default")

The rest are all changes to tests/*.out files.

I did run the regression tests on FreeBSD:

%uname -smr
FreeBSD 6.2-RELEASE i386

%python run-tests.py -i
[snip]
Skipped test-convert-baz: missing feature: GNU Arch baz client
Skipped test-convert-darcs: missing feature: darcs client
Skipped test-no-symlinks: system supports symbolic links
Failed test-bundle: output changed
# Ran 242 tests, 3 skipped, 0 failed.

(there was one last changed output I accepted in that run)



More information about the Mercurial-devel mailing list