infinitepush: fix regex formating

In Python 2.6 we need to explicitly number all the '{}' format entries. This was
breaking the Centos6 build.
This commit is contained in:
Durham Goode 2016-12-16 17:29:04 -08:00
parent f0c75a557a
commit 08a77d4294

View File

@ -916,7 +916,7 @@ def _parsebackupbookmark(ui, backupbookmark):
represents a local bookmark and None otherwise.
'''
commonre = '^{}/([-\w.]+)(/.*)'.format(re.escape(_getcommonuserprefix(ui)))
commonre = '^{0}/([-\w.]+)(/.*)'.format(re.escape(_getcommonuserprefix(ui)))
bookmarkre = commonre + '/bookmarks/(.*)$'
headsre = commonre + '/heads/[a-f0-9]{40}$'