-
-
Notifications
You must be signed in to change notification settings - Fork 536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
return commit hash for dolt_merge()
when --no-ff
is not specified
#6281
Merged
Merged
Changes from 20 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
b2369e4
return commit
737e526
Merge branch 'main' into james/merge1
1d492de
return commit on normal merges
135c024
[ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/upda…
jcor11599 d4da758
use dolt commit type
b3ec98b
[ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/upda…
jcor11599 06499f7
missed some skips
e8b4fa1
Merge branch 'james/merge1' of https://github.com/dolthub/dolt into j…
cdf87cf
[ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/upda…
jcor11599 7a55b04
missed one
18302b4
Merge branch 'james/merge1' of https://github.com/dolthub/dolt into j…
d1820fb
also return hash on fastforward merge
e15a695
???
e8397d2
[ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/upda…
jcor11599 45d8e66
hopefully all correct now
b983bd8
Merge branch 'james/merge1' of https://github.com/dolthub/dolt into j…
3fff703
merge with main
c8b8a33
[ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/upda…
jcor11599 daa8689
more
8579a51
prevent panics
6bfba3e
skipping redundant test
ef6afec
please be right
ff345e5
ff returns hash
aa567ea
fixing integration tests
cdf61e1
more queries
add822e
[ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/upda…
jcor11599 c8be060
rewrite using custom validator
aafeeaa
bump
e2e6250
[ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/upda…
jcor11599 3219644
bump
c8811ca
merge with main
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3599,12 +3599,12 @@ var DoltTagTestScripts = []queries.ScriptTest{ | |
Expected: []sql.Row{{types.OkResult{RowsAffected: 2}}}, | ||
}, | ||
{ | ||
Query: "CALL DOLT_COMMIT('-am','made changes in other')", | ||
SkipResultsCheck: true, | ||
Query: "CALL DOLT_COMMIT('-am','made changes in other')", | ||
Expected: []sql.Row{{doltCommit}}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is so awesome to see us able to remove so many |
||
}, | ||
{ | ||
Query: "CALL DOLT_MERGE('v1')", | ||
Expected: []sql.Row{{"", 0, 0}}, | ||
Expected: []sql.Row{{doltCommit, 0, 0}}, | ||
}, | ||
{ | ||
Query: "SELECT * FROM test", | ||
|
@@ -3715,8 +3715,8 @@ var DoltAutoIncrementTests = []queries.ScriptTest{ | |
Expected: []sql.Row{{types.OkResult{RowsAffected: 2, InsertID: 1}}}, | ||
}, | ||
{ | ||
Query: "call dolt_commit('-am', 'two values on main')", | ||
SkipResultsCheck: true, | ||
Query: "call dolt_commit('-am', 'two values on main')", | ||
Expected: []sql.Row{{doltCommit}}, | ||
}, | ||
{ | ||
Query: "call dolt_checkout('branch1')", | ||
|
@@ -3734,8 +3734,8 @@ var DoltAutoIncrementTests = []queries.ScriptTest{ | |
}, | ||
}, | ||
{ | ||
Query: "call dolt_commit('-am', 'two values on branch1')", | ||
SkipResultsCheck: true, | ||
Query: "call dolt_commit('-am', 'two values on branch1')", | ||
Expected: []sql.Row{{doltCommit}}, | ||
}, | ||
{ | ||
Query: "call dolt_checkout('branch2')", | ||
|
@@ -3966,8 +3966,8 @@ var DoltCherryPickTests = []queries.ScriptTest{ | |
}, | ||
Assertions: []queries.ScriptTestAssertion{ | ||
{ | ||
Query: "CALL dolt_merge('--no-ff', 'branch1');", | ||
SkipResultsCheck: true, // TODO: how do i predict the hash | ||
Query: "CALL dolt_merge('--no-ff', 'branch1');", | ||
Expected: []sql.Row{{doltCommit, 0, 0}}, | ||
}, | ||
{ | ||
Query: "CALL dolt_cherry_pick('HEAD');", | ||
|
@@ -4040,16 +4040,16 @@ var DoltCherryPickTests = []queries.ScriptTest{ | |
Expected: []sql.Row{}, | ||
}, | ||
{ | ||
Query: "call dolt_cherry_pick(@commit2);", | ||
SkipResultsCheck: true, | ||
Query: "call dolt_cherry_pick(@commit2);", | ||
Expected: []sql.Row{{doltCommit, 0, 0, 0}}, | ||
}, | ||
{ | ||
Query: "SELECT * FROM t;", | ||
Expected: []sql.Row{{2, "two"}}, | ||
}, | ||
{ | ||
Query: "call dolt_cherry_pick(@commit1);", | ||
SkipResultsCheck: true, | ||
Query: "call dolt_cherry_pick(@commit1);", | ||
Expected: []sql.Row{{doltCommit, 0, 0, 0}}, | ||
}, | ||
{ | ||
Query: "SELECT * FROM t order by pk;", | ||
|
@@ -4074,8 +4074,8 @@ var DoltCherryPickTests = []queries.ScriptTest{ | |
Expected: []sql.Row{}, | ||
}, | ||
{ | ||
Query: "CALL DOLT_CHERRY_PICK('branch1');", | ||
SkipResultsCheck: true, | ||
Query: "CALL DOLT_CHERRY_PICK('branch1');", | ||
Expected: []sql.Row{{doltCommit, 0, 0, 0}}, | ||
}, | ||
{ | ||
Query: "SELECT * FROM keyless;", | ||
|
@@ -4099,8 +4099,8 @@ var DoltCherryPickTests = []queries.ScriptTest{ | |
Expected: []sql.Row{{"myview"}}, | ||
}, | ||
{ | ||
Query: "call dolt_cherry_pick(@commit1);", | ||
SkipResultsCheck: true, | ||
Query: "call dolt_cherry_pick(@commit1);", | ||
Expected: []sql.Row{{doltCommit, 0, 0, 0}}, | ||
}, | ||
{ | ||
Query: "SHOW TABLES;", | ||
|
@@ -4130,8 +4130,8 @@ var DoltCherryPickTests = []queries.ScriptTest{ | |
Expected: []sql.Row{{"myview"}, {"dropme"}}, | ||
}, | ||
{ | ||
Query: "call dolt_cherry_pick(@commit1);", | ||
SkipResultsCheck: true, | ||
Query: "call dolt_cherry_pick(@commit1);", | ||
Expected: []sql.Row{{doltCommit, 0, 0, 0}}, | ||
}, | ||
{ | ||
Query: "SHOW TABLES;", | ||
|
@@ -4152,8 +4152,8 @@ var DoltCherryPickTests = []queries.ScriptTest{ | |
}, | ||
Assertions: []queries.ScriptTestAssertion{ | ||
{ | ||
Query: "call dolt_cherry_pick(@commit1);", | ||
SkipResultsCheck: true, | ||
Query: "call dolt_cherry_pick(@commit1);", | ||
Expected: []sql.Row{{doltCommit, 0, 0, 0}}, | ||
}, | ||
{ | ||
Query: "SHOW CREATE TABLE test;", | ||
|
@@ -4174,8 +4174,8 @@ var DoltCherryPickTests = []queries.ScriptTest{ | |
}, | ||
Assertions: []queries.ScriptTestAssertion{ | ||
{ | ||
Query: "call dolt_cherry_pick(@commit1);", | ||
SkipResultsCheck: true, | ||
Query: "call dolt_cherry_pick(@commit1);", | ||
Expected: []sql.Row{{doltCommit, 0, 0, 0}}, | ||
}, | ||
{ | ||
Query: "SHOW CREATE TABLE test;", | ||
|
@@ -4196,8 +4196,8 @@ var DoltCherryPickTests = []queries.ScriptTest{ | |
}, | ||
Assertions: []queries.ScriptTestAssertion{ | ||
{ | ||
Query: "call dolt_cherry_pick(@commit1);", | ||
SkipResultsCheck: true, | ||
Query: "call dolt_cherry_pick(@commit1);", | ||
Expected: []sql.Row{{doltCommit, 0, 0, 0}}, | ||
}, | ||
{ | ||
Query: "SHOW CREATE TABLE test;", | ||
|
@@ -4427,8 +4427,8 @@ var DoltCommitTests = []queries.ScriptTest{ | |
Expected: []sql.Row{{types.NewOkResult(1)}}, | ||
}, | ||
{ | ||
Query: "CALL DOLT_COMMIT('-ALL', '-m', 'update table terminator');", | ||
SkipResultsCheck: true, | ||
Query: "CALL DOLT_COMMIT('-ALL', '-m', 'update table terminator');", | ||
Expected: []sql.Row{{doltCommit}}, | ||
}, | ||
// check last commit | ||
{ | ||
|
@@ -4437,8 +4437,8 @@ var DoltCommitTests = []queries.ScriptTest{ | |
}, | ||
// amend last commit | ||
{ | ||
Query: "CALL DOLT_COMMIT('-amend', '-m', 'update table t');", | ||
SkipResultsCheck: true, | ||
Query: "CALL DOLT_COMMIT('-amend', '-m', 'update table t');", | ||
Expected: []sql.Row{{doltCommit}}, | ||
}, | ||
// check amended commit | ||
{ | ||
|
@@ -4463,8 +4463,8 @@ var DoltCommitTests = []queries.ScriptTest{ | |
Expected: []sql.Row{{types.NewOkResult(0)}}, | ||
}, | ||
{ | ||
Query: "CALL DOLT_COMMIT('-Am', 'drop table t');", | ||
SkipResultsCheck: true, | ||
Query: "CALL DOLT_COMMIT('-Am', 'drop table t');", | ||
Expected: []sql.Row{{doltCommit}}, | ||
}, | ||
{ | ||
Query: "CALL DOLT_RESET('--hard');", | ||
|
@@ -4480,13 +4480,13 @@ var DoltCommitTests = []queries.ScriptTest{ | |
Expected: []sql.Row{{types.NewOkResult(0)}}, | ||
}, | ||
{ | ||
Query: "CALL DOLT_COMMIT('-Am', 'add table 21');", | ||
SkipResultsCheck: true, | ||
Query: "CALL DOLT_COMMIT('-Am', 'add table 21');", | ||
Expected: []sql.Row{{doltCommit}}, | ||
}, | ||
// amend last commit | ||
{ | ||
Query: "CALL DOLT_COMMIT('-amend', '-m', 'add table 2');", | ||
SkipResultsCheck: true, | ||
Query: "CALL DOLT_COMMIT('-amend', '-m', 'add table 2');", | ||
Expected: []sql.Row{{doltCommit}}, | ||
}, | ||
// check amended commit | ||
{ | ||
|
@@ -4548,8 +4548,8 @@ var DoltCommitTests = []queries.ScriptTest{ | |
Expected: []sql.Row{{2, nil, "added"}}, | ||
}, | ||
{ | ||
Query: "CALL DOLT_COMMIT('--amend', '-m', 'amended commit message');", | ||
SkipResultsCheck: true, // commit hash is being returned, skip check | ||
Query: "CALL DOLT_COMMIT('--amend', '-m', 'amended commit message');", | ||
Expected: []sql.Row{{doltCommit}}, | ||
}, | ||
{ | ||
Query: "SELECT message FROM dolt_log;", | ||
|
@@ -4617,8 +4617,8 @@ var DoltCommitTests = []queries.ScriptTest{ | |
Expected: []sql.Row{{0}}, | ||
}, | ||
{ | ||
Query: "CALL DOLT_COMMIT('--amend');", | ||
SkipResultsCheck: true, // commit hash is being returned, skip check | ||
Query: "CALL DOLT_COMMIT('--amend');", | ||
Expected: []sql.Row{{doltCommit}}, | ||
}, | ||
{ | ||
Query: "SELECT message FROM dolt_log;", | ||
|
@@ -4655,8 +4655,8 @@ var DoltCommitTests = []queries.ScriptTest{ | |
Expected: []sql.Row{{0}}, | ||
}, | ||
{ | ||
Query: "CALL DOLT_COMMIT('--amend', '-m', 'amended commit with added changes');", | ||
SkipResultsCheck: true, // commit hash is being returned, skip check | ||
Query: "CALL DOLT_COMMIT('--amend', '-m', 'amended commit with added changes');", | ||
Expected: []sql.Row{{doltCommit}}, | ||
}, | ||
{ | ||
Query: "SELECT COUNT(*) FROM dolt_status;", | ||
|
@@ -4721,8 +4721,8 @@ var DoltCommitTests = []queries.ScriptTest{ | |
Expected: []sql.Row{{0}}, | ||
}, | ||
{ | ||
Query: "CALL DOLT_COMMIT('--amend', '-m', 'amended commit with removed changes');", | ||
SkipResultsCheck: true, // commit hash is being returned, skip check | ||
Query: "CALL DOLT_COMMIT('--amend', '-m', 'amended commit with removed changes');", | ||
Expected: []sql.Row{{doltCommit}}, | ||
}, | ||
{ | ||
Query: "SELECT * FROM test;", | ||
|
@@ -4780,8 +4780,8 @@ var DoltCommitTests = []queries.ScriptTest{ | |
}, | ||
Assertions: []queries.ScriptTestAssertion{ | ||
{ | ||
Query: "CALL DOLT_COMMIT('--amend', '-m', 'new merge');", | ||
SkipResultsCheck: true, // commit hash is being returned, skip check | ||
Query: "CALL DOLT_COMMIT('--amend', '-m', 'new merge');", | ||
Expected: []sql.Row{{doltCommit}}, | ||
}, | ||
{ | ||
Query: "SELECT message FROM dolt_log;", | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prevents panic caused by
branchName := apr.Arg(0)
when running querycall dolt_merge()