Skip to content
Commits on May 8, 2012
  1. Resolve symlinks with argv[0]/exe.

    committed May 8, 2012
    When using a symlink to access bup, this needs to be resolved to
    make the PYTHONPATH adjustment work properly.
    
    For example, with bup in ~/src/bup and ~/src/bup-next, I have a symlink
    /usr/local/bin/bup to point at either of them.
    The bup library is in ~/src/bup*/lib of course, and not
    /usr/lobal/bin/lib.
Commits on Mar 20, 2012
  1. @apenwarr

    options.py: get rid of end-of-line whitespace.

    apenwarr committed Mar 19, 2012
    Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
Commits on Mar 19, 2012
  1. @apenwarr

    options.py: clean up handling of --no-* options.

    apenwarr committed Mar 19, 2012
    The particular bug that triggered this (in a project other than bup) was of
    the form:
    
    	n,no-stupid       don't be stupid
    
    Where it would actually end up setting stupid=1 by accident, and -n would
    mean --stupid, not --no-stupid.  As part of fixing it, you can now also do
    this:
    
    	n,no-stupid,smart   don't be stupid (ie. be smart)
    
    and it'll work as it should: n == smart == no-stupid == not stupid.
    
    Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
  2. @apenwarr

    options.py: don't crash given semi-invalid optspecs.

    apenwarr committed Mar 19, 2012
    It's kind of weird to provide an argument without a description, but it's
    not crash-worthy (especially when the crash was a totally unhelpful
    exception stack trace).  While we're here, test for a couple of other ones
    that didn't cause a crash, but we want to keep it that way.
    
    And fix the copyright message; actually options.py started in 2010.
    
    Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
Commits on Feb 22, 2012
  1. @apenwarr

    cmd/ftp: don't do MacOS readline bindings on non-MacOS.

    apenwarr committed Feb 22, 2012
    I thought it was harmless, but apparently it makes the 'b' command not work
    on Linux machines.  Oops.
    
    Thanks to Gabriel Filion and gernot on IRC for reporting this.
    
    Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
Commits on Jan 19, 2012
  1. @apenwarr

    cmd/ftp: fix tab completion on MacOS.

    apenwarr committed Jan 19, 2012
    MacOS doesn't use the "real" readline, and the clone it uses is slightly
    incompatible in its bindings.  Just bind both and it seems to work on both
    MacOS and Linux.
    
    Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
Commits on Nov 4, 2011
  1. @apenwarr

    options.py: relicense to 2-clause BSD license.

    apenwarr committed Nov 4, 2011
    At the request of a few people who would like to us it in their own
    projects.
    
    Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
Commits on Oct 31, 2011
  1. @apenwarr

    bupsplit.c: remove extra-large stack-allocated array from selftest().

    apenwarr committed Oct 31, 2011
    In some rare cases involving userspace threads (where you're running the
    selftest function for some reason?) this could cause stack overflow or
    excess memory usage.  Let's just do it with plain malloc().
    
    Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
Commits on Jun 9, 2011
  1. @apenwarr

    Disable t/test-meta.sh in 'make test' unless TEST_META=1

    apenwarr committed Jun 8, 2011
    In other words:
    
    	make test                # doesn't run metadata tests
    	TEST_META=1 make test    # does run metadata tests
    
    The metadata tests still fail randomly on some people's computers, but we're
    falling too far behind and it's time to make a release.  The metadata stuff
    isn't used anywhere critical in bup yet, so it's okay to leave it in but not
    test it for now.
    
    Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
  2. @apenwarr

    Merge branch 'meta'

    apenwarr committed Jun 8, 2011
    * meta:
      Add utimes/lutimes implementations of _helpers utime() and lutime().
      Replace _helpers.utimensat() with utime() and lutime().
      Test for available nanosecond stat timestamp members.
      Add config.h dependency to _helpers in csetup.py.
      Add -*-shell-script-*- to configure.inc.
      Use FS_IOC_GETFLAGS/FS_IOC_SETFLAGS directly as the preprocessor guards.
      Verify the expected length of saved_errors in tmetadata.py.
      Don't use xstat.lutime() in test-meta.sh when xstat.utime() will do.
      Add meta support for restoring filesystem sockets.
      Add _recognized_file_types(); defer error for unrecognized restore.
      index.py: new format (V3), with inodes, link counts, and 64-bit times.
      Cap timestamps in index to avoid needing to worry about fractional parts.
      index.py: factor out an Entry._fixup_time method.
      Rely on options.parse() for more of the meta and xstat argument processing.
      Remove vestigal clean target comment regarding pybuptest.tmp permissions.
      Add initial timespec behavior tests.
      Return None from bup_set_linux_file_attr() and bup_utimensat().
      Replace os.*stat() with xstat.*stat(); use integer ns for all fs times.
      Drop xstat floating point timestamp support -- use integer ns.
      xstst-cmd.py: test for _have_utimensat rather than _have_ns_fs_timestamps.
  3. @rlbdv @apenwarr

    Add utimes/lutimes implementations of _helpers utime() and lutime().

    rlbdv committed with apenwarr May 31, 2011
    Signed-off-by: Rob Browning <rlb@defaultvalue.org>
  4. @rlbdv @apenwarr

    Replace _helpers.utimensat() with utime() and lutime().

    rlbdv committed with apenwarr May 31, 2011
    Rework utimensat() handling in preparation for the addition of
    utimes/lutimes based fallbacks.
    
    Publish lutime() and utime() at the Python level from _helpers.c
    rather than utimensat() itself.
    
    Drop the _have_utimensat tests in favor of testing xstat.lutime which
    will be false when xstat.lutime() is not available.
    
    Move bup_utimensat() Python argument parsing to
    bup_parse_xutime_args() and use it to implement bup_utime_ns() and
    bup_lutime_ns().  This argument parsing will eventually be shared by
    the utimes/lutimes based fallbacks.
    
    Remove _helpers.AT_FDCWD and _helpers.AT_SYMLINK_NOFOLLOW since
    utimensat is no longer published on the Python side.
    
    Signed-off-by: Rob Browning <rlb@defaultvalue.org>
  5. @rlbdv @apenwarr

    Test for available nanosecond stat timestamp members.

    rlbdv committed with apenwarr May 31, 2011
    Use st_atim, st_mtim, and st_ctim when available, and fall back to
    st_atimensec, st_mtimensec, and st_ctimensec.  If neither are
    available, return 0 ns values.
    
    Signed-off-by: Rob Browning <rlb@defaultvalue.org>
  6. @rlbdv @apenwarr

    Add config.h dependency to _helpers in csetup.py.

    rlbdv committed with apenwarr May 31, 2011
    Signed-off-by: Rob Browning <rlb@defaultvalue.org>
  7. @rlbdv @apenwarr

    Add -*-shell-script-*- to configure.inc.

    rlbdv committed with apenwarr May 31, 2011
    Signed-off-by: Rob Browning <rlb@defaultvalue.org>
  8. @rlbdv @apenwarr

    Use FS_IOC_GETFLAGS/FS_IOC_SETFLAGS directly as the preprocessor guards.

    rlbdv committed with apenwarr May 31, 2011
    Signed-off-by: Rob Browning <rlb@defaultvalue.org>
  9. @rlbdv @apenwarr

    Verify the expected length of saved_errors in tmetadata.py.

    rlbdv committed with apenwarr May 31, 2011
    Signed-off-by: Rob Browning <rlb@defaultvalue.org>
  10. @rlbdv @apenwarr

    Don't use xstat.lutime() in test-meta.sh when xstat.utime() will do.

    rlbdv committed with apenwarr May 31, 2011
    Signed-off-by: Rob Browning <rlb@defaultvalue.org>
  11. @rlbdv @apenwarr

    Add meta support for restoring filesystem sockets.

    rlbdv committed with apenwarr May 31, 2011
    Signed-off-by: Rob Browning <rlb@defaultvalue.org>
  12. @rlbdv @apenwarr

    Add _recognized_file_types(); defer error for unrecognized restore.

    rlbdv committed with apenwarr May 31, 2011
    Defer an error if an unrecognized file type is encountered during
    metadata restoration -- whether during path creation
    (i.e. --start-extract) or metadata application
    (i.e. --finish-extract).
    
    Signed-off-by: Rob Browning <rlb@defaultvalue.org>
  13. @Aneurin @apenwarr

    make clean: Remove dlls from child directories

    Aneurin committed with apenwarr Jun 1, 2011
    Fix the 'clean' makefile rule to remove .dll files from subdirectories,
    to match .so files.
    
    Signed-off-by: Aneurin Price <aneurin.price@gmail.com>
  14. @Aneurin @apenwarr

    configure.inc: strip trailing characters from 'uname -s' output

    Aneurin committed with apenwarr Jun 1, 2011
    On Cygwin, 'uname -s' includes the version of the underlying operating
    system; here it is 'CYGWIN_NT-6.0'. The configure script attempts to
    define this in config/config.h, but '#define OS_CYGWIN_NT-6.0 1' is an
    invalid macro definition.
    
    This truncates the value to just 'CYGWIN', to match $OS in the Makefile.
    
    Signed-off-by: Aneurin Price <aneurin.price@gmail.com>
Commits on Jun 7, 2011
  1. @apenwarr

    Update bupsplit.[ch] to have a less restrictive BSD-style license.

    apenwarr committed Jun 6, 2011
    Nobody else owns any copyright on those files, so I can do this without
    asking anyone else for permission :)
    
    Some people have asked to use these files in their own non-GPL/LGPL
    projects, and although the LGPL permits this, the files are so small that
    there's no reason to be obnoxious about it.  So let's just let them do it
    the easy way.
    
    Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
Commits on May 31, 2011
  1. @apenwarr

    Merge branch 'master' into meta

    apenwarr committed May 31, 2011
    * master:
      Improve formatting of error and warning messages.
  2. @apenwarr

    index.py: new format (V3), with inodes, link counts, and 64-bit times.

    Aaron M. Ucko committed with apenwarr May 30, 2011
    To allow unambiguous preservation of hard-link structure, index device
    numbers, inode numbers (new) and link counts (new) at 64 bits apiece
    per GNU libc, which uses uint64_t, uint64_t, and unsigned long respectively.
    
    Take the opportunity to use 64 bits for mtime and ctime as well, both
    to be ready for Y2038 and to handle NTFS's zero value (Y1600).
  3. @apenwarr

    Cap timestamps in index to avoid needing to worry about fractional pa…

    Aaron M. Ucko committed with apenwarr May 30, 2011
    …rts.
    
    Avoid a potential race condition by which bup's use of whole-second
    granularity for timestamps in the index could let it theoretically
    miss some last-second changes by capping timestamps to at most one
    second before the start of indexing per a newly introduced mandatory
    parameter to bup.index.Writer.
  4. @apenwarr

    index.py: factor out an Entry._fixup_time method.

    Aaron M. Ucko committed with apenwarr May 30, 2011
    Factor Entry._fixup_time out of Entry._fixup to reduce (minor) logic
    duplication and prepare for upcoming tweaks to timestamp indexing.
  5. @apenwarr

    Improve formatting of error and warning messages.

    Aaron M. Ucko committed with apenwarr May 30, 2011
    log() trailing newlines as appropriate.  Fix a format string typo in
    lib/bup/git.py encountered when verifying that exceptions' string
    values already end with newlines.
Commits on May 30, 2011
  1. @apenwarr

    Merge branch 'master' into meta

    apenwarr committed May 29, 2011
    * master: (27 commits)
      t/test.sh: 'ls' on NetBSD sets -A by default as root; work around it.
      README: add a list of binary packages
      README: rework the title hierarchy
      Clarify the message when the BUP_DIR doesn't exist.
      Refactor: unify ls/ftp-ls code
      ftp/ls: Adjust documentation
      ls: include hidden files when explicitly requested
      ftp: implement ls -s (show hashes)
      ftp/ls: columnate output attached to a tty, else don't
      ftp: don't output trailing line for 'ls'
      ftp: output a newline on EOF when on a tty
      config: more config stuff to config/ subdir, call it from Makefile.
      cmd/{split,save}: support any compression level using the new -# feature.
      options.py: add support for '-#' style compression options.
      Add documentation for compression levels
      Add test case for compression level
      Add compression level options to bup save and bup split
      Make zlib compression level a parameter for Client
      Make zlib compression level a parameter of git.PackWriter
      Use is_superuser() rather than checking euid directly
      ...
    
    Conflicts:
    	lib/bup/metadata.py
  2. @apenwarr

    t/test.sh: 'ls' on NetBSD sets -A by default as root; work around it.

    apenwarr committed May 29, 2011
    We have to undo it by grepping out any dotfiles.  (Normal OSes don't
    auto-set -A, but this is harmless there.)
    
    Reported by Thomas Klausner.  Fix suggested by Gabriel Filion.
    
    Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
  3. @apenwarr

    Merge branch 'config'

    apenwarr committed May 29, 2011
    * config:
      config: more config stuff to config/ subdir, call it from Makefile.
      Initial import of configure.sh
Commits on May 29, 2011
  1. @lelutin @apenwarr

    README: add a list of binary packages

    lelutin committed with apenwarr May 16, 2011
    Debian/Ubuntu are known to have bup packages in their archives, thanks
    to Jon Dowland.
    
    Also, a NetBSD package is currently being built, as was shared by Thomas
    Klausner. However, it is still not found in the official NetBSD packages
    search engine.
    
    Signed-off-by: Gabriel Filion <lelutin@gmail.com>
  2. @lelutin @apenwarr

    README: rework the title hierarchy

    lelutin committed with apenwarr May 16, 2011
    In Markdown, a line underlining another one with '=' characters
    represents a first level title, while a line underlining another one
    with '-' characters represents a second level title.
    
    Rework the title levels to gain visibility on the different sections and
    to allow to split "Getting started" more easily (see my next commit for
    additions to this section).
    
    Signed-off-by: Gabriel Filion <lelutin@gmail.com>
  3. @apenwarr

    Clarify the message when the BUP_DIR doesn't exist.

    apenwarr committed May 29, 2011
    Now it reminds you to run 'bup init'.  Problem reported by Thomas Klausner.
    
    Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
  4. @lelutin @apenwarr

    Refactor: unify ls/ftp-ls code

    lelutin committed with apenwarr May 16, 2011
    Both the 'ls' command and the 'ls' subcommand of the 'ftp' command use
    some code that is very similar. Modifications must be done in two places
    instead of one and this can lead to inconsistencies.
    
    Refactor code so that both paths use the same function with the same opt
    spec.
    
    Signed-off-by: Gabriel Filion <lelutin@gmail.com>
Something went wrong with that request. Please try again.