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

Python special characters in repository names makes hot-backup.py fail

From: Leo Davis <ldavis_at_fonix.com>
Date: 2004-10-01 23:14:57 CEST

Here's my patch to work fix this problem.

110a111,124
> repo_clean = string.replace(repo, '\\', '\\\\')
> repo_clean = string.replace(repo_clean, '.', '\.')
> repo_clean = string.replace(repo_clean, '^', '\^')
> repo_clean = string.replace(repo_clean, '$', '\$')
> repo_clean = string.replace(repo_clean, '*', '\*')
> repo_clean = string.replace(repo_clean, '+', '\+')
> repo_clean = string.replace(repo_clean, '?', '\?')
> repo_clean = string.replace(repo_clean, '{', '\{')
> repo_clean = string.replace(repo_clean, '}', '\}')
> repo_clean = string.replace(repo_clean, '[', '\[')
> repo_clean = string.replace(repo_clean, ']', '\]')
> repo_clean = string.replace(repo_clean, '(', '\(')
> repo_clean = string.replace(repo_clean, ')', '\)')
> repo_clean = string.replace(repo_clean, '|', '\|')
112c126
< regexp = re.compile("^" + repo + "-" + youngest + "(-(?P<increment>[0-9]+))?$")

---
> regexp = re.compile("^" + repo_clean + "-" + youngest + "(-(?P<increment>[0-9]+))?$")
141c155
<   regexp = re.compile("^" + repo + "-[0-9]+(-[0-9]+)?$")
---
>   regexp = re.compile("^" + repo_clean + "-[0-9]+(-[0-9]+)?$")

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 2 01:13:58 2004

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.