File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -138,6 +138,8 @@ var conflictStrings = []string{
138
138
"fix conflicts" ,
139
139
"Resolve all conflicts manually" ,
140
140
"Merge conflict in file" ,
141
+ "hint: after resolving the conflicts" ,
142
+ "CONFLICT (content):" ,
141
143
}
142
144
143
145
func isMergeConflictErr (errStr string ) bool {
Original file line number Diff line number Diff line change @@ -868,7 +868,8 @@ func (self *LocalCommitsController) revert(commit *models.Commit) error {
868
868
HandleConfirm : func () error {
869
869
self .c .LogAction (self .c .Tr .Actions .RevertCommit )
870
870
return self .c .WithWaitingStatusSync (self .c .Tr .RevertingStatus , func () error {
871
- if err := self .c .Git ().Commit .Revert (commit .Hash ); err != nil {
871
+ result := self .c .Git ().Commit .Revert (commit .Hash )
872
+ if err := self .c .Helpers ().MergeAndRebase .CheckMergeOrRebase (result ); err != nil {
872
873
return err
873
874
}
874
875
return self .afterRevertCommit ()
Original file line number Diff line number Diff line change @@ -33,11 +33,9 @@ var RevertWithConflictSingleCommit = NewIntegrationTest(NewIntegrationTestArgs{
33
33
Title (Equals ("Revert commit" )).
34
34
Content (MatchesRegexp (`Are you sure you want to revert \w+?` )).
35
35
Confirm ()
36
- t .ExpectPopup ().Alert ().
37
- Title (Equals ("Error" )).
38
- // The exact error message is different on different git versions,
39
- // but they all contain the word 'conflict' somewhere.
40
- Content (Contains ("conflict" )).
36
+ t .ExpectPopup ().Menu ().
37
+ Title (Equals ("Conflicts!" )).
38
+ Select (Contains ("View conflicts" )).
41
39
Confirm ()
42
40
}).
43
41
Lines (
@@ -56,7 +54,7 @@ var RevertWithConflictSingleCommit = NewIntegrationTest(NewIntegrationTestArgs{
56
54
t .Views ().Options ().Content (Contains ("View revert options: m" ))
57
55
t .Views ().Information ().Content (Contains ("Reverting (Reset)" ))
58
56
59
- t .Views ().Files ().Focus ().
57
+ t .Views ().Files ().IsFocused ().
60
58
Lines (
61
59
Contains ("UU myfile" ).IsSelected (),
62
60
).
You can’t perform that action at this time.
0 commit comments