svn commit: r1931849 - subversion/trunk/tools/server-side

[email protected]
Newsgroups gmane.comp.version-control.subversion.svn
Message-ID <177098152461.2550628.1978552483515877866@svn02-us-east.apache.org>
Author: dsahlberg
Date: Fri Feb 13 11:18:44 2026
New Revision: 1931849

Log:
Use a raw string as argument to re.compile()

* tools/server-side/svn-backup-dumps.py
  (get_last_dumped_rev): As above

Patch by: [email protected]

dev@:  https://lists.apache.org/thread/owpvst9pw7sg5rq79snnxxkpcxn0w6k2

Modified:
   subversion/trunk/tools/server-side/svn-backup-dumps.py

Modified: subversion/trunk/tools/server-side/svn-backup-dumps.py
==============================================================================
--- subversion/trunk/tools/server-side/svn-backup-dumps.py	Fri Feb 13 10:23:01 2026	(r1931848)
+++ subversion/trunk/tools/server-side/svn-backup-dumps.py	Fri Feb 13 11:18:44 2026	(r1931849)
@@ -149,7 +149,7 @@
 #  - improve documentation
 #
 
-__version = "0.6"
+__version = "0.7"
 
 import sys
 import os
@@ -452,7 +452,7 @@ class SvnBackup:
         return -1
 
     def get_last_dumped_rev(self):
-        filename_regex = re.compile("(.+)\.\d+-(\d+)\.svndmp.*")
+        filename_regex = re.compile(r"(.+)\.\d+-(\d+)\.svndmp.*")
         # start with -1 so the next one will be rev 0
         highest_rev = -1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.