check if projects are defined in configuration
fix hgpoller keep inserting the change set
changed function named to_int -> addOid
fix failing tests - some tests were expecting an int value

some tests were expecting an int value and string was return
On first run, use head:head as range of changes, not 0:head

Fixes #2404.
new customizations for hgpoller (automatic branch tracking)
poller automatic branch recognition filtering by regex
adjust test to correspond changes
git poller tracking branches automatically (half way of it)
git poller tracking branches
remove -r parameter of hg heads
remove print statements
removing extra spaces from result
select branches from database (codebases selection page)
sort list
check we have found repository branches in the database to update it