Codebase list golang-github-masterminds-vcs-dev / e801e79
Update upstream source from tag 'upstream/1.12.0' Update to upstream version '1.12.0' with Debian dir ded598d8c43ec81903fa64ef0fc2de771879a870 ChangZhuo Chen (陳昌倬) 6 years ago
3 changed file(s) with 72 addition(s) and 42 deletion(s). Raw diff Collapse all Expand all
00 language: go
11
22 go:
3 - 1.6
4 - 1.7
5 - 1.8
6 - tip
3 - 1.6.x
4 - 1.7.x
5 - 1.8.x
6 - 1.9.x
7 - master
78
89 before_script:
910 - git version
0 # 1.11.1 (2017-04-28)
0 # Changelog
11
2 ## Fixed
2 ## 1.12.0 (2017-09-11)
3
4 ### Changed
5
6 - #79: Include the error context in the error string (thanks @guywithnose)
7 - #80: Bump the Go versions for Travis CI testing (thanks @AlekSi)
8
9 ## 1.11.1 (2017-04-28)
10
11 ### Fixed
12
313 - #76: Fix submodule handling for Windows (thanks @m0j0hn)
414
5 # 1.11.0 (2017-03-23)
15 ## 1.11.0 (2017-03-23)
616
7 ## Added
17 ### Added
18
819 - #65: Exposed CmdFromDir function (thanks @erizocosmico)
920
10 ## Changed
21 ### Changed
22
1123 - #69: Updated testing for Go 1.8
1224
13 ## Fixed
25 ### Fixed
26
1427 - #64: Testing fatal error if bzr not installed (thanks @kevinburke)
1528
16 # 1.10.2 (2017-01-24)
29 ## 1.10.2 (2017-01-24)
1730
18 ## Fixed
31 ### Fixed
32
1933 - #63: Remove extra quotes in submodule export (thanks @dt)
2034
21 # 1.10.1 (2017-01-18)
35 ## 1.10.1 (2017-01-18)
2236
23 ## Fixed
37 ### Fixed
38
2439 - #62: Added windows testing via appveyor and fixed issues under windows.
2540
26 # 1.10.0 (2017-01-09)
41 ## 1.10.0 (2017-01-09)
2742
28 ## Added
43 ### Added
44
2945 - #60: Handle Git submodules (thanks @sdboyer)
3046 - #61: Add gometalinter to testing
3147
32 # 1.9.0 (2016-11-18)
48 ## 1.9.0 (2016-11-18)
3349
34 ## Added
50 ### Added
51
3552 - #50: Auto-detect remotes with file:// prefix.
3653 - #59: Testing against Go 1.7
3754
38 ## Changed
55 ### Changed
56
3957 - Removed auto-detection for Google Code as the service is deprecated
4058 - Added auto-detection of git.openstack.org
4159
42 ## Fixed
60 ### Fixed
61
4362 - #53: Git not fetching tags off branch
4463
45 # 1.8.0 (2016-06-29)
64 ## 1.8.0 (2016-06-29)
4665
47 ## Added
66 ### Added
67
4868 - #43: Detect when tool (e.g., git, svn, etc) not installed
4969 - #49: Detect access denied and not found situations
5070
51 ## Changed
71 ### Changed
72
5273 - #48: Updated Go Report Gard url to new format
5374 - Refactored SVN handling to detect when not in a top level directory
5475 - Updating tagging to v[SemVer] structure for compatibility with other tools.
5576
56 ## Fixed
77 ### Fixed
78
5779 - #45: Fixed hg's update method so that it pulls from remote before updates
5880
59 # 1.7.0 (2016-05-05)
81 ## 1.7.0 (2016-05-05)
6082
6183 - Adds a glide.yaml file with some limited information.
6284 - Implements #37: Ability to export source as a directory.
6587 on an individual revision. Note, the tip of branch is VCS specific so usage
6688 may require detecting VCS type.
6789
68 # 1.6.1 (2016-04-27)
90 ## 1.6.1 (2016-04-27)
6991
7092 - Fixed #30: tags from commit should not have ^{} appended (seen in git)
7193 - Fixed #29: isDetachedHead fails with non-english locales (git)
7294 - Fixed #33: Access denied and not found http errors causing xml parsing errors
7395
74 # 1.6.0 (2016-04-18)
96 ## 1.6.0 (2016-04-18)
7597
7698 - Issue #26: Added Init method to initialize a repo at the local location
7799 (thanks tony).
85107 - Issue #22: Added Ping command to test if remote location is present and
86108 accessible.
87109
88 # 1.5.1 (2016-03-23)
110 ## 1.5.1 (2016-03-23)
89111
90112 - Fixing bug parsing some Git commit dates.
91113
92 # 1.5.0 (2016-03-22)
114 ## 1.5.0 (2016-03-22)
93115
94116 - Add Travis CI testing for Go 1.6.
95117 - Issue #17: Add CommitInfo method allowing for a common way to get commit
100122 for private repo type detection.
101123 - Issue #14: Autodetect ssh/scp style urls (thanks chonthu).
102124
103 # 1.4.1 (2016-03-07)
125 ## 1.4.1 (2016-03-07)
104126
105127 - Fixes #16: some windows situations are unable to create parent directory.
106128
107 # 1.4.0 (2016-02-15)
129 ## 1.4.0 (2016-02-15)
108130
109131 - Adding support for IBM JazzHub.
110132
111 # 1.3.1 (2016-01-27)
133 ## 1.3.1 (2016-01-27)
112134
113135 - Issue #12: Failed to checkout Bzr repo when parent directory didn't
114136 exist (thanks cyrilleverrier).
115137
116 # 1.3.0 (2015-11-09)
138 ## 1.3.0 (2015-11-09)
117139
118140 - Issue #9: Added Date method to get the date/time of latest commit (thanks kamilchm).
119141
120 # 1.2.0 (2015-10-29)
142 ## 1.2.0 (2015-10-29)
121143
122144 - Adding IsDirty method to detect a checkout with uncommitted changes.
123145
124 # 1.1.4 (2015-10-28)
146 ## 1.1.4 (2015-10-28)
125147
126148 - Fixed #8: Git IsReference not detecting branches that have not been checked
127149 out yet.
128150
129 # 1.1.3 (2015-10-21)
151 ## 1.1.3 (2015-10-21)
130152
131153 - Fixing issue where there are multiple go-import statements for go redirects
132154
133 # 1.1.2 (2015-10-20)
155 ## 1.1.2 (2015-10-20)
134156
135157 - Fixes #7: hg not checking out code when Get is called
136158
137 # 1.1.1 (2015-10-20)
159 ## 1.1.1 (2015-10-20)
138160
139161 - Issue #6: Allow VCS commands to be run concurrently.
140162
141 # 1.1.0 (2015-10-19)
163 ## 1.1.0 (2015-10-19)
142164
143165 - #5: Added output of failed command to returned errors.
144166
145 # 1.0.0 (2015-10-06)
167 ## 1.0.0 (2015-10-06)
146168
147169 - Initial release.
00 package vcs
11
2 import "errors"
2 import (
3 "errors"
4 "fmt"
5 )
36
47 // The vcs package provides ways to work with errors that hide the underlying
58 // implementation details but make them accessible if needed. For basic errors
9295
9396 // Error implements the Error interface
9497 func (e *vcsError) Error() string {
95 return e.s
98 if e.e == nil {
99 return e.s
100 }
101
102 return fmt.Sprintf("%s: %v", e.s, e.e)
96103 }
97104
98105 // Original retrieves the underlying implementation specific error.