equal
deleted
inserted
replaced
1 $ "$TESTDIR/hghave" execbit || exit 80 |
|
2 |
|
3 $ checkundo() |
1 $ checkundo() |
4 > { |
2 > { |
5 > if [ -f .hg/store/undo ]; then |
3 > if [ -f .hg/store/undo ]; then |
6 > echo ".hg/store/undo still exists after $1" |
4 > echo ".hg/store/undo still exists after $1" |
7 > fi |
5 > fi |
916 $ cd git |
914 $ cd git |
917 $ hg qinit |
915 $ hg qinit |
918 |
916 |
919 $ hg qnew -m'new file' new |
917 $ hg qnew -m'new file' new |
920 $ echo foo > new |
918 $ echo foo > new |
|
919 #if execbit |
921 $ chmod +x new |
920 $ chmod +x new |
|
921 #endif |
922 $ hg add new |
922 $ hg add new |
923 $ hg qrefresh |
923 $ hg qrefresh |
|
924 #if execbit |
924 $ cat .hg/patches/new |
925 $ cat .hg/patches/new |
925 new file |
926 new file |
926 |
927 |
927 diff --git a/new b/new |
928 diff --git a/new b/new |
928 new file mode 100755 |
929 new file mode 100755 |
929 --- /dev/null |
930 --- /dev/null |
930 +++ b/new |
931 +++ b/new |
931 @@ -0,0 +1,1 @@ |
932 @@ -0,0 +1,1 @@ |
932 +foo |
933 +foo |
|
934 #else |
|
935 $ cat .hg/patches/new |
|
936 new file |
|
937 |
|
938 diff --git a/new b/new |
|
939 new file mode 100644 |
|
940 --- /dev/null |
|
941 +++ b/new |
|
942 @@ -0,0 +1,1 @@ |
|
943 +foo |
|
944 #endif |
933 |
945 |
934 $ hg qnew -m'copy file' copy |
946 $ hg qnew -m'copy file' copy |
935 $ hg cp new copy |
947 $ hg cp new copy |
936 $ hg qrefresh |
948 $ hg qrefresh |
937 $ cat .hg/patches/copy |
949 $ cat .hg/patches/copy |