factored out the code to check how many heads a repository has.
factored out the code to check how many heads a repository has.

KaranDagar/FSE-2011-Crystal---old,SoftwareEngineeringToolDemos/FSE-2011-Crystal,KaranDagar/crystalvc,brunyuriy/crystalvc,KaranDagar/crystalvc,KaranDagar/FSE-2011-Crystal---old,SoftwareEngineeringToolDemos/FSE-2011-Crystal,brunyuriy/crystalvc,SoftwareEngineeringToolDemos/FSE-2011-Crystal