[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] normalize-dump.py broke at rev 6877

From: Michael Wood <mwood_at_its.uct.ac.za>
Date: 2003-10-02 16:25:48 CEST

normalize-dump.py is useful for comparing old dump files with
newer ones. It's currently broken, probably because of rev
6877. Also, it does not remove leading slashes from paths, so
normalized dumps created using versions of svnadmin before r6877
have spurious diffs when compared with normalized dumps created
using newer versions of svnadmin.

Here's a patch for the first problem.

* tools/dev/normalize-dump.py
  (header_re): Headers don't always contain something after the
    colon. (Probably since rev 6877)
  (rev_re, header_re): Remove unused variables.

Index: tools/dev/normalize-dump.py
--- tools/dev/normalize-dump.py (revision 7270)
+++ tools/dev/normalize-dump.py (working copy)
@@ -4,9 +4,7 @@
 import re
 import string
-header_re = re.compile(r'^(.*): (.*)$')
-rev_re = re.compile(r'^Revision-number: (.*)')
-node_re = re.compile(r'^Node-path: (.*)')
+header_re = re.compile(r'^(.*): ?(.*)$')
 class NodePath:
     def __init__(self, path, headers):

Michael Wood <mwood@its.uct.ac.za>
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 2 16:26:36 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.