String parsing was a little error prone, so we'd prefer to ask the
bazaar repository whether a particular string is a valid revision ID.
To do this, we need a very slightly custom version of
disambiguateRevision for *bzrSource.
This revision also refactors TestSourceManager_InferConstraint pretty
dramatically to let it work on repositories coming from different
VCSes.
commitInfo returned a struct from an external package. This coupling isn't
ideal, and we wouldn't use the extra info for anything. It's better to just have
a method for exactly what we want, which is disambiguation of short revision
specifiers.
While dep doesn't want to encourage the use of abbreviated git commit
identifiers, they come up frequently when we parse vendoring specifiers (like
glide.yaml) of existing projects. We should give a shot at parsing these and
then expanding them to their unabbreviated form.
both `runFromRepoDir` and `runFromCwd` accept now a timeout to control
the timeouts of the underlying `monitoredCmd`, instead of having a
hardcoded timeout of 2 minutes for all commands.
This will allow better tuning of the timeouts on a per-command basis.
Signed-off-by: Miguel Molina <miguel@erizocosmi.co>