简体   繁体   English

每次从Merurial存储库中提取Java项目时,我都需要重建Java项目吗?

[英]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.

相关问题 我需要在这里重新构建Java吗? - Do I need a rebuild for Java here? 每次启动Tomcat服务器时,是否需要重建整个项目? - Do I need to rebuild the whole project everytime I start Tomcat server? 如果我从大小变化中派生出java对象,是否需要重建? - Do I need to rebuild if a java object I derive from changes in size? 我需要每次都创建一个 DocumentBuilderFactory 吗? - Do I need to create a DocumentBuilderFactory everytime? JAVA:更新context.xml中的密码后是否需要重建应用程序? - JAVA: Do i need to rebuild an application after updating password in context.xml? Java 和 Docker 的缓慢开发工作流程/反馈循环:我是否需要在每次更改后重建 JAR 和图像? - Slow development workflow/feedback loop for Java with Docker: do I need to rebuild the JAR and image after every change? 每次我执行 repository.save() 时,LocalDateTime 都会更新 4 小时 - LocalDateTime getting updated by 4 hours everyTime I do repository.save() 每次使用扫描仪 object 时都需要关闭它吗? - do I need to close a scanner object everytime I use it? 每次引用转换后的 object 时是否需要使用括号? - Do I need to use parentheses everytime I reference a casted object? 我如何在Java中使用正则表达式从html中提取正则表达式? - How do I use regex in Java to pull this from html?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM