From 8fc2c986c73bbf838bf0499319fc4cac9de9e90e Mon Sep 17 00:00:00 2001 From: Benjamin Poirier Date: Wed, 5 Dec 2012 14:53:15 +0100 Subject: Fix handling of patch files with ':' in their name avoids errors like this: $ quilt refresh sed: -e expression #1, char 21: unknown option to `s' Nothing in patch patches/strange:name [Satoru Takeuchi: suggested first alternative implementation not relying on find -printf.] [Jean Delvare: added missing quoting and a new test file for this case.] --- test/colon-in-patch-name.test | 47 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 test/colon-in-patch-name.test (limited to 'test') diff --git a/test/colon-in-patch-name.test b/test/colon-in-patch-name.test new file mode 100644 index 0000000..840bd5e --- /dev/null +++ b/test/colon-in-patch-name.test @@ -0,0 +1,47 @@ +$ mkdir patches + +$ quilt new "patch_with:strange[name]" +> Patch patches/patch_with:strange[name] is now on top + +$ echo foo > foo +$ quilt add foo +> File foo added to patch patches/patch_with:strange[name] + +$ quilt files +> foo + +$ echo bar > foo +$ quilt diff -p ab -P "patch_with:strange[name]" +> Index: b/foo +> =================================================================== +> --- a/foo +> +++ b/foo +> @@ -1 +1 @@ +> -foo +> +bar + +$ quilt refresh -p ab +> Refreshed patch patches/patch_with:strange[name] + +$ quilt applied +> patches/patch_with:strange[name] + +$ quilt pop -q +> Removing patch patches/patch_with:strange[name] +> No patches applied + +$ quilt next +> patches/patch_with:strange[name] + +$ quilt push -q "patch_with:strange[name]" +> Applying patch patches/patch_with:strange[name] +> Now at patch patches/patch_with:strange[name] + +$ quilt rename "another:strange(name)" +> Patch patches/patch_with:strange[name] renamed to patches/another:strange(name) + +$ quilt series +> patches/another:strange(name) + +$ quilt remove foo +> File foo removed from patch patches/another:strange(name) -- cgit