+1
192 次瀏覽

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 點) 提出
已重新顯示 | 192 次瀏覽

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 次瀏覽
大約十年前,一位同事的電腦在剛開始使用 Paratext 搭配 Mercurial 版本控制(Send/Receive)時,對日期做了些奇怪的處理 大約 10 個提交的日期在 Paratext 中顯示為 2038 年,但在其他 Mercurial 軟體中 ... ,有任何建議嗎?其他人認為向 Paratext 提出功能請求以調整歷史顯示的排序順序是否值得嗎?
rowbory 510 提出 已提問 5月 16, 2022
0
2 個回答 35 次瀏覽
當我嘗試執行「尋找與取代」(Find and Replace)(或 RegEx Pal,或檢視節的歷史記錄)時,Paratext 似乎正在執行某些高負載的作業 因為在我們超過 20 年的專案歷程中,這個過程變得越來越慢,我懷疑這是否是因為儲存 ... 無關緊要 我們是否可以重新基底化我們的專案(假設是在 Paratext 伺服器上)?或者這並不是問題所在?
Bub 105 提出 已提問 9月 4, 2025
+1
2 個回答 40 次瀏覽
我妻子的筆記型電腦最近硬碟故障了,所以我正在從頭開始設定 在經歷了幾年的 Windows 使用挫折後,她希望將主要作業系統改回 Linux,但作為顧問,她需要圖示(logos)以及 Paratext 的完整副本 因此,我將 ... 新安裝),還是存在某種根本性問題,導致 Windows 版本的 Mercurial 無法在基於 Linux 的文件系統上運行?
DG 1.1k 提出 已提問 2月 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 提出 已提問 5月 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 提出 已提問 11月 10, 2017
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
How good and pleasant it is when God’s people live together in unity!
Psalm 133:1
3,046 個問題
6,006 個回答
5,671 則評論
2,027 位使用者