equal
deleted
inserted
replaced
966 (br'([^0-9])%s' % re.escape(self._localip()), br'\1$LOCALIP'), |
966 (br'([^0-9])%s' % re.escape(self._localip()), br'\1$LOCALIP'), |
967 (br'\bHG_TXNID=TXN:[a-f0-9]{40}\b', br'HG_TXNID=TXN:$ID$'), |
967 (br'\bHG_TXNID=TXN:[a-f0-9]{40}\b', br'HG_TXNID=TXN:$ID$'), |
968 ] |
968 ] |
969 r.append((self._escapepath(self._testtmp), b'$TESTTMP')) |
969 r.append((self._escapepath(self._testtmp), b'$TESTTMP')) |
970 |
970 |
|
971 testdir = os.path.dirname(self.path) |
|
972 replacementfile = os.path.join(testdir, 'common-pattern.py') |
|
973 |
|
974 if os.path.exists(replacementfile): |
|
975 data = {} |
|
976 execfile(replacementfile, data) |
|
977 r.extend(data.get('substitutions', ())) |
971 return r |
978 return r |
972 |
979 |
973 def _escapepath(self, p): |
980 def _escapepath(self, p): |
974 if os.name == 'nt': |
981 if os.name == 'nt': |
975 return ( |
982 return ( |