chiark
/
gitweb
/
~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge commit 'kha/safe'
[stgit]
/
t
/
t1205-push-subdir.sh
diff --git
a/t/t1205-push-subdir.sh
b/t/t1205-push-subdir.sh
index 54a5b896e199d8529e99fe994d30d5ee266e63f0..2d5918bf6469fc58a6f2aad295b73f17a2b274bb 100755
(executable)
--- a/
t/t1205-push-subdir.sh
+++ b/
t/t1205-push-subdir.sh
@@
-9,11
+9,11
@@
test_expect_success 'Create some patches' '
stg new p$i -m p$i &&
echo x$i >> x.txt &&
echo y$i >> foo/y.txt &&
stg new p$i -m p$i &&
echo x$i >> x.txt &&
echo y$i >> foo/y.txt &&
-
stg
add x.txt foo/y.txt &&
+
git
add x.txt foo/y.txt &&
stg refresh
done &&
stg refresh
done &&
- [ "$(echo $(stg
applied
))" = "p0 p1 p2" ] &&
- [ "$(echo $(stg
unapplied
))" = "" ]
+ [ "$(echo $(stg
series --applied --noprefix
))" = "p0 p1 p2" ] &&
+ [ "$(echo $(stg
series --unapplied --noprefix
))" = "" ]
'
test_expect_success 'Fast-forward push from a subdir' '
'
test_expect_success 'Fast-forward push from a subdir' '
@@
-33,7
+33,7
@@
test_expect_success 'Modifying push from a subdir' '
[ "$(echo $(cat foo/y.txt))" = "y0 y1" ] &&
stg new extra -m extra &&
echo extra >> extra.txt &&
[ "$(echo $(cat foo/y.txt))" = "y0 y1" ] &&
stg new extra -m extra &&
echo extra >> extra.txt &&
-
stg
add extra.txt &&
+
git
add extra.txt &&
stg refresh &&
cd foo &&
stg push &&
stg refresh &&
cd foo &&
stg push &&
@@
-47,7
+47,7
@@
test_expect_success 'Conflicting push from subdir' '
[ "$(echo $(cat x.txt))" = "x0" ] &&
[ "$(echo $(cat foo/y.txt))" = "y0" ] &&
cd foo &&
[ "$(echo $(cat x.txt))" = "x0" ] &&
[ "$(echo $(cat foo/y.txt))" = "y0" ] &&
cd foo &&
-
!
stg push p2 &&
+
conflict
stg push p2 &&
cd .. &&
[ "$(echo $(stg status --conflict))" = "foo/y.txt x.txt" ]
'
cd .. &&
[ "$(echo $(stg status --conflict))" = "foo/y.txt x.txt" ]
'
@@
-57,12
+57,12
@@
test_expect_success 'Conflicting add/unknown file in subdir' '
stg new foo -m foo &&
mkdir d &&
echo foo > d/test &&
stg new foo -m foo &&
mkdir d &&
echo foo > d/test &&
-
stg
add d/test &&
+
git
add d/test &&
stg refresh &&
stg pop &&
mkdir -p d &&
echo bar > d/test &&
stg refresh &&
stg pop &&
mkdir -p d &&
echo bar > d/test &&
-
!
stg push foo &&
+
command_error
stg push foo &&
[ $(stg top) != "foo" ]
'
[ $(stg top) != "foo" ]
'