Add support for Mercurial repositories
Review Request #9409 — Created Nov. 29, 2017 and submitted
RB Gateway now supports Mercurial repositories. Setting
scm
tohg
in a repository entry in the configuration file will enable this
behaviour.Co-authored-by: Henri-Philippe Marceau hmarceau@laurentian.ca
Ran
go fmt ./...
.
Rango test ./...
.Configured a Mercurial repository and made HTTP requests to verify
API responses were correct.
Description | From | Last Updated |
---|---|---|
This is a small nitpick but I've looked in a few other files, and I think there should be a … |
RC rcreagha | |
Not sure if this applies to go but this line is longer than 78 characters. |
GR GrahamS | |
I think this import list should be alphabetical. |
RC rcreagha | |
This line is also longer than 78 characters. |
GR GrahamS | |
Should be "On success" rather than "On a success" |
david | |
Shouldn't this be returning false, err? |
david | |
Shouldn't this be returning false, err? |
david | |
This should have documentation. |
david | |
Typo: repsonsible -> responsible |
david | |
Can we say "Mercurial repository" instead of "Hg repository", so it's less of a tautology? |
david |
Description: |
|
|||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Testing Done: |
|
|||||||||||||||||||||||||||
Commit: |
|
|||||||||||||||||||||||||||
Diff: |
Revision 2 (+486) |
Checks run (2 succeeded)
Summary: |
|
||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: |
|
||||||||||||||||||||||||||||||
Testing Done: |
|
||||||||||||||||||||||||||||||
Commit: |
|
||||||||||||||||||||||||||||||
Diff: |
Revision 3 (+713) |
Checks run (2 succeeded)
-
-
hg_repository.go (Diff revision 3) This is a small nitpick but I've looked in a few other files, and I think there should be a space between 'import' and the parenthesis.
Also I think this import list should be alphabetical.
-
hg_repository.go (Diff revision 3) There are a few spots like this where a few more line breaks could make this a little nicer looking.
I've been comparing againstgit_repository.go
and that file has linebreaks after most if-statements.
However, I don't understand Go, so there may be a valid reason to group it together in some places. -
hg_repository.go (Diff revision 3) This is another example of where I think an extra line would be good to have, just between the end of the if block and the last return statement
-
-
All in all the styling is nice and the comments are good. Good work!
-
-
hg_repository.go (Diff revision 3) Not sure if this applies to go but this line is longer than 78 characters.
-
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 4 (+712) |
Checks run (2 succeeded)
-
-
hg_repository.go (Diff revision 4) I don't know if the multiple line-comments are due to a style-guide or anything, but if not I believe you can do C-style /* */ multi-line comments in Go!
Change Summary:
Re-assign to self for final cleanup.
Owner: |
|
||||
---|---|---|---|---|---|
Depends On: |
|
Change Summary:
Clean up work by Henri-Philippe.
This is pending RB getting HG support for rb-gateway.
Summary: |
|
|||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: |
|
|||||||||||||||||||||||||||||||||
Testing Done: |
|
|||||||||||||||||||||||||||||||||
Depends On: |
|
|||||||||||||||||||||||||||||||||
Commit: |
|
|||||||||||||||||||||||||||||||||
Diff: |
Revision 5 (+584 -9) |
Checks run (2 succeeded)
Change Summary:
Address issues
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 6 (+597 -9) |
Checks run (2 succeeded)
Change Summary:
go fmt ./...
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 7 (+596 -9) |
Checks run (2 succeeded)
Change Summary:
Split strings more nicely
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 8 (+592 -9) |
Checks run (2 succeeded)
Change Summary:
Rename CreateHgBookmark to SeedHgBookmark
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 9 (+592 -9) |
Checks run (2 succeeded)
Change Summary:
refactor
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 10 (+626 -9) |
Checks run (2 succeeded)
-
-
-
repositories/hg.go (Diff revision 10) Can we say "Mercurial repository" instead of "Hg repository", so it's less of a tautology?
Change Summary:
Address issues
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 11 (+633 -9) |
Checks run (2 succeeded)
Change Summary:
Address issues
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 12 (+633 -9) |
Checks run (2 succeeded)
Change Summary:
Rebase
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 13 (+635 -7) |
Checks run (2 succeeded)
Change Summary:
Fix go vet issue
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 14 (+635 -7) |