]> arthur.barton.de Git - bup.git/log
bup.git
11 years agoMention what's "in-scope" for 0.25 in HACKING.
Rob Browning [Sat, 2 Mar 2013 18:59:34 +0000 (12:59 -0600)]
Mention what's "in-scope" for 0.25 in HACKING.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
11 years agoOfficially drop support for Python 2.4.
Rob Browning [Mon, 18 Feb 2013 20:42:34 +0000 (14:42 -0600)]
Officially drop support for Python 2.4.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Alexander Barton <alex@barton.de>
11 years agoUpdate HACKING to reflect the glorious death of tmp/pending/meta.
Rob Browning [Tue, 19 Feb 2013 00:47:47 +0000 (18:47 -0600)]
Update HACKING to reflect the glorious death of tmp/pending/meta.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
11 years agoAttempt to fix HACKING link in README.md.
Rob Browning [Tue, 19 Feb 2013 00:43:24 +0000 (18:43 -0600)]
Attempt to fix HACKING link in README.md.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
11 years agoAdd 'x' to the getopts call in t/compare-trees (i.e. allow -x).
Anton Eliasson [Fri, 1 Feb 2013 11:56:15 +0000 (12:56 +0100)]
Add 'x' to the getopts call in t/compare-trees (i.e. allow -x).

Signed-off-by: Anton Eliasson <devel@antoneliasson.se>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
11 years agoclear_index(): remove unused "cleared" variable.
Rob Browning [Sat, 16 Feb 2013 15:31:57 +0000 (09:31 -0600)]
clear_index(): remove unused "cleared" variable.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
11 years agobloom-cmd: don't explicitly create the bloom file (allow bloom.create()).
Patrick Rouleau [Wed, 13 Feb 2013 03:46:13 +0000 (22:46 -0500)]
bloom-cmd: don't explicitly create the bloom file (allow bloom.create()).

Don't explicitly create the bloom file since bloom.create() will
handle it, and will actually use the correct (binary) mode instead of
"w+".

The binary mode has no effect under Linux or Cygwin, but is important
under Windows.

Signed-off-by: Patrick Rouleau <prouleau72@gmail.com>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
11 years agoAdd "bup index --clear" to clear the index.
Zoran Zaric [Wed, 13 Feb 2013 02:29:52 +0000 (03:29 +0100)]
Add "bup index --clear" to clear the index.

Signed-off-by: Zoran Zaric <zz@zoranzaric.de>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
11 years agoAdd the filename/fd and invalid value to stat_struc_to_py error messages.
Rob Browning [Sat, 24 Nov 2012 01:55:17 +0000 (19:55 -0600)]
Add the filename/fd and invalid value to stat_struc_to_py error messages.

Thanks to Nathan Bird <ecthellion@gmail.com> for the initial report.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoStore metadata in the index, in bupindex.meta; only store unique values.
Rob Browning [Tue, 13 Nov 2012 01:02:14 +0000 (19:02 -0600)]
Store metadata in the index, in bupindex.meta; only store unique values.

See DESIGN for more information.

Update the index format header to 'BUPI\0\0\0\5' (version 5).

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoDocument accommodations for filesystems with low-resolution timestamps.
Rob Browning [Mon, 11 Feb 2013 04:54:07 +0000 (22:54 -0600)]
Document accommodations for filesystems with low-resolution timestamps.

...and some effects thereof.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoChange index; include atime; pack time as xstat timespec; use ns in memory.
Rob Browning [Sat, 10 Nov 2012 19:06:33 +0000 (13:06 -0600)]
Change index; include atime; pack time as xstat timespec; use ns in memory.

Update the index format header to 'BUPI\0\0\0\4' (version 4).

Change the index to include atimes, and write all times to bupindex as
xstat timespecs.  This is in preparation for indexing all metadata.
After moving all of the times to the index, there should be far fewer
unique instances of the remaining metadata in many/most cases.

Change the index and index-related code to handle all time
values as integer nanoseconds since the epoch, excepting the packed
format, which (as mentioned above) is now an xstat timespec.

After these changes the index-related in-memory and on-disk time value
handling should match that of the metadata code (i.e. metadata.py,
.bupm, etc.).

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
[rlb@defaultvalue.org: change 10e8 to 10**9 for ns per second.]

11 years agoHandle nonexistent groups in Metadata._apply_common_rec().
Rob Browning [Sat, 29 Sep 2012 16:21:32 +0000 (11:21 -0500)]
Handle nonexistent groups in Metadata._apply_common_rec().

Thanks to Oei, Yung-Chin <yungchin@yungchin.nl> for tracking this
down.

Reported-by: Yung-Chin <yungchin@yungchin.nl>
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoCache all password (pwd) and group (grp) database lookups.
Rob Browning [Sun, 23 Sep 2012 23:26:48 +0000 (18:26 -0500)]
Cache all password (pwd) and group (grp) database lookups.

Thanks to Jann Horn <jannhorn@googlemail.com> for determining that
even just caching user names and group names could provide a notable
performance improvement in some cases.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoOverhaul restore destination handling, and stripping/grafting behavior.
Rob Browning [Sat, 18 Aug 2012 20:26:28 +0000 (15:26 -0500)]
Overhaul restore destination handling, and stripping/grafting behavior.

Change restore to respond to source paths like this (assume outdir
corresponds to "." if there no -C argument or to -C outdir):

  /foo/what/ever - extract ever to outdir/ever
  /foo/what/ever/ - extract ever/* to outdir/*
  /foo/what/ever/. - extract ever/. to outdir/. (i.e. outdir == ever).

Also fix handling of top-level commit symlinks.  Previously bup would
just restore /foo/latest as a dummy symlink like this:

   latest -> ../.commit/SHA

Instead, dereference latest and restore the target instead.

Tighten up stripping/grafting with additional argument checks, and
handle any root collisions by creating a fake root dir (see comments
in save-cmd.py).  Bup still doesn't handle other path collisions yet,
i.e. if both /foo/bar and /bar are remapped to /bar.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoAvoid partial writes of config/config.h.
Rob Browning [Thu, 10 Jan 2013 02:23:08 +0000 (20:23 -0600)]
Avoid partial writes of config/config.h.

Write to config/config.h.tmp first, then rename it to config/config.h
once it's complete to avoid the possibility of a partially written
file.

Thanks to Paul Schulz <pschulz01@gmail.com> for reporting the problem.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoDon't pass --tmpdir to mktemp or expect it to have a default template.
Yung-Chin Oei [Tue, 4 Sep 2012 12:27:52 +0000 (13:27 +0100)]
Don't pass --tmpdir to mktemp or expect it to have a default template.

BSD mktemp does not understand --tmpdir, and does not have a default
pattern if none is supplied.

Signed-off-by: Yung-Chin Oei <yungchin@yungchin.nl>
Acked-by: Gabriel Filion <lelutin@gmail.com>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
11 years agoDon't pass -AX to rsync in t/compare-trees if xattrs aren't supported.
Rob Browning [Tue, 11 Sep 2012 00:36:18 +0000 (19:36 -0500)]
Don't pass -AX to rsync in t/compare-trees if xattrs aren't supported.

The -AX options won't be available if rsync doesn't report the xattr
capability, so test for that before trying to use them.

Thanks to Yung-Chin Oei <yungchin@yungchin.nl> for the suggested
approach and initial report.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoMove tree comparison to t/compare-trees; compare content by default.
Rob Browning [Sat, 4 Aug 2012 21:58:45 +0000 (16:58 -0500)]
Move tree comparison to t/compare-trees; compare content by default.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoAdd preliminary hardlink support for review.
Rob Browning [Sat, 5 May 2012 17:45:01 +0000 (12:45 -0500)]
Add preliminary hardlink support for review.

Thanks to Tim Riemenschneider <git@tim-riemenschneider.de> for
pointing out a compatibility problem (with older versions of Python)
in an earlier version of this patch.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoStop checking for empty stat values from recursive_dirlist().
Rob Browning [Sun, 13 Jan 2013 23:17:16 +0000 (17:17 -0600)]
Stop checking for empty stat values from recursive_dirlist().

Remove the "if pst:" guard in index-cmd.py, since it doesn't appear to
be possible for recursive_dirlist() to return None for the stat value.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoPrint a more meaningful error message when help can't run man.
Zoran Zaric [Sat, 26 Jan 2013 18:44:34 +0000 (19:44 +0100)]
Print a more meaningful error message when help can't run man.

Signed-off-by: Zoran Zaric <zz@zoranzaric.de>
[rlb@defaultvalue.org: elaborated on the error message a bit]
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
11 years agoExplicitly use "du -k" to set block size in t/test.sh.
Alexander Barton [Sat, 26 Jan 2013 18:48:47 +0000 (19:48 +0100)]
Explicitly use "du -k" to set block size in t/test.sh.

Commit e3514812 (Explicitly select the "du" block size in t/test.sh)
used the parameter "-B 1024" which isn't portable. Now use "du -k"
to explicitly get output in kilobytes.

At least du(1) on Linux (GNU coreutils), Mac OS X, FreeBSD, NetBSD,
and OpenBSD support this option.

Signed-off-by: Alexander Barton <alex@barton.de>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
11 years agoAdd *.tmp.meta to .gitignore and to "make clean".
Alexander Barton [Wed, 23 Jan 2013 10:09:10 +0000 (11:09 +0100)]
Add *.tmp.meta to .gitignore and to "make clean".

...since tmpindex.tmp.meta is now generated by "make check".

Signed-off-by: Alexander Barton <alex@barton.de>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
11 years agoUpdate bup repository address in Documentation/bup.md.
Rob Browning [Sat, 26 Jan 2013 03:51:53 +0000 (21:51 -0600)]
Update bup repository address in Documentation/bup.md.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
11 years agoFix path to git repository in ./README.md.
holmboe [Fri, 25 Jan 2013 16:18:43 +0000 (17:18 +0100)]
Fix path to git repository in ./README.md.

The repository at http://github.com/apenwarr/bup says to go here.

Signed-off-by: Henrik Holmboe <henrik@holmboe.se>
Reviewed-by: Gabriel Filion <lelutin@gmail.com>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoTry again to create a HACKING link in README.md.
Rob Browning [Fri, 25 Jan 2013 05:47:48 +0000 (23:47 -0600)]
Try again to create a HACKING link in README.md.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
11 years agoTry to create a HACKING link in README.md.
Rob Browning [Fri, 25 Jan 2013 05:44:33 +0000 (23:44 -0600)]
Try to create a HACKING link in README.md.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
11 years agoAdd ./HACKING and refer to it from README.md.
Rob Browning [Wed, 23 Jan 2013 02:31:12 +0000 (20:31 -0600)]
Add ./HACKING and refer to it from README.md.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
11 years agoExplicitly select the "du" block size in t/test.sh.
Rob Browning [Wed, 23 Jan 2013 01:19:20 +0000 (19:19 -0600)]
Explicitly select the "du" block size in t/test.sh.

Since du's default output can be affected by several environment
variables (DU_BLOCK_SIZE, BLOCK_SIZE and BLOCKSIZE), be explicit about
what we want via -B 1024.

Thanks to Michael Ekstrand <michael@elehack.net> for the original
report, and help with the fix.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
11 years agoMakefile: clean config/ during clean.
Yung-Chin Oei [Wed, 24 Oct 2012 02:25:43 +0000 (03:25 +0100)]
Makefile: clean config/ during clean.

Signed-off-by: Yung-Chin Oei <yungchin@yungchin.nl>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
11 years agoRemove dependency on linux/ext2_fs.h
Yung-Chin Oei [Wed, 24 Oct 2012 02:26:35 +0000 (03:26 +0100)]
Remove dependency on linux/ext2_fs.h

Due to a missing header in (some versions of) linux/ext2_fs.h,
configure's AC_CHECK_HEADERS test fails for this header, making it
appear "not found", and causing Linux-attr support to be disabled in bup
for no good reason.

Given that all the flags bup needs are available in linux/fs.h, we can
safely remove the requirement for linux/ext2_fs.h altogether, to work
around the problem.

Signed-off-by: Yung-Chin Oei <yungchin@yungchin.nl>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
11 years agoNote linux-libc-dev build dependency (for ext2_fs.h).
Rob Browning [Tue, 22 Jan 2013 01:32:55 +0000 (19:32 -0600)]
Note linux-libc-dev build dependency (for ext2_fs.h).

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
11 years agoExplain current installation process in README.md (i.e. "make install").
Rob Browning [Sun, 13 Jan 2013 05:38:02 +0000 (23:38 -0600)]
Explain current installation process in README.md (i.e. "make install").

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
11 years agoCheck the arguments passed to ./configure.
Rob Browning [Sat, 12 Jan 2013 16:23:04 +0000 (10:23 -0600)]
Check the arguments passed to ./configure.

For now, don't allow arguments, since ./configure doesn't actually
support any.  Previously "./configure --help" would print misleading
information, and any other arguments were silently ignored.

Thanks to Alexander Barton <alex@barton.de> for the report.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoProperly escape \r in bup-newliner.md.
Rob Browning [Tue, 1 Jan 2013 17:20:29 +0000 (11:20 -0600)]
Properly escape \r in bup-newliner.md.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
11 years agoNote additional repositories that may be needed for CentOS builds.
Rob Browning [Sat, 12 Jan 2013 19:59:01 +0000 (13:59 -0600)]
Note additional repositories that may be needed for CentOS builds.

Thanks to Paul Schulz <pschulz01@gmail.com> for the report.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
11 years agoAdd missing "install" argument to yum command in README.md.
Rob Browning [Thu, 10 Jan 2013 03:08:52 +0000 (21:08 -0600)]
Add missing "install" argument to yum command in README.md.

Thanks to Paul Schulz <pschulz01@gmail.com> for pointing it out.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
11 years agoAdd instructions for CentOS 6 to README.md.
Rob Browning [Thu, 10 Jan 2013 02:21:47 +0000 (20:21 -0600)]
Add instructions for CentOS 6 to README.md.

Thanks to Paul Schulz <pschulz01@gmail.com> for the information.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
11 years agoDon't assume that the tester's $top_dir will sort (via ls -a) before tmp/.
Rob Browning [Sun, 6 Jan 2013 20:43:11 +0000 (14:43 -0600)]
Don't assume that the tester's $top_dir will sort (via ls -a) before tmp/.

Thanks to Alexander Barton <alex@barton.de> for reporting the problem.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Alexander Barton <alex@barton.de>
11 years agoCheck for a Node's parent before trying to print its name in __repr__.
Martin Zimmermann [Sat, 29 Dec 2012 20:58:10 +0000 (21:58 +0100)]
Check for a Node's parent before trying to print its name in __repr__.

Signed-off-by: Martin Zimmermann <info@posativ.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
[rlb@defaultvalue.org: Edit commit message.]

11 years agoAdd a metadata() method to Node, File, Symlink, and Dir VFS objects.
Rob Browning [Sat, 21 Jul 2012 20:26:17 +0000 (15:26 -0500)]
Add a metadata() method to Node, File, Symlink, and Dir VFS objects.

The current implementation just populates the self._metadata field of
all of the objects in a directory (and of directory itself) from the
relevant .bupm file whenever metadata() is called on any one of those
objects.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
Reviewed-by: Gabriel Filion <lelutin@gmail.com>
11 years agoDefer errors when the restore target doesn't support relevant metadata.
Rob Browning [Sun, 3 Jun 2012 21:49:39 +0000 (16:49 -0500)]
Defer errors when the restore target doesn't support relevant metadata.

When the restore target doesn't support POSIX1e ACLs, extended
attributes, or Linux attributes, handle the failures via add_error()
(i.e. defer them).

Test these cases by creating a loopback VFAT filesystem
(testfs-limited) and using it as a restore target.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoDisallow empty graft points.
Rob Browning [Sun, 12 Aug 2012 23:18:26 +0000 (18:18 -0500)]
Disallow empty graft points.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoUpdate README regarding metadata support.
Rob Browning [Sat, 28 Jul 2012 16:42:23 +0000 (11:42 -0500)]
Update README regarding metadata support.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoHandle the possibility of a sgid/suid parent dir in one of the meta tests.
Rob Browning [Fri, 27 Jul 2012 17:04:35 +0000 (12:04 -0500)]
Handle the possibility of a sgid/suid parent dir in one of the meta tests.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoQuote EXIT cleanup trap properly in test-meta.sh.
Rob Browning [Wed, 18 Jul 2012 02:26:23 +0000 (21:26 -0500)]
Quote EXIT cleanup trap properly in test-meta.sh.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoUse python, not groups to grab a user group in t/test-meta.sh.
Rob Browning [Tue, 11 Sep 2012 01:53:45 +0000 (20:53 -0500)]
Use python, not groups to grab a user group in t/test-meta.sh.

Group names may actually contain spaces, and since the groups commmand
only reports a space-delimited list of groups on stdout, we had
a problem.

Thanks to "Oei, Yung-Chin" <yungchin@yungchin.nl> and Gabriel Filion
<lelutin@gmail.com> for tracking this down.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agot/test.sh: fix test failure when $top_dir has a dot-name
Oei, Yung-Chin [Mon, 3 Sep 2012 16:50:30 +0000 (17:50 +0100)]
t/test.sh: fix test failure when $top_dir has a dot-name

Fix the admittedly rare case where we're running tests from a tree
that has a dot-name at its base, which only 'bup ls -a' will print.
This problem was originally encountered on a system that keeps mounts
under '/.autofs/'.

Signed-off-by: Yung-Chin Oei <yungchin@yungchin.nl>
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
11 years agoRestore any metadata during "bup restore"; add "bup meta --edit".
Rob Browning [Sun, 27 Nov 2011 20:39:47 +0000 (14:39 -0600)]
Restore any metadata during "bup restore"; add "bup meta --edit".

Use "bup meta --edit" to test "bup restore" and the new tar/rsync-like
restoration behaviors.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
Tested-by: Alexander Barton <alex@barton.de>
11 years agoSave metadata during "bup save".
Rob Browning [Sat, 1 Oct 2011 17:24:36 +0000 (12:24 -0500)]
Save metadata during "bup save".

Record metadata in a hidden/mangled file named .bupm in each
directory, so that the metadata for /foo/ is stored in /foo/.bupm,
with the first entry being the metadata for foo/ itself.

Record an empty index file for each special file so that index entries
and .bupm entries correspond correctly.

Rework the strip/graft functions to return both the save-name, and the
underlying filesystem path to the save-name (when there is one) for
each component.  There may not be corresponding filesystem paths if
graft options rewrite the path prefix.

For now, record "/" metadata only when there are no strip/graft
options.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
Tested-by: Alexander Barton <alex@barton.de>
11 years agoUnmount and remove testfs instances correctly during make clean.
Rob Browning [Sun, 3 Jun 2012 17:18:18 +0000 (12:18 -0500)]
Unmount and remove testfs instances correctly during make clean.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoSince 'latest' is computed by revs[0], it must exist, so don't test it.
Rob Browning [Fri, 23 Nov 2012 20:32:39 +0000 (14:32 -0600)]
Since 'latest' is computed by revs[0], it must exist, so don't test it.

Remove the unnecessary "if latest:" conditional from
BranchList._mksubs().  Given the fact that latest used to be computed
via max(revs), and is now computed by revs[0], there's no way it
wouldn't exist.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
11 years agoUse branch tip, not newest date to choose 'latest' in BranchList._mksubs().
Rob Browning [Fri, 23 Nov 2012 20:18:52 +0000 (14:18 -0600)]
Use branch tip, not newest date to choose 'latest' in BranchList._mksubs().

Previously 'latest' was chosen in the VFS by taking max(revs), which
would pick the most recent commit by rev_list date, which only has a
resolution of integer seconds.

That approach could fail if two commits (i.e. two "bup save" runs)
executed close enough together that both commits ended up with the
same rev_list date.  In that case, the sort order was determined by
the commit hash, which is effectively random.

Since I couldn't think of a case where you wouldn't want 'latest' to
refer to the most recent commit (save) to the relevant branch,
'latest' is now computed as revs[0], i.e. the first commit returned by
rev_list.

Thanks to Zoran and Gabriel for some helpful sanity checks while
tracking this down.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
11 years agoAdd _open_noatime() and use it bup_get_linux_file_attr().
Rob Browning [Sat, 20 Oct 2012 17:55:27 +0000 (12:55 -0500)]
Add _open_noatime() and use it bup_get_linux_file_attr().

Reported-by: Yung-Chin Oei <yungchin@yungchin.nl>
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Yung-Chin Oei <yungchin@yungchin.nl>
11 years agoDepend on the kernel headers, not the ext2 headers, for Linux attr support.
Rob Browning [Sat, 20 Oct 2012 17:35:39 +0000 (12:35 -0500)]
Depend on the kernel headers, not the ext2 headers, for Linux attr support.

Switch to the kernel FS_* defines (in linux/ext2_fs.h) instead of the
EXT* defines (in ext2fs/ext2_fs.h -- from the ext2fs headers).

Also add FS_NOCOW_FL to the "modifiable flags" mask whenever it's
available.

Reported-by: Yung-Chin Oei <yungchin@yungchin.nl>
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Yung-Chin Oei <yungchin@yungchin.nl>
11 years agoAlways run metadata tests; disable root-level tests when not on Linux.
Rob Browning [Sun, 3 Jun 2012 20:18:01 +0000 (15:18 -0500)]
Always run metadata tests; disable root-level tests when not on Linux.

Disable the root-level test-meta.sh tests when the uname output
doesn't match Linux since they're not likely to work elsewhere right
now.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoConvert BUP_DIR to an absolute path so chdir() won't cause trouble.
Rob Browning [Sat, 18 Aug 2012 19:56:05 +0000 (14:56 -0500)]
Convert BUP_DIR to an absolute path so chdir() won't cause trouble.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoDefault to stdin/stdout in bup meta when -f is not specified.
Rob Browning [Mon, 26 Dec 2011 19:51:45 +0000 (13:51 -0600)]
Default to stdin/stdout in bup meta when -f is not specified.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoChange metadata "owner" to "user" everywhere to match stat(2), tar, etc.
Rob Browning [Sat, 24 Dec 2011 16:48:37 +0000 (10:48 -0600)]
Change metadata "owner" to "user" everywhere to match stat(2), tar, etc.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoFix metadata._set_up_path() to allow restoration of top-level files.
Rob Browning [Sat, 31 Dec 2011 02:40:27 +0000 (20:40 -0600)]
Fix metadata._set_up_path() to allow restoration of top-level files.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoDon't attempt to remove the Linux attr extents flag (see chattr(1)).
Rob Browning [Sat, 10 Dec 2011 19:24:58 +0000 (13:24 -0600)]
Don't attempt to remove the Linux attr extents flag (see chattr(1)).

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoMake "bup meta -tv" output look somewhat like "ls -l" output.
Rob Browning [Sun, 7 Aug 2011 17:04:49 +0000 (18:04 +0100)]
Make "bup meta -tv" output look somewhat like "ls -l" output.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoMake "bup meta -tvv" output identical to "bup xstat".
Rob Browning [Sun, 7 Aug 2011 17:01:08 +0000 (18:01 +0100)]
Make "bup meta -tvv" output identical to "bup xstat".

Move the bits of xstat-cmd.py that generate the detailed metadata
representation to metadata.py and xstat.py to support their use from
both "bup xstat" and "bup meta -tvv".

Add size to detailed metadata description when available.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoAdd symbolic mode information to xstat output, i.e. (drwxr-xr-x).
Rob Browning [Sun, 7 Aug 2011 16:26:28 +0000 (17:26 +0100)]
Add symbolic mode information to xstat output, i.e. (drwxr-xr-x).

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoDon't try to restore read-only chattr(1) attributes.
Rob Browning [Sat, 11 Jun 2011 16:39:23 +0000 (11:39 -0500)]
Don't try to restore read-only chattr(1) attributes.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoFix typo in _create_via_common_rec() exception message.
Rob Browning [Wed, 29 Jun 2011 03:09:49 +0000 (22:09 -0500)]
Fix typo in _create_via_common_rec() exception message.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoRecord the file size as Metadata.size when possible.
Rob Browning [Wed, 29 Jun 2011 03:07:10 +0000 (22:07 -0500)]
Record the file size as Metadata.size when possible.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoFix types and add missing elements to Entry.__repr__() format string.
Rob Browning [Tue, 28 Jun 2011 23:52:29 +0000 (18:52 -0500)]
Fix types and add missing elements to Entry.__repr__() format string.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoOn ENOTTY or ENOSYS, assume filesystem doesn't support Linux attributes.
Rob Browning [Sun, 12 Jun 2011 16:33:57 +0000 (11:33 -0500)]
On ENOTTY or ENOSYS, assume filesystem doesn't support Linux attributes.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
11 years agoRectify bup-split documentation for the fanout option.
Gabriel Filion [Tue, 9 Oct 2012 03:52:35 +0000 (23:52 -0400)]
Rectify bup-split documentation for the fanout option.

The --fanout option is no longer the maximum number of objects in a
tree, but an average. The documentation, however was never updated and
this can lead to misunderstandings.

Also add a "bold" delimiter that was forgotten in the command summary in
its documentation page.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
11 years agoDocumentation: Protect file extensions from start of line.
Gabriel Filion [Mon, 1 Oct 2012 07:13:53 +0000 (03:13 -0400)]
Documentation: Protect file extensions from start of line.

In the documentation files, we use file extensions as words to simplify
the text. When compiling man pages from the Markdown files, it is
possible that an extension lands at the beginning of a line.

In such a case, the extension is mistakenly identified as a Groff macro.
It seems as though Groff simply ignores it since it is not a known
macro, but emits a warning about the syntax.

This was caught thanks to the debian package's lintian output at:

http://lintian.debian.org/maintainer/jmtd@debian.org.html#bup

Since we're putting highlighting on file extensions, we should add it to
all cases, even though there's not risk of it landing at the beginning
of a line. This way, the documentation looks better standardized.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
11 years agoMake import-rdiff-backup's output more verbose
Zoran Zaric [Mon, 24 Sep 2012 22:30:15 +0000 (00:30 +0200)]
Make import-rdiff-backup's output more verbose

Signed-off-by: Zoran Zaric <zz@zoranzaric.de>
Reviewed-by: Gabriel Filion <lelutin@gmail.com>
11 years agoCatch ^C in import-rdiff-backup
Zoran Zaric [Mon, 24 Sep 2012 22:30:14 +0000 (00:30 +0200)]
Catch ^C in import-rdiff-backup

Signed-off-by: Zoran Zaric <zz@zoranzaric.de>
Reviewed-by: Gabriel Filion <lelutin@gmail.com>
11 years agoAdd a testcase for the import-rdiff-backup command
Zoran Zaric [Mon, 24 Sep 2012 22:30:13 +0000 (00:30 +0200)]
Add a testcase for the import-rdiff-backup command

Signed-off-by: Zoran Zaric <zz@zoranzaric.de>
Reviewed-by: Gabriel Filion <lelutin@gmail.com>
11 years agoAdd documentation for import-rdiff-backup
Zoran Zaric [Mon, 24 Sep 2012 22:30:12 +0000 (00:30 +0200)]
Add documentation for import-rdiff-backup

Signed-off-by: Zoran Zaric <zz@zoranzaric.de>
Reviewed-by: Gabriel Filion <lelutin@gmail.com>
11 years agoImplement a import-rdiff-backup command
Zoran Zaric [Mon, 24 Sep 2012 22:30:11 +0000 (00:30 +0200)]
Implement a import-rdiff-backup command

Signed-off-by: Zoran Zaric <zz@zoranzaric.de>
Reviewed-by: Gabriel Filion <lelutin@gmail.com>
11 years agogit.py: avoid repeated string-copying in tree_decode()
Yung-Chin Oei [Wed, 26 Sep 2012 19:35:45 +0000 (20:35 +0100)]
git.py: avoid repeated string-copying in tree_decode()

git.tree_decode showed bad perfomance when dealing with large trees,
because it required string-copying quadratically in the number of tree
elements. By removing unnecessary copying, performance is improved at
all tree sizes, and significantly so for larger trees.

The problem became particularly apparent in combination with another bug
in bup (patch for which forthcoming), that allowed trees to grow without
bound when backing up sparse files.

Reported-by: trebor <robert.rebstock@tempelhof-projekt.de>
Signed-off-by: Yung-Chin Oei <yungchin@yungchin.nl>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
11 years agoEnable the reflog when initializing the repository.
Zoran Zaric [Thu, 27 Sep 2012 13:15:55 +0000 (15:15 +0200)]
Enable the reflog when initializing the repository.

Avery noticed that this wasn't being done for bare repositories, so
ask for it explicitly.

Reported-by: Avery Pennarun <apenwarr@gmail.com>
Signed-off-by: Zoran Zaric <zz@zoranzaric.de>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
11 years agoChange a few Makefile vars using ${} to use $() to match the rest.
Rob Browning [Wed, 26 Sep 2012 18:53:58 +0000 (13:53 -0500)]
Change a few Makefile vars using ${} to use $() to match the rest.

Also get rid of one annoying bright pink (in emacs) orphaned tab.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
11 years agoFix GNU make detection and usage.
Thomas Klausner [Mon, 24 Sep 2012 12:45:33 +0000 (14:45 +0200)]
Fix GNU make detection and usage.

BSD make errors out since the Makefiles use GNU make specific code.
However, on BSD systems, 'make' is BSD make and not GNU make.

make(1) does set ${MAKE} to argv[0], so use this to pass the correct
make executable name down.

Also, prefer gmake to make, if it exists, since we want GNU make.

Signed-off-by: Thomas Klausner <tk@giga.or.at>
Tested-by: Gabriel Filion <lelutin@gmail.com>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
11 years agoCalling bup-server with "-r host:" fails to activate dumb mode.
Oei, Yung-Chin [Tue, 18 Sep 2012 13:13:13 +0000 (14:13 +0100)]
Calling bup-server with "-r host:" fails to activate dumb mode.

When no remote directory is supplied to the -r option, no set-dir
command is sent to the server. This has the weird side effect that the
server actually does not check whether it needs to be in "smart" or
"dumb" mode.

By forcing all commands to make that verification, we'll ensure that the
server mode is correct.

Signed-off-by: Yung-Chin Oei <yungchin@yungchin.nl>
Reviewed-by: Gabriel Filion <lelutin@gmail.com>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
11 years agoChange userfullname() default back to "user%d" for the moment.
Rob Browning [Mon, 24 Sep 2012 00:08:38 +0000 (19:08 -0500)]
Change userfullname() default back to "user%d" for the moment.

This was changed in the previous GECOS patch, but since username() has
the "user%d" fallback too, I think we should change both, or neither,
and should probably discuss it a bit more first.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
11 years agoFallbacks for missing GECOS data; this solves a test issue.
Michael Witten [Mon, 18 Jun 2012 06:06:36 +0000 (06:06 +0000)]
Fallbacks for missing GECOS data; this solves a test issue.

See the thread starting here:

  Subject: tests fail while trying to compile & install on arch linux
  Date: Sun, 20 May 2012 23:08:20 +0300
  From: Alper Kanat <tunix@raptiye.org>
  Message-ID: <CAPMuxnSmeHLcP=9M7uYPn6LQeCGNfZOF9DgCFQBHCzwR_DQ0Cg@mail.gmail.com>

When an entry for the current user has been successfully retrieved from the
Unix password database by the function:

  bup.helpers.usersfullname

then solely the GECOS field has been used to formulate an author's and
committer's full name for constructing a git commit object. Unfortunately,
this field may well be empty for a great many users; for such a user, the
result has been a full name that is the empty string.

This had not been a problem until the following commit was made in the course
of the development of `git' itself:

  commit 4b340cfab9c7a18e39bc531d6a6ffaffdf95f62d
  Author:     Junio C Hamano <gitster@pobox.com>
  AuthorDate: Sun Mar 11 01:25:43 2012 -0800
  Commit:     Junio C Hamano <gitster@pobox.com>
  CommitDate: Sun Mar 11 03:56:50 2012 -0700

      ident.c: add split_ident_line() to parse formatted ident line

      The commit formatting logic format_person_part() in pretty.c
      implements the logic to split an author/committer ident line into
      its parts, intermixed with logic to compute its output using these
      piece it computes.

      Separate the former out to a helper function split_ident_line() so
      that other codepath can use the same logic, and rewrite the function
      using the helper function.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
The new `split_ident_line()' function added by that commit is written
under the stricter assumption that the user's name is *not* the empty
string; clearly, this assumption is broken by what `bup' has been doing
when the user's GECOS field is empty.

Consequently, the easiest solution (as far as `bup' development is
concerned) is to make sure that the full name is never the empty
string. This is achieved by using fallbacks when the GECOS field
yields the empty string:

  0. The user's login name is tried.
  1. The string "user <uid>" is composed, where `<uid>' is the
     current process's user identifier.

Essentially, this seems to solve the problem, as it allows tests to
pass on my system. However, both:

  bup.helpers.username
  bup.helpers.usersfullname

still rely on Unix-specific functionality, which is not really acceptable.

Signed-off-by: Michael Witten <mfwitten@gmail.com>
Reviewed-by: Gabriel Filion <lelutin@gmail.com>
Tested-by: Zoran Zaric <zz@zoranzaric.de>
11 years agot/test.sh: add "-a" to ls invocation when testing for .bup exclusion.
Yung-Chin Oei [Mon, 3 Sep 2012 17:10:09 +0000 (18:10 +0100)]
t/test.sh: add "-a" to ls invocation when testing for .bup exclusion.

The bup-exclude test seems be to checking if .bup/ is properly
excluded from the backup, but 'bup ls' will only show this if given
the -a switch.

Signed-off-by: Yung-Chin Oei <yungchin@yungchin.nl>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
11 years agoAdd BUP_DIR to the subprocess environment during set-dir on the server.
Gabriel Filion [Sat, 28 Jul 2012 03:02:10 +0000 (23:02 -0400)]
Add BUP_DIR to the subprocess environment during set-dir on the server.

In the normal flow of a remote backup, the client indicates to the
server end where it wants to save data (e.g. where the bup repository
is) by issuing a "set-dir path" command.

This command on the server end records the path in a global variable.
But it doesn't place it in the environment. This causes any subprocess
forked on the server end to be ignorant about the location of the
bup repository and causes errors such as this one:

Traceback (most recent call last):
  File "/usr/lib/bup/cmd/bup-midx", line 231, in <module>
    git.check_repo_or_die()
  File "/usr/lib/bup/bup/git.py", line 851, in check_repo_or_die
    init_repo()
  File "/usr/lib/bup/bup/git.py", line 828, in init_repo
    _git_wait('git init', p)
  File "/usr/lib/bup/bup/git.py", line 887, in _git_wait
    raise GitError('%s returned %d' % (cmd, rv))
bup.git.GitError: git init returned 1
['/usr/bin/bup', 'midx', '--auto', '--dir',
'/backup/test/objects/pack']: returned 1

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
11 years agoRemove useless code in main.py around the -d option
Gabriel Filion [Sat, 28 Jul 2012 04:54:12 +0000 (00:54 -0400)]
Remove useless code in main.py around the -d option

While debugging another problem with BUP_DIR, I saw a part of the
code that looked kinda suspicious (not in itself, but in the context of
the file):

  115 subcmd_env = os.environ
  116 if dest_dir:
  117     subcmd_env.update({"BUP_DIR" : dest_dir})

the subcmd_env variable is never used in main.py. However, when I
removed that part, the -d option stopped working and bup used ~/.bup
instead: so it _is_ doing what we want it to.

The reason why it's working is that line 115 is actually not creating a
copy of the dict, but rather simply pointing to the same dict. so the
call to update() actually changes the environment for the main program,
which is actually quite alright (e.g. it supercedes the environment
variable and ensures that the path given to -d is inherited into
subprocesses)

Now the problem is that this code is very not obvious about what it
does. Plus, it's a couple of useless lines that we need to maintain.
Let's just remove any extraneous work and make the addition to the
environment triggered by the -d option as obvious and concise as
possible.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
11 years agoChange --strip-prefix to --strip-path in the bup save manpage.
Gabriel Filion [Sun, 22 Jul 2012 04:10:40 +0000 (23:10 -0500)]
Change --strip-prefix to --strip-path in the bup save manpage.

Thanks to Stefan Buller <stefan.buller@gmail.com> for pointing out the
problem.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
11 years agoMention DESIGN in the README.
Rob Browning [Sun, 22 Jul 2012 04:07:35 +0000 (23:07 -0500)]
Mention DESIGN in the README.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
11 years agoResolve bup argv[0] symlinks.
Daniel Hahler [Sat, 12 May 2012 19:28:22 +0000 (14:28 -0500)]
Resolve bup argv[0] symlinks.

Resolve any symlinks in argv[0] so that the subsequent PYTHONPATH
adjustment will work properly.

Signed-off-by: Daniel Hahler <git@thequod.de>
Acked-by: Gabriel Filion <lelutin@gmail.com>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
11 years agoFix and regularize "<>-" escaping in Documentation/*.md.
Rob Browning [Sun, 8 Apr 2012 17:42:45 +0000 (12:42 -0500)]
Fix and regularize "<>-" escaping in Documentation/*.md.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
11 years agoAdd a bup "tick" before indexing to avoid timestamp race.
Rob Browning [Sat, 24 Mar 2012 16:47:09 +0000 (11:47 -0500)]
Add a bup "tick" before indexing to avoid timestamp race.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
11 years agolib/bup/bloom.py: fix minor documentation typos.
Rob Browning [Sat, 18 Feb 2012 00:50:53 +0000 (18:50 -0600)]
lib/bup/bloom.py: fix minor documentation typos.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
11 years agoDocumentation/bup-save.md: change --strip-prefix to --strip-path.
Jakob Matthes [Tue, 17 Jan 2012 20:10:12 +0000 (21:10 +0100)]
Documentation/bup-save.md: change --strip-prefix to --strip-path.

Signed-off-by: Jakob Matthes <jakob.matthes@gmail.com>
Reviewed-by: Zoran Zaric <lists@zoranzaric.de>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
11 years agoDocumentation/bup-save.md: document --date option.
Jakob Matthes [Sat, 4 Feb 2012 15:08:05 +0000 (16:08 +0100)]
Documentation/bup-save.md: document --date option.

Signed-off-by: Jakob Matthes <jakob.matthes@gmail.com>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
11 years agoExtend README for NetBSD.
Greg Troxel [Fri, 16 Dec 2011 14:53:47 +0000 (09:53 -0500)]
Extend README for NetBSD.

Add NetBSD to the list of systems on which bup is known to work.  Give
hints for bup usage on NetBSD, including the location of the fuse
bindings and the pkgsrc entry.  Caution about incorrect cycle
detection on fuse mounts.  Add pkgsrc URLs.

Signed-off-by: Greg Troxel <gdt@lexort.com>
Reviewed-by: Gabriel Filion <lelutin@gmail.com>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
11 years agocmd/drecurse: correctly pass excluded_paths to recursive_dirlist
Aneurin Price [Thu, 12 Jan 2012 16:15:23 +0000 (16:15 +0000)]
cmd/drecurse: correctly pass excluded_paths to recursive_dirlist

The excluded_paths argument was being passed as a positional argument,
but its position actually corresponded to the 'bup_dir' argument, so
'bup drecurse --exclude=/foo/bar /foo' has never worked.

Signed-off-by: Aneurin Price <aneurin.price@gmail.com>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
11 years agoAdd "xstat" itself to the xstat optspec usage message.
Rob Browning [Sat, 14 Jan 2012 18:16:49 +0000 (12:16 -0600)]
Add "xstat" itself to the xstat optspec usage message.

Thanks to Jean-Baptiste <jbd@jbdenis.net> for pointing it out.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
11 years agoSet python-mode python-indent to 4 in .dir-locals.el.
Rob Browning [Sat, 31 Dec 2011 00:53:38 +0000 (18:53 -0600)]
Set python-mode python-indent to 4 in .dir-locals.el.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
11 years agoMention that option values will be converted to integers when possible.
Rob Browning [Wed, 28 Dec 2011 01:41:40 +0000 (19:41 -0600)]
Mention that option values will be converted to integers when possible.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>