在 Screwturn wiki 站点中创建 Mercurial 存储库是个好主意吗?

发布于 2024-09-24 16:11:52 字数 262 浏览 2 评论 0原文

我有两个 ScrewTurn wiki 文档站点,用于我们的系统和用户文档。我的想法是在每个 wiki 站点根目录中创建一个 Mercurial 存储库。然后,每天安排一个流程添加新文件并将更改提交到存储库,并将更改集推送到备份存储库。

我意识到,默认情况下,ScrewTurn 会创建所有更改文件的副本,因此具有自己的更改跟踪,但我正在考虑关闭该行为。

我相信这会给我比默认行为和自动备份更好的版本控制。

我是否遗漏了一些注意事项?这是个好主意吗?一个坏主意?

I have two ScrewTurn wiki documentation sites that are used for our system and user documentation. My idea is to create a Mercurial repository in each wiki site root directory. Then on a daily basis have a scheduled process add new files and commit changes to the repository and push the changeset to a backup repository.

I realize that, by default, ScrewTurn creates copies of all changed files and therefore has its own change tracking but I am considering turning that behavior off.

I beleive this would give me better version control than the default behavior and an automated backup.

Are there some considerations that I am missing? Is this a good idea? A bad idea?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

苹果你个爱泡泡 2024-10-01 16:11:52

我对螺丝转动一无所知,但只要它的文件存储为文本并且您可以禁用修订跟踪,那么水银备份就是一个不错的选择。当然,您只能访问 cron 作业时存在的修订,但这也意味着您不会丢失超过 24 小时的编辑工作。

顺便说一句,mercurial 的主要作者 mpm 过去曾讨论过使用 DVCS 系统作为 wiki 系统的后端,但总体上并不赞成这个想法。如果我没记错的话,他的逻辑是,使用为一次仅更改一页的内容获取全局锁的数据存储没有多大意义。但是,这仅适用于您在每次更改后进行提交的情况;你每晚承诺的计划不存在这个问题。

另外,我是 rdiff-backup 的忠实粉丝,它以磁盘可浏览的方式执行节省空间的夜间快照。

I don't know anything about screwturn, but so long as its files are stored as text and you can disable revision tracking then mercurial backups are a fine option. You'll of course only have access to revisions that existed at the time of your cron job, but that also means you won't ever lose more than 24hs editing work.

Incidentally, mpm, mercurial's primary author, has talked about using DVCS systems as the backends for wiki systems in the past and was generally not-in-favor of the idea. If I recall correctly his logic was that using a datastore that acquires a global lock for something that's changed only a page at a time doesn't make much sense. However, that would only apply if you were committing after each change; your plan to commit nightly doesn't have that problem.

Alternately, I'm a big fan of rdiff-backup, which does space-efficient nightly snapshots in a disk-browsable manner.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文