[英]do i need to rebuild java projects everytime I pull it from a mercurial repository?
My co-workers have a Java project on Bitbucket. 我的同事在Bitbucket上有一个Java项目。 recently I need to run their project.
最近我需要运行他们的项目。 SO I use TortoiseHg to pull the project.
所以我用TortoiseHg拉这个项目。 Should I rebuild the whole project which consists of 6 sub-projects every time I pull the project codes from the repository, assuming there're changes in the codes?
假设代码发生更改,我每次从存储库中提取项目代码时,是否都应该重建由6个子项目组成的整个项目?
It sounds like your co-workers have multiple projects in one repo which is not the intended use of mercurial ( See One Project One Repository: Mercurial Used Right ) 听起来您的同事在一个回购中有多个项目,这不是Mercurial的预期用途( 请参阅一个项目一个存储库:Mercurial Used Right )
Since you are most likely not going to get them to fix that anytime soon you probably are safest rebuilding the entire all projects if they don't take too long. 由于您很可能不会很快让他们修复该问题,因此,如果花费的时间不长,则重建所有所有项目可能是最安全的方法。
Otherwise what you can do is 否则,您可以做的是
hg pull
hg status --rev x:tip
This is the status between the revision you built last (replace x
with this number) and tip. 这是您上次构建的修订版本(用该数字替换
x
)和提示之间的状态。 This should show you all the files that changed since you last built. 这应该显示自上次构建以来已更改的所有文件。 Now you can see which projects those are in, then only build the changed projects.
现在,您可以查看这些项目所在的项目,然后仅构建更改的项目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.