diff options
author | Jean Delvare <jdelvare@suse.de> | 2011-03-25 18:48:49 +0100 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2011-03-25 18:48:49 +0100 |
commit | b0baeeb6b61132af92fd75df5f912554d295dee1 (patch) | |
tree | e3c2b6fdf0dce601d97f659cc8e237e6ce166d8c /test/space-in-filenames.test | |
parent | 4d4b659d5f012f17a8147a3f6f7c74d4810d84a4 (diff) | |
download | quilt-b0baeeb6b61132af92fd75df5f912554d295dee1.tar.gz |
diff, refresh: Accept file names with spaces
This is a continuation of Yasushi SHOJI's initial work of fixing
support for file names with spaces. This time I fixed support in the
diff and refresh commands, two commands which are frequently used.
As before, no guarantee is made that all options are covered, but
this should be a good starting point.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Diffstat (limited to 'test/space-in-filenames.test')
-rw-r--r-- | test/space-in-filenames.test | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/test/space-in-filenames.test b/test/space-in-filenames.test index 335877a..eb0d035 100644 --- a/test/space-in-filenames.test +++ b/test/space-in-filenames.test @@ -10,6 +10,7 @@ $ quilt add foo $ quilt files > foo +$ echo foo > "foo bar" $ quilt add "foo bar" > File foo bar added to patch patches/test.diff @@ -25,6 +26,57 @@ $ quilt files > foo > foo bar +$ echo bar > "foo bar" +$ echo "new line" > "a: b [c]" +$ quilt diff -p ab +> Index: b/a: b [c] +> =================================================================== +> --- /dev/null +> +++ b/a: b [c] +> @@ -0,0 +1 @@ +> +new line +> Index: b/foo bar +> =================================================================== +> --- a/foo bar +> +++ b/foo bar +> @@ -1 +1 @@ +> -foo +> +bar + +$ quilt refresh -p ab +> Refreshed patch patches/test.diff +$ cat patches/test.diff +> Index: b/a: b [c] +> =================================================================== +> --- /dev/null +> +++ b/a: b [c] +> @@ -0,0 +1 @@ +> +new line +> Index: b/foo bar +> =================================================================== +> --- a/foo bar +> +++ b/foo bar +> @@ -1 +1 @@ +> -foo +> +bar + +$ quilt refresh -p ab --sort +> Patch patches/test.diff is unchanged +$ cat patches/test.diff +> Index: b/a: b [c] +> =================================================================== +> --- /dev/null +> +++ b/a: b [c] +> @@ -0,0 +1 @@ +> +new line +> Index: b/foo bar +> =================================================================== +> --- a/foo bar +> +++ b/foo bar +> @@ -1 +1 @@ +> -foo +> +bar + $quilt remove "a: b [c]" > File a: b [c] removed from patch patches/test.diff |