Граф коммитов

18 Коммитов

Автор SHA1 Сообщение Дата
Spencer Nelson 960d21a5fa Handle bazaar revisions by talking to the actual repo
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.
2017-08-28 11:03:51 -04:00
Spencer Nelson dfb871980f Change commitInfo to disambiguateRevision
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.
2017-08-17 14:32:55 -04:00
Spencer Nelson 531fb9ce9b Parse abbreviated git revisions
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.
2017-08-17 11:16:07 -04:00
Ibrahim AshShohail 216ca2e27f
internal/gps: add tests to bzrSource.exportRevisionTo and hgSource.exportRevisionTo
Signed-off-by: Ibrahim AshShohail <ibra.sho@gmail.com>
2017-07-28 12:38:12 +03:00
Ibrahim AshShohail a8650d3e1f
internal/gps: remove vcs (bzr & hg) directories from vendor/
Fixes #887

Signed-off-by: Ibrahim AshShohail <ibra.sho@gmail.com>
2017-07-24 19:11:17 +03:00
Miguel Molina 044b1dd0f2
use different timeouts for all vcs commands
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>
2017-07-22 00:47:21 +02:00
Jordan Krage cb7df4a61c rename UnpairedVersion.Is() to Pair() 2017-06-14 09:44:59 -05:00
Jordan Krage 7a73e5ddad rename PairedVersion.Underlying() to Revision() 2017-06-14 09:40:36 -05:00
Jordan Krage 9f9a32e145 spelling 2017-05-25 08:12:56 -05:00
Ibrahim AshShohail 4b2c26eb27
Merge branch 'master' into consolidate-fs-files
Signed-off-by: Ibrahim AshShohail <ibra.sho@gmail.com>
2017-05-23 19:39:35 +03:00
sam boyer e0c7ec3db0 Merge pull request #587 from sectioneight/handle-gopkg-unstable
Add support for -unstable gopkg.in imports
2017-05-21 22:43:59 -04:00
Aiden Scandella c4e1427f70
Update tests and ignore unstable semver tags 2017-05-21 10:45:31 -07:00
Ibrahim AshShohail 4cd28ce73b
Merge remote-tracking branch 'upstream/master' into consolidate-fs-files 2017-05-19 12:07:15 +03:00
Aiden Scandella 87d96cf3e4
Handle both cases 2017-05-18 13:40:58 -07:00
Aiden Scandella ee9379e56b
Add support for -unstable gopkg.in imports 2017-05-16 15:02:38 -07:00
mstrong e6442396d5
Updating mastermind semver 2017-05-13 23:01:29 -04:00
Ibrahim AshShohail f87d614e17 consolidate fs.go, internal/fs.go and gps/internal/fs/fs/.go into internal/fs 2017-05-10 20:37:13 +03:00
Dave Cheney 9ea8489e5e gps: move gps to internal/gps
Fixes #300
Fixes #519
2017-05-10 14:15:27 +10:00