如何从 Subversion 存储库获取文件所有版本的副本?
我们有一个自定义字体 (ttf),已添加到 subversion 存储库中。我们检测到某些字符存在问题,但不确定问题何时出现。该文件当然是一个二进制文件,因此没有文本差异可供比较,我们只需要将其与其他项目文件包含在一起并对其进行版本控制。无论如何,我想从存储库中检索该文件的所有版本。我可以访问 TortoiseSVN(适用于 Windows)和 Cornerstone(适用于 Mac);不过,我也很喜欢使用终端。如何检索已签入 Subversion 的每个版本的字体的 ttf 文件?
We have a custom font (ttf) that we added to a subversion repository. We've detected a problem with certain characters and are not sure when the problem was introduced. The file is of course a binary file, so there are no text differences to compare, we just needed contain it with the other project files and version it. Anyhow, I'd like to retrieve all versions of the file from the repository. I've got access to TortoiseSVN (for Windows) and Cornerstone (for Mac); however, I'm also comfortable using the Terminal. How can I retrieve a ttf file for every version of the font that got checked into subversion?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这有点粗糙,我确信还有更优雅的解决方案,但它可以完成工作。适当设置 GRAB_FILE 和 GRAB_FROM_REV。
This is a little crude and I'm sure there are much more elegant solutions out there but it does the job. Set GRAB_FILE and GRAB_FROM_REV appropriately.
如果您使用 TortoiseSVN,您可以非常简单地做到这一点:
显示字体文件的日志。您将看到更改该特定文件的修订版本列表。右键单击任何这些修订版本,然后只需从上下文菜单中选择“另存为...”,您将获得该修订版本中的文件。
If you're using TortoiseSVN, you can get this very easy:
Show the log for the font file. You will see a list of revisions where that particular file was changed. Right-click on any of those revisions, then just choose "Save as..." from the context menu and you'll get the file as it was in that revision.