[PATCH 10 of 11] test-pattern: substitute the HTTP log timestamp too

Boris Feld boris.feld at octobus.net
Mon Nov 13 06:05:00 EST 2017


# HG changeset patch
# User Boris Feld <boris.feld at octobus.net>
# Date 1509866633 -3600
#      Sun Nov 05 08:23:53 2017 +0100
# Node ID c06ed80fc1063905dc6a711fc32c88d5913b0db6
# Parent  8f0e6aaf04b6bdd6535b6bc03008538c95085105
# EXP-Topic better-substitute
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r c06ed80fc106
test-pattern: substitute the HTTP log timestamp too

We add a pattern matching the infamous timestamp in http log. Now, we should be
able to have change appears in https log without having to re-glob the whole
thing over and over.

diff --git a/tests/common-pattern.py b/tests/common-pattern.py
--- a/tests/common-pattern.py
+++ b/tests/common-pattern.py
@@ -32,4 +32,8 @@ substitutions = [
      # (replacement patterns)
      br'$USUAL_BUNDLE2_CAPS$'
     ),
+    # HTTP log dates
+    (br' - - \[\d\d/.../2\d\d\d \d\d:\d\d:\d\d] "GET',
+     br' - - [$LOGDATE$] "GET'
+    ),
 ]


More information about the Mercurial-devel mailing list