ignore file for Mercurial and Unity
by Dave Buchhofer on Nov.15, 2011, under Scripting, Unity, Unity3D
here’s a working ignore file for use of Unity and Mercurial simple, but slightly different from the instructions posted in the current docs, so figured i’d pass it on for anyone else who cares to check it out.
placed in a plain text file named .htignore in your project directory
syntax: glob *.tmproj *.pidb *.sln *.userprefs *.csproj *.unityproj AnnotationManager assetDatabase3 AssetImportState assetservercachev3 AssetVersioning.db BuildPlayer.prefs BuildSettings.asset EditorSettings.asset EditorUserBuildSettings.asset expandedItems FailedAssetImports.txt guidmapper InspectorExpandedItems.asset MonoManager.asset ScriptMapper cache/* Temp/* metadata/* ScriptAssemblies/* previews/*
The Mercurial in Daily Use guide seems to be a good list of things that you might wish to do
Some notes for myself, but might be useful to someone else getting started also.
edit: To start a local serve on my workstation that my laptop can push to, use the command line
hg serve –config web.push_ssl=No –config “web.allow_push=*”to pass your changes up from the laptop to the workstation:
hg push http://workstationname:8000and on the workstation use:
hg updateto get the latest updated file revisions locally..
and you’re sync’d. fun times.












December 1st, 2011 on 10:16 am
Note: Instead of using the command line to add the options to the repository, you can alternately open the hgrc file in the .hg directory and add the following lines:
[web]
allow_push = *
push_ssl = false
December 1st, 2011 on 11:02 am
first painful merge experienced, apparently serving it up on OSX (Homework) and trying to merge back into windows (Workwork) causes a somewhat painful Case Folding Collision.
some details on how to fix it for anyone else who runs into the problem: http://www.softwareprojects.com/resources/programming/t-how-to-fix-mercurial-case-folding-collision-1937.html
January 11th, 2012 on 9:35 am
now as of 3.5 beta 6 you can simple ignore everything that is not in the Assets/ or ProjectSettings/ directories.
much nicer!
March 20th, 2012 on 8:48 pm
This post is now outdated, just incase anyone ends up here!
check the new docs as of unity 3.5