A step-by-step guide to Mercurial projects for the iPhone?

I'm looking for a Mercurial step by step guide for iPhone projects . Let's assume:

  • hg

    already installed
  • the audience is comfortable with the command line
  • everything on OS X

As a beginner, I am especially interested in:

  • which files should be excluded
  • how to exclude files above.
  • naming creation guide / suggestion
  • any relevant experience to share with

Please do not discuss what is hg

better / worse than any other SCS. This is a question as a question asked, not why.

Thanks!

+2


a source to share


2 answers


Files that you should exclude the following: .DS_Store build *.mode1v3 *.pbxuser

. You can also always ignore the material of other SCS like .git

and .svn

. I also ignore .LSOverride

which is in some of my projects as I have multiple developer tools installations (for SDK beta) and sometimes need to override the default behavior of the launcher service.



These files can be ignored by specifying them in a file .hgignore

at the root of the working directory. The file .hgignore

must be created manually. It is usually under version control, so customizations will be propagated to other repositories using push and pull [ 1 ].

+1


a source


The more general exception tip that applies to all source control systems is that it is very helpful to configure Xcode to use a shared build directory somewhere far from the source code. I prefer to use / Users / Shared / builds /, but it can go anywhere. The best part is that you don't have to worry about excluding build products from hg, and this also allows you to exclude them from backups.



You can set this in Xcode preferences under "building".

+2


a source







All Articles