Mercurial-忽略大文件 [英] Mercurial - Ignoring Large files

查看:65
本文介绍了Mercurial-忽略大文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道有一种方法可以使hgignore忽略特定文件.

I know there is a way to get mercurial to ignore specific files using hgignore.

有没有办法让它忽略所有超过一定大小的文件?

Is there a way to get it to ignore all files above a certain size?

谢谢

推荐答案

不幸的是,.hgignore中的匹配仅通过文件命名即可完成.但是,没有什么可以阻止您编写一个预先提交的挂钩,该挂钩会根据文件的大小自动创建(附加).hgignore文件.

Unfortunately matching in .hgignore is done just by filenaming. However, nothing prevents you from writing a pre-commit hook that autocreates (appends) .hgignore files based on their size.

这篇关于Mercurial-忽略大文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆