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
consider the case when branches were deleted / update lastRev after changed added to the database (avoid adding duplicated)
force form branch selection
remove strict check on choices since we are going to construct them dynamically
use only the default value (not a select) if no codebases are selected