mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
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:
parent
f0c75a557a
commit
08a77d4294
@ -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}$'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user