@@ -640,7 +640,7 @@ int SvnRevision::exportEntry(const char *key, const svn_fs_path_change2_t *chang
640
640
// qDebug() << "Adding directory:" << key;
641
641
}
642
642
// svn:ignore-properties
643
- else if (is_dir && (change->change_kind == svn_fs_path_change_add || change->change_kind == svn_fs_path_change_modify)
643
+ else if (is_dir && (change->change_kind == svn_fs_path_change_add || change->change_kind == svn_fs_path_change_modify || change-> change_kind == svn_fs_path_change_replace )
644
644
&& path_from == NULL && CommandLineParser::instance ()->contains (" svn-ignore" )) {
645
645
needCommit = true ;
646
646
}
@@ -897,17 +897,18 @@ int SvnRevision::exportInternal(const char *key, const svn_fs_path_change2_t *ch
897
897
qDebug () << " add/change dir (" << key << " ->" << branch << path << " )" ;
898
898
899
899
// Check unknown svn-properties
900
- if (((path_from == NULL && change->prop_mod ==1 ) || (path_from != NULL && change->change_kind == svn_fs_path_change_add))
900
+ if (((path_from == NULL && change->prop_mod ==1 ) || (path_from != NULL && ( change->change_kind == svn_fs_path_change_add || change-> change_kind == svn_fs_path_change_replace) ))
901
901
&& CommandLineParser::instance ()->contains (" propcheck" )) {
902
902
if (fetchUnknownProps (pool, key, fs_root) != EXIT_SUCCESS) {
903
903
qWarning () << " Error checking svn-properties (" << key << " )" ;
904
904
}
905
905
}
906
906
907
- int ignoreSet = false ;
907
+ txn-> deleteFile (path) ;
908
908
909
909
// Add GitIgnore with svn:ignore
910
- if (((path_from == NULL && change->prop_mod ==1 ) || (path_from != NULL && change->change_kind == svn_fs_path_change_add))
910
+ int ignoreSet = false ;
911
+ if (((path_from == NULL && change->prop_mod ==1 ) || (path_from != NULL && (change->change_kind == svn_fs_path_change_add || change->change_kind == svn_fs_path_change_replace)))
911
912
&& CommandLineParser::instance ()->contains (" svn-ignore" )) {
912
913
QString svnignore;
913
914
// TODO: Check if svn:ignore or other property was changed, but always set on copy/rename (path_from != NULL)
@@ -919,10 +920,6 @@ int SvnRevision::exportInternal(const char *key, const svn_fs_path_change2_t *ch
919
920
}
920
921
}
921
922
922
- if (ignoreSet == false ) {
923
- txn->deleteFile (path);
924
- }
925
-
926
923
// Add GitIgnore for empty directories (if GitIgnore was not set previously)
927
924
if (CommandLineParser::instance ()->contains (" empty-dirs" ) && ignoreSet == false ) {
928
925
if (addGitIgnore (pool, key, path, fs_root, txn) == EXIT_SUCCESS) {
0 commit comments