]> arthur.barton.de Git - bup.git/commit
vfs2: suffix duplicate save names (e.g. 1970-01-01-214640-07)
authorRob Browning <rlb@defaultvalue.org>
Sun, 15 Oct 2017 19:40:15 +0000 (14:40 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 16 Dec 2017 23:29:04 +0000 (17:29 -0600)
commit9379dc60e4bd5de0e78e767dd1dfc120a11280e6
treef0460cf2b4b003e8fa39bc367e229e31078e34af
parent4ec76a36a8386b5572d30fd7fdb07c8cb611f503
vfs2: suffix duplicate save names (e.g. 1970-01-01-214640-07)

From now on, append zero-padded integers to the names of saves that
have the same commit time in order to avoid duplicates.  The sequence
number currently represents the save's reversed position in default
rev-list order, so that given:

  /foo/1970-01-01-214640-09
  /foo/1970-01-01-214640-10

In the normal case, the -10 save would indicate the next save made
after -09 (and the -09 save would be the single parent commit for
-10).

Thanks to Ben Kelley for helping me sort out some of the details.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/t/tvfs.py
lib/bup/vfs2.py