# # # patch "NEWS" # from [30dd3def02920d7ba446b2775e0f52616fa112b1] # to [509f4e1d4015359411b199481c55469871f86084] # # patch "src/monotone/FileExporter.cpp" # from [dc29c89ec8f7ac23b25811a34d88b442855890a9] # to [d8087880b51ff392994479f8719c54b7ac7dce91] # ============================================================ --- NEWS 30dd3def02920d7ba446b2775e0f52616fa112b1 +++ NEWS 509f4e1d4015359411b199481c55469871f86084 @@ -28,6 +28,8 @@ by default - bugfix: a running mtn instance for a workspace is now properly re-used if needed for a database-only task + - bugfix: on export and checkout, the mtn:execute attribute is now honored, + i.e. an exported executable file is made user-executable. (closes FS#12) - bugfix: if a not supported mtn version is found and the user hits cancel in the preferences dialog, guitone is now closed properly and does not sit in the background doing nothing ============================================================ --- src/monotone/FileExporter.cpp dc29c89ec8f7ac23b25811a34d88b442855890a9 +++ src/monotone/FileExporter.cpp d8087880b51ff392994479f8719c54b7ac7dce91 @@ -107,6 +107,13 @@ bool FileExporter::exportFile(const File } I(file.write(out.getOutput())); + + if (entry.attrs.contains("mtn:execute") && + entry.attrs.value("mtn:execute") == "true") + { + file.setPermissions(file.permissions() | QFile::ExeOwner | QFile::ExeUser); + } + file.close(); return true;