2

TortoiseSVN allows you to view changes to MS word documents via some clever VB scripting (I think). If you try and make a patch file though, you get:

Index: MyDocument.docx
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

Is there any way to create a patch file of the changes which the VBA script could understand?

Jon Cage
  • 36,366
  • 38
  • 137
  • 215
  • 1
    This would be really interesting if it were possible, but patching a DOCX file is like asking for a way to diff a ZIP file in a meaningful way. I wouldn't hold my breath. – vcsjones Jun 14 '11 at 09:44
  • My thoughts exactly. I just figured that if the VB script was capable of displaying the changes maybe someone knew a way to transport the information in a meaningful way. – Jon Cage Jun 14 '11 at 10:35
  • Interestingly, a DOCX file actually IS a ZIP file. I found some more on a similar topic here: http://stackoverflow.com/questions/1320654/will-subversion-efficiently-store-openxml-office-documents – Jon Cage Jun 14 '11 at 13:28
  • Another relevent post: http://stackoverflow.com/questions/29810/is-version-control-ie-subversion-applicable-in-document-tracking#29837 ...not sure how I missed those two! – Jon Cage Jun 14 '11 at 13:42
  • That's why I said it would be like diffing a ZIP file :-) – vcsjones Jun 14 '11 at 14:19

0 Answers0