大約十年前,一位同事的電腦在剛開始使用 Paratext 搭配 Mercurial 版本控制(Send/Receive)時,對日期做了些奇怪的處理。大約 10 個提交的日期在 Paratext 中顯示為 2038 年,但在其他 Mercurial 軟體中卻顯示為 2095 年。雖然修訂編號較低,但 Paratext 似乎是以日期排序來顯示歷史記錄,這在這種情況下非常令人困擾。要更改已發布儲存庫中舊提交的日期似乎是不可能的。所以我們有任何解決方案嗎?無論是在 Paratext 內部,還是使用 TortoiseHg 或其他工具,來擺脫這些無用的提交?這些提交太舊了,沒有增加任何價值,但我似乎無法移除它們。

image403×626 130 KB

image618×784 65 KB
解決方案似乎應該是以下之一:
- 移除所有歷史記錄(不理想但容易實現)
- Paratext 將歷史選單中的排序順序改為基於修訂編號而非日期(僅為一個專案這樣做不值得)
- 使用某些 hg 魔法來更改(已發布的)提交,無論是使用 rebase、collapse、evolve、histedit 或其他方法。
我在此提出這個問題,以防其他人有類似的問題,也是因為有兩個想法可能成為 Paratext 團隊的功能/開發請求。
- 我注意到,如果電腦日期有可能出錯,Paratext 中的歷史列表(特別是比較文本)按日期排序時不僅無助,而且可能具有危險性。底層的 Mercurial 系統有一種方法可以獨立於提交日期來排序修訂。MacHg 和 TortoiseHg 都能以正確的順序顯示修訂,同時還顯示
- 目前列出具有漫長變更歷史的書卷的 UI 變得相當繁瑣,或許可以使其更有用,以便追蹤變更。
那麼,關於我如何協助修正我同事的專案,有任何建議嗎?其他人認為向 Paratext 提出功能請求以調整歷史顯示的排序順序是否值得嗎?
A colleague’s computer did weird things to the date about 10 years ago as his project was getting started using Paratext with mercurial version control (send/receive). The dates of about 10 commits display as 2038 in Paratext but in other mercurial software show as 2095. Though the revision number is lower it seems Paratext displays history by sorting on the date and this is really annoying for this case. Changing the date of an old commit on a published repository seems impossible. So do we have any solutions whether within Paratext or with TortoiseHg or anything else, to get rid of these useless commits? They are so old that they don’t add anything, but I can’t seem to get rid of them.

image403×626 130 KB

image618×784 65 KB
The solution would seem to be one of
- Remove all history (undesirable but easily achievable)
- Paratext changes its sort order in the history menu to be based on revision number not date (not worth doing just for one project)
- Some hg magic to change the (published) commits, whether using rebase, collapse, evolve, histedit or something.
I write this here in case others have a similar problem and also because of 2 thoughts which might form feature/dev requests for the paratext team.
- It strikes me that the history listings in Paratext (especially compare texts) are unhelpful and potentially dangerous when ordered by date if there is a possibility of any computer dates ever being messed up. The underlying mercurial system has a way of ordering revisions independently of commit date. MacHg and TortoiseHg both display the revisions in the correct order, while also showing
- The current UI for listing books with a long change history gets quite cumbersome and could possibly be made more useful for trying to track down changes.
So is there any advice about how I can help fix my colleague’s project? Anyone else think that a Paratext feature request to adjust the sort order of the history display might be worthwhile?
機器翻譯自 English