lp:quilt

Created by VCS imports and last modified
Get this branch:
bzr branch lp:quilt

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
VCS imports
Project:
quilt
Status:
Development

Import details

Import Status: Reviewed

This branch is an import of the HEAD branch of the Git repository at git://git.savannah.nongnu.org/quilt.git.

The next import is scheduled to run .

Last successful import was .

Import started on juju-98ee42-prod-launchpad-codeimport-2 and finished taking 20 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-1 and finished taking 10 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-5 and finished taking 20 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-0 and finished taking 20 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-5 and finished taking 10 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-4 and finished taking 20 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-2 and finished taking 10 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-4 and finished taking 20 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-5 and finished taking 15 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-5 and finished taking 10 seconds — see the log

Recent revisions

1507. By Jean Delvare <email address hidden>

patches: Minor optimization to scan_unapplied

Prepare the search pattern in scan_unapplied outside the inner loop
for a small performance benefit.

Signed-off-by: Jean Delvare <email address hidden>

1506. By Jean Delvare <email address hidden>

patches: Performance boost on large series

On large series, the patches command is horribly slow. This is caused
by a performance issue in bash 4.4 and older when a function with a
lot of positional parameters calls another function.

This can be worked around by expanding the list of patches inside the
functions instead of passing them as parameters. In my tests, this
speeds up the command by a factor 1000 (from over 34 minutes to 2
seconds on a fully applied 48000 patch series).

Signed-off-by: Jean Delvare <email address hidden>

1505. By Jean Delvare <email address hidden>

patches: Minor optimizations

* If there is no top patch, then there can't be patches before the
  top patch.
* Use applied_before as it is faster than patches_before.

The same optimizations were applied to the series command 4 years ago
with commit 4040eb7dce59 ("series: Minor optimizations").

Signed-off-by: Jean Delvare <email address hidden>

1504. By Jean Delvare <email address hidden>

series: Remove the "fast" path

Originally, "series" with no options was implemented by calling
cat_series directly, while options required calling cat_patches which
was very slow on large series. Having a fast path made complete
sense back then.

However, since commit 117e66f40d01 ("Series command: add missing
paths to patches if $QUILT_PATCHES_PREFIX is set"), the fast path is
also calling cat_patches, so it is no longer fast. Therefore it no
longer makes sense to have distinct code paths and we can simplify the
code with no performance penalty.

Signed-off-by: Jean Delvare <email address hidden>

1503. By Jean Delvare <email address hidden>

Update the translation of command "new"

1502. By Jean Delvare <email address hidden>

new: Stop claiming support of option -p ab

The "new" command supports option -p ab, which will add -p ab to the
new patch's options in the series file. Problem is, this option isn't
actually supported in the series file. Only options which should be
passed to the patch command are supported.

So don't let the user pass option -p ab when creating a patch.

This should prevent some confusion as reported here:
https://savannah.nongnu.org/patch/index.php?10094

Fixes: 66f9da46333e ("new command: Add -p ... option (equivalent to diff -p ...)")
Signed-off-by: Jean Delvare <email address hidden>

1501. By Jean Delvare <email address hidden>

patch_format: workaround for bash 3.1 and older

There's a pattern substitution bug in bash 3.1 and older when the
pattern is a single %. Reapply the workaround that was in place
before recent changes.

Signed-off-by: Jean Delvare <email address hidden>

1500. By Andreas Gruenbacher

Don't use bash patsub_replacement shell option

As Jean has pointed out, bash only supports '&' expansion in pattern
substitution replacement strings since version 5.2. Quilt only requires
bash version 3.0, so don't use that feature.

Signed-off-by: Andreas Gruenbacher <email address hidden>

1499. By Andreas Schwab <email address hidden>

patch_format: escape all occurences of %

[In addition, escape backslash (\) as well.]
Signed-off-by: Andreas Gruenbacher <email address hidden>

1498. By Jean Delvare <email address hidden>

Set version to 0.68.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
This branch contains Public information 
Everyone can see this information.

Subscribers

No subscribers.