@@ -1322,7 +1322,11 @@ int SvnRevision::fetchIgnoreProps(QString *ignore, apr_pool_t *pool, const char
1322
1322
*ignore = QString (prop->data );
1323
1323
// remove patterns with slashes or backslashes,
1324
1324
// they didn't match anything in Subversion but would in Git eventually
1325
+ #if QT_VERSION >= 0x060000
1326
+ *ignore = QRegExp (" ^[^\\ r\\ n]*[\\\\ /][^\\ r\\ n]*(?:[\\ r\\ n]|$)|[\\ r\\ n][^\\ r\\ n]*[\\\\ /][^\\ r\\ n]*(?=[\\ r\\ n]|$)" ).removeIn (*ignore);
1327
+ #else
1325
1328
ignore->remove (QRegExp (" ^[^\\ r\\ n]*[\\\\ /][^\\ r\\ n]*(?:[\\ r\\ n]|$)|[\\ r\\ n][^\\ r\\ n]*[\\\\ /][^\\ r\\ n]*(?=[\\ r\\ n]|$)" ));
1329
+ #endif
1326
1330
// add a slash in front to have the same meaning in Git of only working on the direct children
1327
1331
#if QT_VERSION >= 0x060000
1328
1332
*ignore = QRegExp (" (^|[\\ r\\ n])\\ s*(?![\\ r\\ n]|$)" ).replaceIn (*ignore, " \\ 1/" );
@@ -1343,7 +1347,11 @@ int SvnRevision::fetchIgnoreProps(QString *ignore, apr_pool_t *pool, const char
1343
1347
QString global_ignore = QString (prop->data );
1344
1348
// remove patterns with slashes or backslashes,
1345
1349
// they didn't match anything in Subversion but would in Git eventually
1350
+ #if QT_VERSION >= 0x060000
1351
+ global_ignore = QRegExp (" ^[^\\ r\\ n]*[\\\\ /][^\\ r\\ n]*(?:[\\ r\\ n]|$)|[\\ r\\ n][^\\ r\\ n]*[\\\\ /][^\\ r\\ n]*(?=[\\ r\\ n]|$)" ).removeIn (global_ignore);
1352
+ #else
1346
1353
global_ignore.remove (QRegExp (" ^[^\\ r\\ n]*[\\\\ /][^\\ r\\ n]*(?:[\\ r\\ n]|$)|[\\ r\\ n][^\\ r\\ n]*[\\\\ /][^\\ r\\ n]*(?=[\\ r\\ n]|$)" ));
1354
+ #endif
1347
1355
if (!global_ignore.trimmed ().isEmpty ()) {
1348
1356
ignore->append (global_ignore);
1349
1357
}
0 commit comments