Optimizations for Subversion and Mercurial

Merged Johann Dreo requested to merge github/fork/dolmen/fix/optimize-SCM into master

Created by: dolmen

Improves implementation of _lp_svn_branch_color and _lp_hg_branch.

In particular _lp_svn_branch_color does not parses XML anymore (svn status --xml) and use less external commands. Also an option is introduced (LP_SVN_STATUS_OPTS) to allow the user to change the depth at which status are checked. Anyway, svn status is slow if the tree is deep, we can't do much about it.

Merge request reports