大约 10 年前,一位同事的电脑在开始使用 Paratext 和 Mercurial 版本控制(Send/Receive)时,对日期进行了一些奇怪的操作。Paratext 中大约 10 个提交的日期显示为 2038 年,但在其他 Mercurial 软件中显示为 2095 年。虽然修订号较低,但 Paratext 似乎是根据日期对历史进行排序的,在这种情况下这非常令人烦恼。更改已发布存储库中旧提交的日期似乎是不可能的。那么,我们是否有任何解决方案,无论是在 Paratext 内部,还是使用 TortoiseHg 或其他工具,来摆脱这些无用的提交?它们太旧了,没有任何价值,但我似乎无法摆脱它们。
image 403×626 130 KB
image 618×784 65 KB
解决方案似乎是以下之一:
删除所有历史(不理想但容易实现)
Paratext 将历史菜单中的排序顺序更改为基于修订号而不是日期(仅为一个项目这样做不值得)
使用某种 hg 魔法来更改(已发布的)提交,无论是使用 rebase、collapse、evolve、histedit 还是其他方法。
我在这里写下这些,以防其他人有类似的问题,也因为有两个想法可能成为 Paratext 团队的功能/开发请求。
我注意到,如果计算机日期有可能出错,Paratext 中的历史列表(尤其是 compare texts)按日期排序时不仅无帮助,而且可能具有危险性。底层的 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.
image 403×626 130 KB
image 618×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 显示原文