Add Mercurial support to rbt land
Review Request #9744 — Created March 5, 2018 and discarded
rbt land supports Git, this change adds support for Mercurial as well.
rbt land
works on bookmarks in mercurial.
Mercurial supports merging and deleting bookmarks but not pushing upstream because
bookmarks are usually not shared with the upstream, so it is left to the user to
decide what they push.
Ran all unit tests
Added unit tests for the new mercurial client functions.
Tested somerbt land
commands on a Mercurial repository including--local
,
not local,--squash
, and--no-squash
.
Description | From | Last Updated |
---|---|---|
F401 'rbtools.clients.errors.PushError' imported but unused |
reviewbot | |
E303 too many blank lines (2) |
reviewbot | |
E261 at least two spaces before inline comment |
reviewbot | |
W391 blank line at end of file |
reviewbot | |
F401 'rbtools.clients.errors.PushError' imported but unused |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E501 line too long (80 > 79 characters) |
reviewbot | |
E501 line too long (88 > 79 characters) |
reviewbot | |
E501 line too long (91 > 79 characters) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E501 line too long (82 > 79 characters) |
reviewbot | |
W391 blank line at end of file |
reviewbot | |
F401 'rbtools.clients.errors.PushError' imported but unused |
reviewbot | |
F821 undefined name 'bookmark' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
F821 undefined name 'branch' |
reviewbot | |
E501 line too long (81 > 79 characters) |
reviewbot | |
E303 too many blank lines (2) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E501 line too long (80 > 79 characters) |
reviewbot | |
E501 line too long (88 > 79 characters) |
reviewbot | |
E501 line too long (91 > 79 characters) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E501 line too long (82 > 79 characters) |
reviewbot | |
E265 block comment should start with '# ' |
reviewbot | |
W391 blank line at end of file |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E303 too many blank lines (2) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E501 line too long (80 > 79 characters) |
reviewbot | |
E501 line too long (86 > 79 characters) |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
W391 blank line at end of file |
reviewbot | |
E501 line too long (88 > 79 characters) |
reviewbot | |
E265 block comment should start with '# ' |
reviewbot | |
E501 line too long (85 > 79 characters) |
reviewbot | |
E501 line too long (86 > 79 characters) |
reviewbot | |
F401 'rbtools.commands.CommandError' imported but unused |
reviewbot | |
E303 too many blank lines (3) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E303 too many blank lines (2) |
reviewbot | |
F401 'rbtools.clients.errors.PushError' imported but unused |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E127 continuation line over-indented for visual indent |
reviewbot | |
E127 continuation line over-indented for visual indent |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E501 line too long (83 > 79 characters) |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E303 too many blank lines (2) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E303 too many blank lines (2) |
reviewbot | |
E303 too many blank lines (3) |
reviewbot | |
E501 line too long (88 > 79 characters) |
reviewbot | |
E265 block comment should start with '# ' |
reviewbot | |
W503 line break before binary operator |
reviewbot | |
W293 blank line contains whitespace |
reviewbot | |
E501 line too long (80 > 79 characters) |
reviewbot | |
E501 line too long (81 > 79 characters) |
reviewbot | |
W503 line break before binary operator |
reviewbot |
- Testing Done:
-
Currently,the following commands work on a Mercurial repository:
~ rbt land -r ## --local --no-delete-branch ~ rbt land -r ## --local --no-delete-branch --no-squash - Commit:
-
c48cdf890d5668f1faad40d128feff4af30bd0209ee1a21fe3b8ce731c35cb53a91be2b12c1fe75f
- Diff:
-
Revision 2 (+64 -3)
Checks run (1 failed, 1 succeeded)
flake8
- Change Summary:
-
Identifying fifferences between git and hg
- Commit:
-
9ee1a21fe3b8ce731c35cb53a91be2b12c1fe75fe81164482e770ebe0a75c2c7d1ef26aa3b2dbecd
- Diff:
-
Revision 3 (+75 -3)
Checks run (1 failed, 1 succeeded)
flake8
- Commit:
-
e81164482e770ebe0a75c2c7d1ef26aa3b2dbecd49918777cca22250a5ec849de7f877eca783fbb3
Checks run (1 failed, 1 succeeded)
flake8
- Description:
-
~ rbt land supports Git, this change adds support for Mercurial as well.
~ rbt land supports Git, this change adds support for Mercurial as well.
+ rbt land
works on bookmarks in mercurial.+ Mercurial supports merging and deleting bookmarks but not pushing upstream because + bookmarks are usually not shared with the upstream, so it is left to the user to + decide what they push. - Testing Done:
-
~ Currently,the following commands work on a Mercurial repository:
~ rbt land -r ## --local --no-delete-branch --no-squash ~ Ran all unit tests
~ Added unit tests for the new mercurial client functions. + Tested some rbt land
commands on a Mercurial repository including--local
, not local,--squash
,--no-squash
.
Checks run (1 failed, 1 succeeded)
flake8
-
Warning: Showing 30 of 32 failures.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Summary:
-
[WIP] Add Mercurial support to rbt landAdd Mercurial support to rbt land
- Commit:
-
49918777cca22250a5ec849de7f877eca783fbb3c05a2cb424c28127d86182b7c1754b100f7a7f1f
- Commit:
-
c2440931c9e902beccb2cc5c25cd709177dcb221e5e878507aaafbf3e6a500bae20ba9f30c5e5d47
Checks run (2 succeeded)
- Testing Done:
-
Ran all unit tests
Added unit tests for the new mercurial client functions. ~ Tested some rbt land
commands on a Mercurial repository including--local
, not local,--squash
,--no-squash
.~ Tested some rbt land
commands on a Mercurial repository including--local
,+ not local, --squash
, and--no-squash
.