Monday, November 23rd, 2009
Here’s my Mercurial .hgignore template for xcode/cocoa projects.
syntax: glob
.DS_Store
# Backup files left behind by the Emacs editor.
*~
# Lock files used by the Emacs editor.
.\#*
# Temporary files used by the vim editor.
.*.swp
# Temporary files used by TestMate
._*
# build directories
**/build/*
build/*
# XCode user data
**.pbxuser
**.mode?v?
**.perspectivev?
# documentation
**.docset/*
# for those crazies using svn and hg at the same time
*.svn* |
Tags: Mercurial
Posted in Source Control | Comments Off
Tuesday, July 28th, 2009
There’s certain files and folders that you don’t want to put into source control. With Mercurial all you need is a .hgignore file in the root path of your project. A simple windowsy way of doing this is (from a command line) is by typing
notepad c:\path_to_code\.hgignore
This will create the file so now simply add the following lines to the file:
# use glob syntax.
syntax: glob
# Misc Mac/Windows stuff
.DS_Store
Thumbs.db
Desktop.ini
# builds
*.exe
*.ex_
# vb6
*.SCC
*.vbw
*.pdb
*.log
*.Log
# c-sharp
#ProjectName/bin
#ProjectName/obj
*.user
*.suo
_ReSharper.*
*.sln.cache |
Note: You need to change #ProjectName to your project foldername.
Now feel free to init/add/commit:
hg init
hg add
hg commit -m "Initial Commit with ignores" |
Tags: Mercurial
Posted in Source Control | Comments Off