summaryrefslogtreecommitdiff
path: root/obnamlib/plugins/fuse_plugin.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-02-23 19:11:49 +0000
committerLars Wirzenius <liw@liw.fi>2014-02-23 19:11:49 +0000
commit95c3a2412be22c5aa17e55f2d4a668c8ab6bc81f (patch)
tree7a8b24db3627a72a8de7474d711bc4d36f0ba62a /obnamlib/plugins/fuse_plugin.py
parentf9fbc27ab3f68f63fe74233762204bd51e64bd48 (diff)
downloadobnam-95c3a2412be22c5aa17e55f2d4a668c8ab6bc81f.tar.gz
Move init_root next to __init__, for clarity
Diffstat (limited to 'obnamlib/plugins/fuse_plugin.py')
-rw-r--r--obnamlib/plugins/fuse_plugin.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/obnamlib/plugins/fuse_plugin.py b/obnamlib/plugins/fuse_plugin.py
index a9388368..874b7c46 100644
--- a/obnamlib/plugins/fuse_plugin.py
+++ b/obnamlib/plugins/fuse_plugin.py
@@ -206,6 +206,16 @@ class ObnamFuse(fuse.Fuse):
self.init_root()
fuse.Fuse.__init__(self, *args, **kw)
+ def init_root(self):
+ repo = self.obnam.repo
+
+ # we need the list of all real (non-checkpoint) generations
+ generations = [gen for gen in repo.list_generations()
+ if not repo.get_is_checkpoint(gen)]
+
+ self.rootstat, self.rootlist = self.multiple_root_list(generations)
+ tracing.trace('multiple rootlist=%r', self.rootlist)
+
def root_refresh(self):
tracing.trace('called')
@@ -279,16 +289,6 @@ class ObnamFuse(fuse.Fuse):
return (rootstat, rootlist)
- def init_root(self):
- repo = self.obnam.repo
-
- # we need the list of all real (non-checkpoint) generations
- generations = [gen for gen in repo.list_generations()
- if not repo.get_is_checkpoint(gen)]
-
- self.rootstat, self.rootlist = self.multiple_root_list(generations)
- tracing.trace('multiple rootlist=%r', self.rootlist)
-
def get_gen_path(self, path):
if path.count('/') == 1:
gen = path[1:]