From 90459af8fa29670f0e3359c291aec46e34db9ce2 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Wed, 18 Feb 2015 13:00:02 +0100 Subject: edit: Use command "remove" to remove files Commit f1c186ee renamed command "remove" to "revert". Commit bd1dfdab changed the semantics of command "revert". Commit 6d2501ac restored command "remove". However command "edit" is still calling command "revert" to remove files from the patch when it should be using command "remove". This case was not covered by the test suite, which is why the bug was not spotted earlier. --- test/edit.test | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test') diff --git a/test/edit.test b/test/edit.test index eabe752..daa30be 100644 --- a/test/edit.test +++ b/test/edit.test @@ -37,6 +37,17 @@ $ quilt files $ quilt refresh > Refreshed patch patches/patch +# Test the behavior if the editor is called on a new file but +# does not actually create it +$ cat > editor +< #! /bin/sh +< echo Doing nothing to $1 + +$ quilt edit nofoo +> File nofoo added to patch patches/patch +> Doing nothing to nofoo +> File nofoo removed from patch patches/patch + # Test the behavior if the editor creates a brand new file $ cat > editor < #! /bin/sh -- cgit