My co-workers have a Java project on Bitbucket. recently I need to run their project. SO I use TortoiseHg to pull the project. 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?
Share
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)
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 pullhg status --rev x:tipThis is the status between the revision you built last (replace
xwith this number) and tip. 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.