'hg 条'创建的补丁已损坏
我使用 hg strip
从我的历史记录中删除了一些提交。 现在我想重新应用在 strip 命令期间作为备份制作的补丁: .hg/strip-backup/68a8f24f62d0-backup.hg
不幸的是,当我尝试推送补丁时,补丁似乎已损坏:
$:~/sc2$ hg init --mq
adding .hg/patches/68a8f24f62d0-backup.hg
68a8f24f62d0-backup.hg: up to 582 MB of RAM may be required to manage this file
(use 'hg revert 68a8f24f62d0-backup.hg' to cancel the pending addition)
$:~/sc2$ hg qpush
applying 68a8f24f62d0-backup.hg
patch 68a8f24f62d0-backup.hg is empty
transaction abort!
rollback completed
cleaning up working directory...done
abort: decoding near 'h91AY&SY݁��S������': 'utf8' codec can't decode byte 0xb1 in position 16: invalid start byte!
有人已经遇到此问题或者可以给我建议如何应用补丁吗?如果不可能的话,我就完蛋了……
也许这是一个Python问题?
我尝试了 hg unbundle 并得到了这个:
adding changesets
adding manifests
adding file changes
transaction abort!
rollback completed
abort: received file revlog group is empty
如果我执行 hg pull:
pulling from 68a8f24f62d0-backup.hg
searching for changes
adding changesets
transaction abort!
rollback completed
abort: data/sc2-local.tar.i@2cad29d699f8: no node!
那么如何解决节点问题?
海因里希
I used hg strip
to remove some commits from my history.
Now I want to reapply the patch that was made as backup during the strip command: .hg/strip-backup/68a8f24f62d0-backup.hg
Unfortunately when I try to push the patch, it seems that the patch is corrupted:
$:~/sc2$ hg init --mq
adding .hg/patches/68a8f24f62d0-backup.hg
68a8f24f62d0-backup.hg: up to 582 MB of RAM may be required to manage this file
(use 'hg revert 68a8f24f62d0-backup.hg' to cancel the pending addition)
$:~/sc2$ hg qpush
applying 68a8f24f62d0-backup.hg
patch 68a8f24f62d0-backup.hg is empty
transaction abort!
rollback completed
cleaning up working directory...done
abort: decoding near 'h91AY&SY݁��S������': 'utf8' codec can't decode byte 0xb1 in position 16: invalid start byte!
Has someone had this problem already or can give me an advice how to apply the patch? If it is not possible I am more than screwed ...
Maybe this is a python problem?
I tried hg unbundle and get this:
adding changesets
adding manifests
adding file changes
transaction abort!
rollback completed
abort: received file revlog group is empty
If I do hg pull:
pulling from 68a8f24f62d0-backup.hg
searching for changes
adding changesets
transaction abort!
rollback completed
abort: data/sc2-local.tar.i@2cad29d699f8: no node!
So how can I fix the node problem?
Heinrich
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
从
hg help strip
的输出:这个简单的演示会话演示了strip和unbundle命令的使用:
From the output of
hg help strip
:This simple demo session illustrates the use of the strip and unbundle commands:
我就这个主题与 Matt Mackall(Mercurial 主要作者)进行了一些接触,我们发现了 Mercurial 中的一个错误:
Mercurial 实际上无法处理大于 2^31-1 字节的文件,即 ~2GB,因为有符号整数是用于保存尺寸。但是,如果您添加较大的文件(我所做的),mercurial 不会拒绝它们,而是照常添加。对文件大小的唯一检查似乎是在推送到服务器时。然而,我在这里只收到了一个警告和一个永无止境的
hg Push
。马特·麦考尔 (Matt Mackall) 在邮件对话中引用的话:
I had some contact with Matt Mackall (Primary Mercurial Author) on this topic and we figured out a bug in Mercurial:
Mercurial actually is not able to handle files larger than 2^31-1 Bytes, which are ~2GB, as signed ints are used for saving the size. However, if you add larger files (what I did) mercurial won't reject them but add as usual. The only check for the file size seems to be when pushing to the server. However, I only got a warning and a never ending
hg push
here.Quote by Matt Mackall from the mail conversation: