+1
187 次浏览

WARNING: This question involves messing with aspects of Paratext that weren’t intended to be messed with by the developers. Don’t try this at home!

Background:
Our project decided to use the migration from PT7 to PT8 to correct a number of long-time problems we’ve had. Namely, to remove a number of sensitive usernames from the project and to change the project shortcode to something sensible (before it was a somewhat random name). In the process of using the Convert tool inside of PT, I discovered that there were some problems within the Mercurial data in our project history, and these problems kept the conversion process from completing. I worked with the developers for a while, but determined that no matter what I tried I couldn’t get the Convert tool to succeed (and each attempt was taking 12+ hours).

Solution:
In researching Mercurial, I discovered that you can trim early history from the project (using the convert.hg.startrev command). Note that unlike things like the backout command that rolls back the most recent changes, the convert.hg.startrev tool rewrites the hash codes of each revision–meaning that the new repository is completely unique from the old one and can never be merged with it. I acknowledge that, but since we’re switching from PT7 to PT8 and moving from one project shortcode to another, this seems like a good time to create a ‘new’ Mercurial database.

Note that other than me, the tech guy for the project, almost no one in our team ever uses the project history feature in Paratext. This process won’t change the notes, which is really the invaluable history for our team.

I understand that we will no longer have edit history prior to my cutoff date (I’m trimming our revisions from 32,000 down to about 1,000), although if absolutely necessary I’d still have access to the old data via the old project in PT7.

Question:
Can anyone think of any potential problem caused by removing project history which I haven’t considered?

较早的帖子 - 以原始语言显示
Paratext (1.9k 分) 发布
已重新显示 | 187 次浏览

1 个回答

+1
最佳答案

If your project is using Project Progress, it stores Mecurial revision IDs when chapters are marked as complete for each stage. These are used for both a time of completion and to allow the ability to see what has changed since it was marked as complete (in the Compare Texts tool). If any of these revision IDs referred to one that was deleted, you will at least lose that information. At worst it will crash PT when accessing the project progress data for the completed chapters of a stage.

The best way to mitigate this is to just run the tool to fix them as it won’t affect anything that is not broken. You can run this tool by clicking [Hold Shift] Help > Advanced > Fix Missing Progress Revisions and choose Yes when it asks you if you want to reset to the start of the project. The down side to this is that your finished progress will now have the date of the first revision in the project and not when it was actually finished.

EDIT: It will also skew your progress data completion graphs, etc. since it will look like you started the project with a bunch of stuff already finished.

Beyond that, I don’t think the Mercurial revisions are used for anything else besides looking at the Project History (which should handle the removal of those revisions just fine).

较早的帖子 - 以原始语言显示
[Expert]
(16.7k 分) 发布

已重新显示

Thanks for this. We’re not using Project Progress at this time, but this is the sort of issue I knew I wouldn’t think of. So far it seems like we can do this.

较早的帖子 - 以原始语言显示

相关问题

0
1 个回答 311 次浏览
大约 10 年前,一位同事的电脑在开始使用 Paratext 和 Mercurial 版本控制(Send/Receive)时,对日期进行了一些奇怪的操作 Paratext 中大约 10 个提交的日期显示为 2038 年,但在其他 Mercurial 软件 ... ,有什么建议吗?其他人是否认为向 Paratext 提出调整历史显示排序顺序的功能请求是值得的?
rowbory 510 发布 提问于 五月 16, 2022
0
2 个回答 35 次浏览
当我尝试执行查找和替换(Find and Replace)(或使用 RegEx Pal 或查看节历史 View History on verse)时,Paratext 似乎正在执行某种密集型操作 因为在我们这个 20 多年的项目中,这个过程越 ... 可以对我们的项目进行 rebase(变基)(大概是在 Paratext 服务器上)?还是说问题根本不在于此?
Bub 105 发布 提问于 九月 4, 2025
+1
2 个回答 40 次浏览
我妻子的笔记本电脑最近发生了硬盘故障,所以我正在从头开始设置 在运行 Windows 几年并感到沮丧后,她希望回到 Linux 作为主要操作系统,但作为一名顾问,她需要 Logo 和 Paratext 的完整副本 因此,我 ... 新安装),还是存在某种根本性问题,导致 Windows 版本的 Mercurial 无法在基于 Linux 的文件系统上运行吗?
DG 1.1k 发布 提问于 二月 13
0
2 个回答 342 次浏览
I posed it as a question, but my intention is to give the answer: From time to time, whether the user has an ... mercury.) - Developers, please correct any errors in the above.
wdavidhj 1.4k 发布 提问于 五月 14, 2019
0
2 个回答 322 次浏览
Last day of a PT8 Migration workshop. We needed to delete the User1 PT8 account. After we made User 2 admin on ... redo the migration, but I would rather not. Thanks, listentwice
listentwice 1.2k 发布 提问于 十一月 10, 2017
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
If anyone destroys God’s temple, God will destroy that person; for God’s temple is sacred, and you together are that temple.
1 Corinthians 3:17
3,046 个问题
6,006 个回答
5,671 条评论
2,027 位用户