summaryrefslogtreecommitdiffstats
path: root/test/edit.test
Commit message (Collapse)AuthorAgeFilesLines
* edit: Fix a corner caseJean Delvare2015-02-181-1/+32
| | | | | | | | | | | | | | | | There is one corner case which is not properly handled by the "edit" command. If a patch deletes a file, and the user calls "quilt edit" on that file but does not actually add anything back to it, "quilt remove" is called on the file when the editor exits. This causes the file to be restored to its original state before the patch deleted it. The user never asked for that, so the file should be left to its deleted state in this case. The file must only be removed from the patch if it was not part of the patch originally. The same problem would occur if the editor deleted the file. In general text editors don't do that, they'd leave an empty file instead, but nothing prevents them from actually deleting the file so we should handle this case properly too.
* edit: Use command "remove" to remove filesJean Delvare2015-02-181-0/+11
| | | | | | | | | | | 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.
* edit: Improve the test caseJean Delvare2015-02-181-3/+24
| | | | | | | | | Cover one more use case of the "edit" command in the test case: file creation. Also reorder some of the commands to make the tests easier to follow. The intent is easier to understand when the result is tested after each command.
* test/run: Enforce single variable substitution methodJean Delvare2011-03-181-1/+1
| | | | | There is no need to have two ways to access environment variables from test cases, one is enough.
* Separate working directory for each test caseJean Delvare2010-01-231-6/+1
| | | | | | | | | | | | | | | | | Let the test suite runner script create a separate working directory for each test. This makes it possible to run several tests in parallel, speeding up testing on SMP systems. It also ensures that a broken test case can no longer cause another test case to fail. At this point, it is possible to run the test suite in parallel, the final result (success or failure) will be correct, however the output is hardly readable because the progress of all tests are interlaced. This will be improved later. As a nice side effect, this means we can drop the setup and clean-up steps that were present in all test cases.
* - quilt/edit.in: The last fix broke another way of using edit.Andreas Gruenbacher2006-03-211-1/+15
|
* - quilt/edit.in: Fix for working in subdirectories.Andreas Gruenbacher2006-03-151-2/+7
|
* - quilt/scripts/patchfns.in: Fix bug in quilt_command when workingAndreas Gruenbacher2006-02-111-0/+20
in subdirectories. - Add testcase test/edit.test to catch this kind of bug.