This is perhaps a question of strategy more than anything else. I am new to version control and I guess I should count myself lucky to have relatively more mature systems like Mercurial and Git at my disposal as compared to the older systems.
I started with Hg because I read somewhere that it's more Pythonlike in its approach. The few tutorials that I went through (examples and videos) consistently use the command hg add *. After using that command for some time now on my project, I have a long list of files which have ! in front of the files that have been deleted. I am speaking of the output of the command hg st of course.
I guess using hg addremove * will solve my problem. If that's the case, why isn't it the default command to teach Hg to a beginner? Is there a pitfall I am missing? Wouldn't it be reasonable to assume that typically a person working on a folder would want the files which are deleted to visibly disappear from the output of hg st (esp. since they are stored in the repository by Hg anyways)?
Aucun commentaire:
Enregistrer un commentaire