[PATCH] largefiles: fixes failure from clone test with --pull

Hao Lian hao at fogcreek.com
Wed Oct 26 10:04:22 CDT 2011


# HG changeset patch
# User Hao Lian <hao at fogcreek.com>
# Date 1319640983 14400
# Branch stable
# Node ID 23179da95bc3567e0d2e528b3b1902013d494907
# Parent  c1930992e1112f2bc0a6a38a84d43a34de72e180
largefiles: fixes failure from clone test with --pull

Because the clone test (the very last test as of this revision) is cloning from
one local repository to another, it triggers the fast path (see clone in hg.py),
which produces a terser output than expected and fails the test. Adding this
flag fixes that problem.

diff --git a/tests/test-largefiles.t b/tests/test-largefiles.t
--- a/tests/test-largefiles.t
+++ b/tests/test-largefiles.t
@@ -780,7 +780,7 @@
   $ mkdir bob
   $ HOME="`pwd`/bob"
   $ cd bob
-  $ hg clone ../alice/pubrepo pubrepo
+  $ hg clone --pull ../alice/pubrepo pubrepo
   requesting all changes
   adding changesets
   adding manifests


More information about the Mercurial-devel mailing list