2

I just found out this nice SVN option that would be very useful on our project, but yet again I'm having problems integrating it with word files, .docx to be exact.

I am using Tortoise client. If I create .txt file with $Rev$ content in it and put SVN property on it with Rev it works like a charm, in other words when I commit the change in the content of the file itself gets updated. When I use the same in .docx document, nothing happens. Has to be because it's not a textual file but binary?

Is there a way to integrate propset command for .docx files? People here don't have problems it seems, didn't work for me tho:( Click Ps: I also tried .doc files, same result.

Thanks for your replays.

4

2 回答 2

4

由于 doc 和 docx 文件实际上是二进制文件,而不是文本,所以不能使用 svn 属性来扩展关键字。它可能适用于 doc 文件,但您可能会以这种方式损坏这些文件。它绝对不适用于 docx 文件,因为它们基本上是压缩的 xml 文件,并且在压缩文件中,关键字不再以纯文本形式存在。

但是你可以试试这个

于 2010-10-18T15:12:16.470 回答
1

选项:

  1. 将文件另存为 .xml 而不是 .docx;尽管您的文件变得更大(未压缩),但您可以使用 svn 压缩节省空间,比二进制文件更有效,我希望
  2. 在 word 文档的属性中插入您的 snv 关键字(例如 $Rev$)(使用 File-Info,右窗格中的属性)
  3. 使用字段显示文档中的信息:Isert-Quick Parts-Document Property,例如

这似乎对我有用。

于 2013-12-18T15:48:15.673 回答