Don't interleave the tags with the branch save dates in the VFS. Doing
so meant that any access to the /branch required retrieving all tags in
the repository. It also introduced the possibility of duplicate tag and
date names.
Tags are still available in the global /.tag directory.
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lists or shows backups. They can be found under the /.tag directory. For
example, the 'ftp' command will show the tag named 'tag1' under /.tag/tag1.
lists or shows backups. They can be found under the /.tag directory. For
example, the 'ftp' command will show the tag named 'tag1' under /.tag/tag1.
-Tags are also exposed under the branches from which they can be reached. For
-example, if you create a tag named 'important' under branch 'computerX', you
-will also be able to retrieve the contents of the backup that was tagged under
-/computerX/important. This is done as a convenience, and should the branch
-'computerX' be deleted, the contents of the tagged backup will be available
-through /.tag/important as long as the tag is not deleted.
-
def _mksubs(self):
self._subs = {}
def _mksubs(self):
self._subs = {}
- tags = git.tags(repo_dir = self._repo_dir)
-
revs = list(git.rev_list(self.hash.encode('hex'),
repo_dir=self._repo_dir))
latest = revs[0]
revs = list(git.rev_list(self.hash.encode('hex'),
repo_dir=self._repo_dir))
latest = revs[0]
n1.ctime = n1.mtime = date
self._subs[ls] = n1
n1.ctime = n1.mtime = date
self._subs[ls] = n1
- for tag in tags.get(commit, []):
- t1 = FakeSymlink(self, tag, target, self._repo_dir)
- t1.ctime = t1.mtime = date
- self._subs[tag] = t1
-
(date, commit) = latest
commithex = commit.encode('hex')
target = '../.commit/%s/%s' % (commithex[:2], commithex[2:])
(date, commit) = latest
commithex = commit.encode('hex')
target = '../.commit/%s/%s' % (commithex[:2], commithex[2:])
WVPASSEQ "$(WVPASS bup ls /src)" \
"1977-09-05-125600
WVPASSEQ "$(WVPASS bup ls /src)" \
"1977-09-05-125600
WVPASSEQ "$(WVPASS bup ls src/latest/"$tmpdir"/src)" "executable
fifo
WVPASSEQ "$(WVPASS bup ls src/latest/"$tmpdir"/src)" "executable
fifo
WVSTART "ls (backup set - long)"
WVPASSEQ "$(bup ls -l src | cut -d' ' -f 1-2)" \
"l--------- ?/?
WVSTART "ls (backup set - long)"
WVPASSEQ "$(bup ls -l src | cut -d' ' -f 1-2)" \
"l--------- ?/?