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

Boris Feld boris.feld at octobus.net
Mon Nov 13 06:04:55 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 bacfe13eb9b21a13c8144ae4d2337415ea93f2e3
# Parent  57145dddd16a59c40bd83187bdb2a1615710a6cf
# EXP-Topic better-substitute
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r bacfe13eb9b2
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