Joey Hess [Thu, 13 May 2010 05:26:33 +0000 (01:26 -0400)]
elided cruft
Joey Hess [Thu, 13 May 2010 05:20:43 +0000 (01:20 -0400)]
working
Joey Hess [Thu, 13 May 2010 05:01:04 +0000 (01:01 -0400)]
more decompression code
Joey Hess [Thu, 13 May 2010 04:58:42 +0000 (00:58 -0400)]
hack out decompression code
Joey Hess [Thu, 13 May 2010 04:46:46 +0000 (00:46 -0400)]
add bzip2
not very trimmed down yet
Joey Hess [Thu, 13 May 2010 02:21:32 +0000 (22:21 -0400)]
remove gnuism
though pristine-tar still uses cp -a legitimately
Joey Hess [Thu, 13 May 2010 02:20:12 +0000 (22:20 -0400)]
stub 7z bz2 support
Joey Hess [Thu, 13 May 2010 01:38:47 +0000 (21:38 -0400)]
pristine-bz2 -t can be used to make it try harder to generate a delta. Currently, this tries pbzip2 -b with various numbers. Not the default because it's slow and I don't have any bzip2 files from the wild that were built that way.
Joey Hess [Thu, 13 May 2010 01:13:30 +0000 (21:13 -0400)]
Faster generation of bzip2 deltas: Do not repeatedly decompress input file.
Joey Hess [Thu, 13 May 2010 00:14:09 +0000 (20:14 -0400)]
update
Joey Hess [Fri, 5 Feb 2010 22:13:41 +0000 (17:13 -0500)]
releasing version 1.01
Joey Hess [Fri, 25 Dec 2009 19:34:56 +0000 (14:34 -0500)]
Document TMPDIR in man pages. Closes: #558266
Joey Hess [Tue, 15 Dec 2009 18:57:55 +0000 (13:57 -0500)]
update
Joey Hess [Tue, 15 Dec 2009 18:51:49 +0000 (13:51 -0500)]
update
Joey Hess [Tue, 15 Dec 2009 18:44:57 +0000 (13:44 -0500)]
add newlines
Joey Hess [Mon, 14 Dec 2009 19:42:49 +0000 (14:42 -0500)]
Added an example. Closes: #561016
Joey Hess [Mon, 14 Dec 2009 19:08:26 +0000 (14:08 -0500)]
Use italics in man pages to highlight which parts of command lines are file names. Closes: #561015
Joey Hess [Sat, 12 Dec 2009 19:06:51 +0000 (14:06 -0500)]
brace style
Joey Hess [Sat, 12 Dec 2009 19:02:47 +0000 (14:02 -0500)]
add GZIP_OS_VFAT to list
Note that most of the stuff in this list is not used; the raw
os flag value is passed to zgz. So this is just for completness/
future expansion.
Joey Hess [Wed, 15 Apr 2009 02:05:49 +0000 (22:05 -0400)]
update
Joey Hess [Wed, 15 Apr 2009 01:28:33 +0000 (21:28 -0400)]
releasing version 1.00
Joey Hess [Wed, 15 Apr 2009 01:22:17 +0000 (21:22 -0400)]
doc updates
Joey Hess [Wed, 15 Apr 2009 01:11:59 +0000 (21:11 -0400)]
pristine-tar: Fix behavior in the corner case where the tarball puts all files in a subdir, but does not contain the subdir's directory entry.
I think that this block of code has always been buggy. It attempts to
see if all files listed in the manifest are present inside the subdir.
Usually, though, the manifest *includes* the subdir, and so the code
checked to see if $subdir/$subdir existed, and concluded everything was not
in the subdir.
Turns out there is one tar file that lists files inside a subdir, but
does not include the subdir. In that case, the code concludes correctly
that all files are in a subdir. But, the result of that turns out to be
bad; unsettting $subdir breaks the build since it then tries to move the
wrong path.
Joey Hess [Wed, 15 Apr 2009 01:06:58 +0000 (21:06 -0400)]
stats
Joey Hess [Tue, 14 Apr 2009 01:04:05 +0000 (21:04 -0400)]
Merge branch 'master' of ssh://joey@git.kitenet.net/srv/git/pristine-tar
Joey Hess [Tue, 14 Apr 2009 01:03:43 +0000 (21:03 -0400)]
pristine-gz: Fix generation of gz files that have a null filename field.
Joey Hess [Mon, 13 Apr 2009 23:28:24 +0000 (19:28 -0400)]
fix bug if input filename contains a path
Joey Hess [Mon, 13 Apr 2009 23:14:04 +0000 (19:14 -0400)]
Add aliases ci and co for commit and checkout. Closes: #500388
Joey Hess [Mon, 13 Apr 2009 22:45:18 +0000 (18:45 -0400)]
pristine-gz: Avoid passing -F to zgz if --original-name is passed. This bug prevented pristine-gz gengz from recreating the gz in some cases.
Joey Hess [Mon, 13 Apr 2009 22:36:00 +0000 (18:36 -0400)]
pristine-tar: Avoid dying if tar tv exits nonzero.
This makes reproducing star's tarball work, even though tar gets upset while listing it and decides to die at the end.
(If the manifest is truncated, the delta just gets bigger..)
Joey Hess [Mon, 13 Apr 2009 22:34:17 +0000 (18:34 -0400)]
updates
Joey Hess [Mon, 13 Apr 2009 22:09:22 +0000 (18:09 -0400)]
avoid failure if file doesn't exist
This can happen if the filename is weird anf tar has encoded it.
In this case we're going to do a full sweep of the tree anyway,
so there's no need to worry.
Joey Hess [Mon, 13 Apr 2009 20:36:51 +0000 (16:36 -0400)]
pristine-gz binary deltas
* pristine-gz: Fall back to storing a binary delta, in the rare
cases where the file cannot be 100% reproduced. A warning message
is printed if the binary delta is not relatively small.
* Allows generating quite small deltas for php-geoip,
xsupplicant, libgraphics-colornames-perl, and
Ricoh-Aficio_2020D-Postscript.ppd.gz -- zgz gets very close to the
originals for all of these.
Closes: #518972, #506874
* For other things the deltas are not small, but only a few hundred
known tarballs fail that badly, and the total space wasted by all
of the oversized deltas for them would only be 100 mb. This seems
an accepable tradeoff to be able to reliably use it on anything.
Closes: #475778, #509703, #509707, #515256, #515331
* Increase gz delta version number to 3.0 if a binary delta file
is included.
Joey Hess [Mon, 13 Apr 2009 19:19:16 +0000 (15:19 -0400)]
quell warnigns from xdelta
It will often find there are no simularities and print a warning.
Joey Hess [Mon, 13 Apr 2009 19:14:18 +0000 (15:14 -0400)]
pristine-gz: use xdelta to check if a file was closely, but not completly, reproduced. This is not yet used except as a debugging aid when no variants succeed.
Joey Hess [Mon, 13 Apr 2009 18:52:42 +0000 (14:52 -0400)]
avoid redundancies in pristine-gz
Refactoring to avoid need to explicitly return the same args that were just
tested.
Joey Hess [Sun, 12 Apr 2009 17:20:40 +0000 (13:20 -0400)]
releasing version 0.22
Joey Hess [Sun, 12 Apr 2009 17:20:07 +0000 (13:20 -0400)]
Fix syntax mistake that could cause pristine-tar to in some cases fail on tarballs containing files named "0". Closes: #523773
Joey Hess [Thu, 26 Feb 2009 19:03:00 +0000 (14:03 -0500)]
auto-update spec file version number
Jimmy Tang [Wed, 25 Feb 2009 12:21:07 +0000 (12:21 +0000)]
added spec file
Joey Hess [Thu, 22 Jan 2009 20:08:41 +0000 (15:08 -0500)]
releasing version 0.21
Joey Hess [Thu, 22 Jan 2009 19:18:37 +0000 (14:18 -0500)]
Add support for GIT_DIR. Closes: #512619
Joey Hess [Mon, 29 Dec 2008 20:36:14 +0000 (15:36 -0500)]
releasing version 0.20
Joey Hess [Mon, 29 Dec 2008 20:33:21 +0000 (15:33 -0500)]
Avoid littering .orig.tar.gz.tmp files around by building intermediate tarball in the temp dir. Closes: #508965
Joey Hess [Fri, 12 Dec 2008 21:17:06 +0000 (16:17 -0500)]
releasing version 0.19
Joey Hess [Fri, 12 Dec 2008 00:13:08 +0000 (19:13 -0500)]
move zgz source into subdir
Joey Hess [Fri, 12 Dec 2008 00:12:07 +0000 (19:12 -0500)]
add bug closure
and todo item for the way-cool idea mentioned in the bug
Joey Hess [Fri, 12 Dec 2008 00:04:12 +0000 (19:04 -0500)]
let's toss in a copy of the GPL
Josh Triplett [Thu, 11 Dec 2008 13:57:45 +0000 (05:57 -0800)]
Remove file support from zgz, leaving only standard input and standard output
Now that pristine-gz no longer runs (and fights against) zgz
on files specified by name, remove support for compressing files,
allowing only standard input and standard output. This removes large
quantities of complex code from zgz.c.
In the process, move several global variables to local variables in
main.
Josh Triplett [Thu, 11 Dec 2008 12:48:04 +0000 (04:48 -0800)]
Incorporate my cut-down GNU gzip into zgz and use it in pristine-gz
With this change, zgz now provides support for explicitly setting the
timestamp and original filename in both GNU gzip and zlib gzip. Use
this support in pristine-gz to do all compression with -c, eliminating
the complexity caused by gzip removing files after compressing them.
The new pristine-gz requires the new zgz and vice-versa, but deltas
generated with the new pristine-gz do not depend on the new zgz.
Joey Hess [Wed, 3 Dec 2008 21:39:08 +0000 (16:39 -0500)]
Clarify bit in man page about what file formats are supported. Closes: #507322
Joey Hess [Wed, 3 Dec 2008 20:26:55 +0000 (15:26 -0500)]
Avoid exposing tar file names to the shell. Closes: #500499
Joey Hess [Wed, 3 Dec 2008 20:13:22 +0000 (15:13 -0500)]
Document existing long options. Closes: #499488
Joey Hess [Wed, 3 Dec 2008 19:56:45 +0000 (14:56 -0500)]
zgz: Avoid using uninitialized data as timestamp in -c mode. Closes: #507095
Joey Hess [Wed, 3 Dec 2008 19:46:18 +0000 (14:46 -0500)]
bug closure
Assuming #507110 doesn't have wider scope than adding the flag (ie, it's
still not used..)
Josh Triplett [Fri, 28 Nov 2008 03:09:16 +0000 (19:09 -0800)]
zgz: Add -T,--timestamp flag to explicitly set timestamp
Josh Triplett [Fri, 28 Nov 2008 03:36:58 +0000 (19:36 -0800)]
zgz: Remove support for -S,--suffix flag
Josh Triplett [Fri, 28 Nov 2008 03:10:56 +0000 (19:10 -0800)]
zgz: Fix usage message to stop identifying the program as gzip
Josh Triplett [Fri, 28 Nov 2008 02:26:33 +0000 (18:26 -0800)]
zgz: Allow empty string as original name
zgz treated an empty original name as no original name, but the gzip
format could potentially have the original name flag set with an
original name of "". With this change, zgz -o "" will produce such a
file.
Josh Triplett [Fri, 28 Nov 2008 00:42:43 +0000 (16:42 -0800)]
zgz: Remove support for -t,--test flag
Josh Triplett [Fri, 28 Nov 2008 00:40:36 +0000 (16:40 -0800)]
zgz: Remove more decompression-only code
Josh Triplett [Fri, 28 Nov 2008 00:25:46 +0000 (16:25 -0800)]
zgz: Remove support for the -v,--verbose flag
Josh Triplett [Fri, 28 Nov 2008 00:22:19 +0000 (16:22 -0800)]
zgz: Remove support for the -l,--list flag
Josh Triplett [Fri, 28 Nov 2008 00:15:25 +0000 (16:15 -0800)]
zgz: Fix printf format string warnings
Tested on both x86 and x86-64.
Josh Triplett [Fri, 28 Nov 2008 00:01:14 +0000 (16:01 -0800)]
zgz: remove unused variable "gzip", fixing a warning
Josh Triplett [Fri, 28 Nov 2008 00:00:13 +0000 (16:00 -0800)]
Add a .gitignore file
Joey Hess [Sat, 22 Nov 2008 23:26:09 +0000 (18:26 -0500)]
releasing version 0.18
Joey Hess [Sat, 22 Nov 2008 01:31:32 +0000 (20:31 -0500)]
pristine-gz: Avoid uncompressing the original file more than once. Closes: #506490
Joey Hess [Fri, 4 Jul 2008 18:47:30 +0000 (14:47 -0400)]
Correct -f order to come after --gnu.
Joey Hess [Fri, 4 Jul 2008 18:44:09 +0000 (14:44 -0400)]
releasing version 0.16
Joey Hess [Fri, 4 Jul 2008 18:29:47 +0000 (14:29 -0400)]
pristine-gz: Always pass -f to zgz
to support cases where the gzip header claims that the original input file
had an extension that suggests it was itself already compressed. (Although
it can't really be.) Not doing the same for gzip because -f doesn't cause
it to ignore extensions. See #475778
Joey Hess [Wed, 2 Jul 2008 16:50:10 +0000 (12:50 -0400)]
releasing version 0.15
Joey Hess [Wed, 2 Jul 2008 16:40:22 +0000 (12:40 -0400)]
zgz: Remove support for a GZIP env variable. We don't need this in pristine-tar, and if could screw things up if a user set it. Closes: #488986
Joey Hess [Mon, 2 Jun 2008 19:38:06 +0000 (15:38 -0400)]
changelog
Ansgar Burchardt [Mon, 2 Jun 2008 19:21:10 +0000 (21:21 +0200)]
add missing =back to option lists
Joey Hess [Sun, 4 May 2008 18:50:16 +0000 (14:50 -0400)]
releasing version 0.14
Joey Hess [Sun, 4 May 2008 18:44:34 +0000 (14:44 -0400)]
Put in a workaround for bug #479317, an incompatability in perl 5.10 that causes nonzero exit if a program exits while chdired into a subdirectory of a File::Temp temp directory.
Joey Hess [Sun, 4 May 2008 18:08:20 +0000 (14:08 -0400)]
Add build and install targets to Makefile.
Joey Hess [Thu, 24 Apr 2008 06:11:58 +0000 (02:11 -0400)]
Use debhelper v7; rules file minimisation.
Joey Hess [Sat, 19 Apr 2008 20:53:35 +0000 (16:53 -0400)]
releasing version 0.13
Joey Hess [Sat, 12 Apr 2008 15:46:23 +0000 (11:46 -0400)]
Man page typo fix. Closes: #475698
Joey Hess [Wed, 2 Apr 2008 17:16:55 +0000 (13:16 -0400)]
releasing version 0.12
Joey Hess [Wed, 2 Apr 2008 17:14:43 +0000 (13:14 -0400)]
pristine-tar: Fix some bugs when run on an uncompressed tarball.
Joey Hess [Fri, 21 Mar 2008 18:55:23 +0000 (14:55 -0400)]
typo
Joey Hess [Fri, 21 Mar 2008 18:50:44 +0000 (14:50 -0400)]
Unset $keep, don't keep temp dirs. Oops.
Joey Hess [Mon, 10 Mar 2008 19:57:40 +0000 (15:57 -0400)]
releasing version 0.10
Joey Hess [Mon, 11 Feb 2008 17:45:09 +0000 (12:45 -0500)]
close bug, the other part I decided not to do
Joey Hess [Mon, 11 Feb 2008 17:05:00 +0000 (12:05 -0500)]
* pristine-tar: Add -m option to specify a commit message.
Joey Hess [Wed, 6 Feb 2008 19:32:56 +0000 (14:32 -0500)]
releasing version 0.9
Joey Hess [Wed, 6 Feb 2008 18:40:09 +0000 (13:40 -0500)]
refactor
Joey Hess [Wed, 6 Feb 2008 18:37:59 +0000 (13:37 -0500)]
* Send all debug and verbose prints to stderr, reserving stdout for
outputting deltas etc.
* pristine-tar commit was not generating deltas against the specified
upstream branch, but against the unpacked contents of the source tarball.
Fix it to use the upstream branch, ensuring that no matter what branch is
given, the delta that is created can always recreate the source tarball.
Joey Hess [Tue, 5 Feb 2008 18:16:00 +0000 (13:16 -0500)]
* Prefer to commit to the ref that exactly matches what is specified at the
command line.
Joey Hess [Tue, 5 Feb 2008 17:54:48 +0000 (12:54 -0500)]
changelog
Joey Hess [Tue, 5 Feb 2008 17:53:41 +0000 (12:53 -0500)]
refactor git branch code
Cyril Brulebois [Tue, 5 Feb 2008 03:26:59 +0000 (04:26 +0100)]
Add smart pristine-tar branching for commits.
Operation “commit” will now:
- Use the local pristine-tar branch if there's one.
- Otherwise branch (and track) a remote pristine-tar branch if there's
a single one.
- Otherwise fail, suggesting running “git branch --track” on the
appropriate remote branch.
Joey Hess [Sat, 2 Feb 2008 22:29:30 +0000 (17:29 -0500)]
releasing version 0.8
Joey Hess [Sat, 2 Feb 2008 18:16:36 +0000 (13:16 -0500)]
typo
Joey Hess [Sat, 2 Feb 2008 18:11:16 +0000 (13:11 -0500)]
fix type extraction
Joey Hess [Sat, 2 Feb 2008 18:09:26 +0000 (13:09 -0500)]
bump standards-version
Joey Hess [Sat, 2 Feb 2008 18:07:44 +0000 (13:07 -0500)]
bz2 changes
change bz2 format -- type is "bz2" and the wrapper is just "wrapper" --
pristine-tar will look at the wrapper type to dispatch the right program
also, compacted the code to generate wrappers somewhat, avoid reopening the
file