| Summary: | New[Client]Git status merge test cases | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | libing wang <libingw> |
| Component: | Client | Assignee: | libing wang <libingw> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | bokowski, Szymon.Brandys, tomasz.zarna |
| Version: | 0.2 | ||
| Target Milestone: | 0.2 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
| Bug Depends on: | 343198 | ||
| Bug Blocks: | |||
|
Description
libing wang
bug 342179 is opened against server side for test case1. Test case 2 : modify on remote and delete on local
1.Created file2.js in repo1 and commit :
line 1
line 2
2.Pull file2.js into repo2
3.On repo 1 , change "line 2" to "line 2 by remote" , commit
4.On repo 2, delete file2.js and commit
5.Use git pull on repo 2.
6.Conflicts happened
*** file content in repo 2 now is
line 1
line 2 by remote
*** git status response
{
"Added": [{
"Git": {
"CommitLocation": "http://localhost:8080/git/commit/HEAD/file/V/file2.js",
"DiffLocation": "http://localhost:8080/git/diff/Default/file/V/file2.js",
"IndexLocation": "http://localhost:8080/git/index/file/V/file2.js"
},
"Location": "http://localhost:8080/file/V/file2.js",
"Name": "file2.js",
"Path": "file2.js"
}],
"Changed": [],
"CommitLocation": "http://localhost:8080/git/commit/HEAD/file/V/",
"IndexLocation": "http://localhost:8080/git/index/file/V/",
"Missing": [{
"Git": {
"CommitLocation": "http://localhost:8080/git/commit/HEAD/file/V/file2.js",
"DiffLocation": "http://localhost:8080/git/diff/Default/file/V/file2.js",
"IndexLocation": "http://localhost:8080/git/index/file/V/file2.js"
},
"Location": "http://localhost:8080/file/V/file2.js",
"Name": "file2.js",
"Path": "file2.js"
}],
"Modified": [{
"Git": {
"CommitLocation": "http://localhost:8080/git/commit/HEAD/file/V/file2.js",
"DiffLocation": "http://localhost:8080/git/diff/Default/file/V/file2.js",
"IndexLocation": "http://localhost:8080/git/index/file/V/file2.js"
},
"Location": "http://localhost:8080/file/V/file2.js",
"Name": "file2.js",
"Path": "file2.js"
}],
"Removed": [],
"Untracked": []
}
***Diff response
diff --git a/file2.js b/file2.js
index fa352fa..7fc7ae1 100644
--- a/file2.js
+++ b/file2.js
@@ -1,2 +1,2 @@
line 1
-line 2
+line 2 by remote
diff --git a/file2.js b/file2.js
deleted file mode 100644
index 7fc7ae1..0000000
--- a/file2.js
+++ /dev/null
@@ -1,2 +0,0 @@
-line 1
-line 2 by remote
Test case 3 : delete on remote and modified on local
1.Created file3.js in repo1 and commit :
line 1
line 2
2.Pull file2.js into repo2
3.On repo 1 , delete file3.js and commit
4.On repo 2, change "line 2" to "line 2 by 2" , commit
5.Use git pull on repo 2.
6.Conflicts happened
**The git status response is :
{
"Added": [{
"Git": {
"CommitLocation": "http://localhost:8080/git/commit/HEAD/file/V/file3.js",
"DiffLocation": "http://localhost:8080/git/diff/Default/file/V/file3.js",
"IndexLocation": "http://localhost:8080/git/index/file/V/file3.js"
},
"Location": "http://localhost:8080/file/V/file3.js",
"Name": "file3.js",
"Path": "file3.js"
}],
"Changed": [{
"Git": {
"CommitLocation": "http://localhost:8080/git/commit/HEAD/file/V/file3.js",
"DiffLocation": "http://localhost:8080/git/diff/Cached/file/V/file3.js",
"IndexLocation": "http://localhost:8080/git/index/file/V/file3.js"
},
"Location": "http://localhost:8080/file/V/file3.js",
"Name": "file3.js",
"Path": "file3.js"
}],
"CommitLocation": "http://localhost:8080/git/commit/HEAD/file/V/",
"IndexLocation": "http://localhost:8080/git/index/file/V/",
"Missing": [{
"Git": {
"CommitLocation": "http://localhost:8080/git/commit/HEAD/file/V/file3.js",
"DiffLocation": "http://localhost:8080/git/diff/Default/file/V/file3.js",
"IndexLocation": "http://localhost:8080/git/index/file/V/file3.js"
},
"Location": "http://localhost:8080/file/V/file3.js",
"Name": "file3.js",
"Path": "file3.js"
}],
"Modified": [{
"Git": {
"CommitLocation": "http://localhost:8080/git/commit/HEAD/file/V/file3.js",
"DiffLocation": "http://localhost:8080/git/diff/Default/file/V/file3.js",
"IndexLocation": "http://localhost:8080/git/index/file/V/file3.js"
},
"Location": "http://localhost:8080/file/V/file3.js",
"Name": "file3.js",
"Path": "file3.js"
}],
"Removed": [],
"Untracked": []
}
*** response from /git/diff/Default/file/V/file3.js
diff --git a/file3.js b/file3.js
index 7330f3a..eb0dfc5 100644
--- a/file3.js
+++ b/file3.js
@@ -1,2 +1,2 @@
line 1
-line 2
+line 2 by 2
diff --git a/file3.js b/file3.js
deleted file mode 100644
index eb0dfc5..0000000
--- a/file3.js
+++ /dev/null
@@ -1,2 +0,0 @@
-line 1
-line 2 by 2
*** response from /git/diff/Cached/file/V/file3.js
diff --git a/file3.js b/file3.js
index eb0dfc5..7330f3a 100644
--- a/file3.js
+++ b/file3.js
@@ -1,2 +1,2 @@
line 1
-line 2 by 2
+line 2
diff --git a/file3.js b/file3.js
new file mode 100644
index 0000000..eb0dfc5
--- /dev/null
+++ b/file3.js
@@ -0,0 +1,2 @@
+line 1
+line 2 by 2
Closing this as all cases are addressed in http://wiki.eclipse.org/Orion/Manual_Test_Cases#Resolve_merge_conflicts |