| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Move functions before they are called, so that we no longer need forward
declarations.
|
|
|
|
|
| |
Code indentation in this file is inconsistent, this makes editing it
difficult. Use tabulations everywhere.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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%.
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
* Delete blank lines at end of files.
* Delete white space at end of lines.
* Delete spaces before tab.
* Replace 8 spaces by a tab where it makes sense.
|
| |
|
|
|
|
|
|
|
| |
Add a test case for "quilt refresh" on a patch leaving an empty file.
We were already testing that imported patches doing that were handled
properly, now we want to ensure that refreshing such patches preserves
the information.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
This closes the bug #21114 on Savannah.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Timestamp comparisons when popping a patch were fixed in commit
005922085f0135c35baa4b0e8db6f05d78586377, so we can get rid of this
sleep in the test suite.
|
|
|
|
|
|
|
|
|
|
| |
Support for obsolete find -perm +MODE syntax was removed from GNU
findutils by commit
v4.5.10-144-g90f0c5d24153ad3327edd6f2249fc95a5cfb72e0.
Reported by Dmitry V. Levin.
Also -maxdepth is not portable and not needed so drop it.
|
|
|
|
|
| |
Add support for multiple files to "quilt patches". Patches will be
printed, that modify any of the listed files.
|
|
|
|
|
| |
Let "quilt patches" also match deleted files in unapplied patches.
Commit 4df47975 was supposed to fix that already, but did not really.
|
|
|
|
|
|
|
| |
Commit 2e581933 added a parameter to function scan_unapplied but the
corresponding shift wasn't adjusted accordingly. Apparently this bug
was harmless but there is a slight performance penalty so let's fix
it still.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
While bash allows poking at a function caller's variables, that's
not something we normally do in quilt.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.]
|
|
|
|
|
|
| |
Let the user force pushing a patch even if patch returns with error
code 2. The user should know better. This happens when pushing a
patch with a header but no actual contents, for example.
|
|
|
|
|
|
|
|
|
| |
The timestamps recorded on file systems have a limited resolution.
For this reason, a patch or file with a timestamp exactly equal to
.timestamp should be considered as more recent than .timestamp, i.e.
potentially modified since the last push or refresh. This is
particularly important for the test suite, as we can do many actions
in the same second there.
|
|
|
|
|
| |
Anonymous contribution from the bug tracker:
https://savannah.nongnu.org/bugs/index.php?37495
|
|
|
|
|
| |
Move the code deriving the directory from $PWD to a separate function
to avoid code duplication.
|
|
|
|
| |
Check for existing directories before unpacking.
|
|
|
|
|
|
|
|
| |
Fix handling of directory names including white spaces by
check_for_existing_files. awk can't deal with tokens which include
white spaces, so use bash's read function instead.
As a side bonus, we get rid of the undocumented dependency to "uniq".
|
|
|
|
| |
Let quilt setup handle zip archives.
|
|
|
|
|
| |
Run create_db() as part of quilt setup, so that $QUILT_PATCHES and
$QUILT_SERIES are recorded for future quilt commands.
|