[PATCH 20 of 21] context: lowercase output from walk

Martin Geisler mg at daimi.au.dk
Sat Jan 3 10:40:18 CST 2009


# HG changeset patch
# User Martin Geisler <mg at daimi.au.dk>
# Date 1230999321 -3600
# Node ID 8333715a0c3a2d457a6a0eb2d784e9a31f3a753d
# Parent  0f6d037905c28c39d523a4eea40dbd696a8ff921
context: lowercase output from walk

This is the "a.txt: No such file in rev ..." message, which some
scripts might rely on.

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -174,7 +174,7 @@
             if match(fn):
                 yield fn
         for fn in util.sort(fdict):
-            if match.bad(fn, 'No such file in rev ' + str(self)) and match(fn):
+            if match.bad(fn, 'no such file in rev ' + str(self)) and match(fn):
                 yield fn
 
 class filectx(object):
diff --git a/tests/test-cat.out b/tests/test-cat.out
--- a/tests/test-cat.out
+++ b/tests/test-cat.out
@@ -4,5 +4,5 @@
 0
 0
 0
-a: No such file in rev 03f6b0774996
+a: no such file in rev 03f6b0774996
 1
diff --git a/tests/test-revert.out b/tests/test-revert.out
--- a/tests/test-revert.out
+++ b/tests/test-revert.out
@@ -37,7 +37,7 @@
 %% should say file not managed
 file not managed: q
 %% should say file not found
-notfound: No such file in rev 095eacd0c0d7
+notfound: no such file in rev 095eacd0c0d7
 A z
 ? e.orig
 %% should add a, remove d, forget z


More information about the Mercurial-devel mailing list