Skip to content

Commit ba78a6a

Browse files
committed
Color commits which start with "Revert" red as backouts.
The "Revert" commit messages are from the migration to Git VCS which has no `hg oops` equivalent as we speak.
1 parent d5c8ad4 commit ba78a6a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ui/shared/Revision.jsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,12 @@ export class Revision extends React.PureComponent {
5555
};
5656

5757
isBackout = (comment) => {
58-
return comment.search('Backed out') >= 0 || comment.search('Back out') >= 0;
58+
// 'Revert' commits directly after migration to Git VCS when no `hg oops` equivalent available.
59+
return (
60+
comment.search('Backed out') >= 0 ||
61+
comment.search('Back out') >= 0 ||
62+
comment.startsWith('Revert')
63+
);
5964
};
6065

6166
render() {

0 commit comments

Comments
 (0)