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.
-
# OPTIONS
-d, \--delete
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]
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:])
WVPASSEQ "$(WVPASS bup ls /src)" \
"1977-09-05-125600
-latest
-some-tag"
+latest"
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--------- ?/?
-l--------- ?/?
l--------- ?/?"