Commit Graph

14 Commits

Author SHA1 Message Date
Gustavo Niemeyer
cac38eedcd Support vN-unstable branches and tags.
Fixes #25.
2015-01-09 15:54:39 -02:00
Nathan Youngman
2ed03dbf05 revisions based on @niemeyer's review 2014-09-24 17:44:47 -06:00
Nathan Youngman
06fff2f2c8 add a few comments 2014-09-23 22:22:44 -06:00
Gustavo Niemeyer
f9c08a5b59 Fix Version.IsValid.
Fixes #15.
2014-07-01 10:44:54 -03:00
GeertJohan
7f05a9823c Use one-line formatting for VersionList sort.Interface implementations 2014-04-05 01:30:33 +02:00
GeertJohan
f2f6cbda4e Add interface page.
Add VersionList ([]Version) implementing sort.Interface.
Changed hackedRefs to also return a VersionList holding all valid versions for a repo.
Change Repo struct to hold parts and added methods to construct useful strings from those parts.
Comment out the whole nameHasversion() thingie. It was noted as obsolte made it harder to create clean Repo struct.
2014-04-05 00:00:31 +02:00
GeertJohan
ed9d42974f Check for integer overflow in parseVersionPart 2014-04-02 21:51:40 +02:00
GeertJohan
8be904041c Revert "Use strconv and strings to parse version string."
This reverts commit 517a7be269.
2014-04-02 21:50:54 +02:00
GeertJohan
d25e20e4a7 Revert "Send nice error when version number is out of range"
This reverts commit f4151cb744.
2014-04-02 21:50:39 +02:00
GeertJohan
2d60a9d54d Revert "Fix parsing return values for zero parts, and allow zero when len(part) == 1"
This reverts commit fd83e1645f.
2014-04-02 21:50:28 +02:00
GeertJohan
fd83e1645f Fix parsing return values for zero parts, and allow zero when len(part) == 1 2014-04-02 21:23:19 +02:00
GeertJohan
f4151cb744 Send nice error when version number is out of range 2014-04-02 21:19:03 +02:00
GeertJohan
517a7be269 Use strconv and strings to parse version string.
By using strconv, value out of range problems are catched and a
version part thats too high will not cause trouble.
2014-04-02 21:02:19 +02:00
Gustavo Niemeyer
0f1e91a464 Add version files. 2014-03-31 16:06:12 -03:00