summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Makefile.in: fix patch-wrapper checksAndreas Gruenbacher2014-06-032-3/+11
| | | | | | | | | | | | 293c4ddb added checks to Makefile.in to disable the patch-wrapper test when the configure script is not invoked with the --with-patch-wrapper argument. Those checks assumed that PATCH_WRAPPER will always be empty unless --with-patch-wrapper was used. However, PATCH_WRAPPER will be set to "no" when the configure script is invoked with the --without-patch-wrapper argument. Reported-by: Kent R. Spillner <kspillner@acm.org> Signed-off-by: Andreas Gruenbacher <andreas.gruenbacher@gmail.com>
* Set version to 0.63v0.63Martin Quinson2014-05-253-11/+14
|
* Set version to 0.62v0.62Martin Quinson2014-05-073-11/+11
|
* reupdate the translation files (no manual change)Martin Quinson2014-05-074-329/+410
|
* translations need love tooMartin Quinson2014-05-071-0/+4
|
* update the french translation, back to 100%Martin Quinson2014-05-071-96/+111
|
* tentative documentation of the upcoming releaseMartin Quinson2014-05-051-0/+15
|
* improve the documentation about the layout of a working directoryMartin Quinson2014-05-041-9/+24
|
* test: Extend mail.test to check for more than 2 duplicate subject linesJean Delvare2014-04-251-0/+11
|
* test: Make patch-wrapper.test saferJean Delvare2014-04-251-0/+7
| | | | | Create directory "patches" so that quilt commands get the right root even if patch-wrapper fails.
* Delete quilt.changesJean Delvare2014-04-172-4073/+0
| | | | | | | | | | | | | | File quilt.changes is essentially redundant with git log. It is close to useless to packagers and users as it contains too much details while at the same time some important changes can be missing when we forget to include them in the file. A new file, NEWS, was created to list the user-visible change summary for each version. This is much more useful for the target audience. NEWS is now used instead of quilt.changes to generate the %changelog section of the rpm spec file. Thus we can delete quilt.changes, as well as changes2changelog.
* Update the release checklistJean Delvare2014-04-171-3/+3
| | | | | Update doc/RELEASING to mention the NEWS file instead of the quilt.changes file.
* Generate rpm's %changelog from NEWSJean Delvare2014-04-171-4/+5
| | | | | NEWS is much more appropriate than quilt.changes to feed the rpm spec file's %changelog section.
* Add a NEWS fileJean Delvare2014-04-171-0/+106
| | | | | | | | Add a NEWS file containing a summary of the most important user-visible changes in each version of quilt. The goal is to replace quilt.changes, which was partly incomplete and partly redundant with the git log, by something useful for packagers and users.
* Re-enable patch-wrapper testJean Delvare2014-04-161-0/+3
| | | | | | | The patch-wrapper test was unconditionally disabled by commit 97200435 ("Only run test/patch-wrapper.test if the --with-patch-wrapper config option is used.") Re-enable this test when the --with-patch-wrapper config option is actually used.
* patches: Fix heuristic for unapplied patches with timestampsJean Delvare2014-04-092-1/+47
| | | | | | | | | | The heuristic to find file names in unapplied patches fails miserably on all patches with timestamps. We have to consider everything past the last tab as the timestamp and strip it. The timestamp itself will contain spaces so we can't split on that. This fixes a regression introduced by commit 4df47975. It's hard to believe this has been broken for over 4 years and nobody ever noticed.
* quilt.spec: Configure with the right docdirJean Delvare2014-04-061-2/+5
| | | | | We need to pass --docdir to the configure script so that the documentation files are installed where we expect them.
* Use file_in_patchJean Delvare2014-04-062-2/+2
| | | | Use file_in_patch instead of reimplementing it.
* patches: Simplify scan_appliedJean Delvare2014-04-041-5/+2
| | | | | I have no idea why I introduced this "match" variable in the first place, it's not needed.
* Let print_patch print a newline characterJean Delvare2014-03-125-5/+5
| | | | | | | | | | | | Function print_patch currently doesn't print a newline character at the end of the patch name. Because of this, callers which need the newline character much wrap print_patch with an echo. This hurts performance and isn't too elegant either. So let print_patch print a trailing newline character. If the caller doesn't need it, it will typically be stripped by bash anyway (tailing whitespace is stripped on variable expansion.) And if the caller does need it, it avoids the extra call to echo.
* diff: Workaround bash bugJean Delvare2014-03-043-4/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | Old versions of bash (at least version 3.2.51) don't properly handle prefix stripping together with quoting when evaluating an array. So strip the prefix before adding each file to opt_files. It's faster anyway. Same thing when diffing against a snapshot, strip the snapshot directory prefix from file names before evaluating the quoted files array. This fixes a regression introduced in: commit b0baeeb6b61132af92fd75df5f912554d295dee1 Author: Jean Delvare <jdelvare@suse.de> Date: Fri Mar 25 18:48:49 2011 +0100 diff, refresh: Accept file names with spaces (Only affecting the versions of bash which have the aforementioned bug.) This also fixes a bug when called from a subdirectory and a file passed as an argument starts with "./". Extend the test suite to test both cases, so that such bugs can't sneak in in the future.
* test: Improve the coverage of unusual patch namesJean Delvare2014-03-021-0/+36
| | | | | Test the top and previous of patches with unusual names. Also test a few more unusual characters.
* Boost the speed of the series, applied and unapplied commandsJean Delvare2014-03-024-17/+15
| | | | | | | | | | | | | | | | The current implementation of the series, applied and unapplied commands performs rather poorly, especially on large patch sets. To make things worse, bash completion makes use of these commands, so it becomes next to unusable on large patch sets. Instead of looping over each patch, use the power of printf to print everything in one go. Performance gains on a 15k patch series are breathtaking: series: 189.4 s -> 0.6 s series -v: 92.9 s -> 0.6 s applied: 3.5 s -> 0.1 s unapplied: 3.9 s -> 0.1 s
* push: Check for duplicate patch in seriesJean Delvare2014-03-022-0/+61
| | | | | | | | | | In the case of a generated or manually tweaked series file, it can happen that the same patch shows up twice in the series file. Check for this before pushing any patch, otherwise we would corrupt quilt's internal database. This fixes bug #20628: https://savannah.nongnu.org/bugs/?20628
* test: Drop legacy comment in two test casesJean Delvare2014-02-282-4/+0
| | | | These instructions no longer works.
* test: Drop stray slashesJean Delvare2014-02-282-2/+2
| | | | %{P} already has a trailing slash.
* Use consistent brace placementJean Delvare2014-02-289-32/+64
| | | | | Use the same brace placement for all bash functions through the whole tree.
* Complete the documentation of option --colorJean Delvare2014-02-273-3/+3
| | | | | Commands "patches" and "series" lacked option --color in their syntax summary. Command "diff" had it but without its options.
* test/setup: Fix for GNU patch version <= 2.5.9Jean Delvare2014-02-261-3/+5
| | | | | | Recent versions of GNU diff will quote file names which include a space, but GNU patch version 2.5.9 and older do not support that. So strip the quotes to let the test succeed.
* test: Improve the coverage of the patches commandJean Delvare2014-02-242-0/+30
| | | | | | | Add tests for the patches command in two test cases. In particular we want to test that the patches command works OK when patch filenames contain spaces or other unusual characters, and that file names are properly guessed in patches which create or delete files.
* import: Move function find_patch_fileJean Delvare2014-02-212-25/+25
| | | | | Function find_patch_file is only used by command import so move it to that file.
* patchfns: Simplify function find_patch_file furtherJean Delvare2014-02-211-10/+2
| | | | | | | | | | | | | | | | | | find_patch_file is only used by "quilt import". It is called on patch file names passed on the command line. The first part of the function clearly looks for "external" patch files (with absolute or relative paths.) The second part looks for the patch in the series file. There are 3 possibilities: * If the patch is not in series, then the import fails with: Patch foo.patch does not exist * If the patch is in series, applied, then the import fails with: Patch foo.patch is applied * If the patch is in series, not applied, then the import fails with: Patch foo.patch already exists in series. So this part of the function makes no sense and should be deleted.
* patchfns: Simplify function find_patch_fileJean Delvare2014-02-181-1/+1
| | | | We don't need echo, we can call patch_file_name directly.
* patches: Optimize the multiple files caseJean Delvare2014-02-152-13/+23
| | | | | | | | | | I didn't put too many thoughts when adding support for multiple files to the "patches" command. The nested loop approach turns out to be very inefficient for unapplied patches. Get rid of the innermost loop by building a single pattern matching all filenames at once. That way, performance no longer depends on the number of files (as far as unapplied patches are concerned.)
* patches: Optimize processing of unapplied patchesJean Delvare2014-02-151-5/+10
| | | | | | | | | | | | * Don't check for $strip = ab twice, once is enough. * Quote the file names to be suitable in regular expressions only once, instead of doing it again for every patch. This fixes a performance regression introduced in 8ebb056d ("patches: Add support for multiple files"), sorry about that. These two simple changes bring a huge performance boost on unapplied patches, of about 50% in the single file case and growing as you add files.
* bash_completion: Simplify _quilt_comfileJean Delvare2014-02-142-1/+6
| | | | We don't need echo, we can call compgen directly.
* files: Return nothing if there are no filesJean Delvare2014-02-143-1/+7
| | | | | | | "quilt files" returns a blank line if no files are included in the patch. This could easily break constructs such as "quilt files | wc -l". Let "quilt files" return nothing at all if there are no files in the patch.
* test/run: Minor performance optimizationsJean Delvare2014-02-122-7/+7
| | | | | | | | * Don't set $needs_shell before we need it. When handling commands internally, we don't care about $needs_shell. * Use a single regexp to set $use_re. * Clear $good as soon as a test fails, instead of grepping for failures later.
* test/run: Fix the condition for using /bin/shJean Delvare2014-02-122-1/+2
| | | | | * Command lines containing "&" need /bin/sh. * "*" and "?" need not be escaped inside brackets in regular expressions.
* test/run: Declare global variables as suchJean Delvare2014-02-122-6/+7
| | | | | Declare all global variables with qw() and stop passing them as arguments to some functions.
* test/run: Reorder functionsJean Delvare2014-02-122-132/+126
| | | | | Move functions before they are called, so that we no longer need forward declarations.
* test/run: Massive reindentationJean Delvare2014-02-122-155/+153
| | | | | Code indentation in this file is inconsistent, this makes editing it difficult. Use tabulations everywhere.
* test/run: Drop support for su and sgJean Delvare2014-02-122-77/+2
| | | | | | The su and sg commands can only work if running as root. The quilt test cases do not use these commands and I certainly wouldn't recommend running the test suite as root, so drop the feature.
* test/run: Use perl module Text::ParseWordsJean Delvare2014-02-122-2/+4
| | | | | | | | Perl has a standard module which can split shell command lines for us, so use it. Function shellwords can deal with quoted parameters too so we no longer need to pass commands to /bin/sh just because they contain quoted parameters. This lowers the ratio of commands passed to /bin/sh from 34% to 31%.
* test/run: Delay command line splittingJean Delvare2014-02-122-11/+16
| | | | | Delay command line splitting until it's actually needed. This avoids having to join it again to log it or to pass it to /bin/sh.
* patchfns: Fix "quilt diff -z" on files with spaces in their namesJean Delvare2014-02-102-1/+7
| | | | | | Before this fix, "quilt diff -z" would fail on files with spaces in their names, with the following error message: Failed to copy files to temporary directory
* Style cleanupsJean Delvare2014-02-102-4/+4
|
* refresh: Fix error messageJean Delvare2014-02-061-1/+2
| | | | The message was not updated when support for -pab was added.
* Fix a typo in changelogJean Delvare2014-01-291-1/+1
|
* Add step-by-step releasing guideJean Delvare2014-01-272-0/+39
|