From cbd2659694110f7d09acbcd449a316284a9e6081 Mon Sep 17 00:00:00 2001 From: David Stainton Date: Wed, 15 Jul 2015 12:21:54 -0700 Subject: [PATCH] start with version 0 --- src/allmydata/frontends/magic_folder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/allmydata/frontends/magic_folder.py b/src/allmydata/frontends/magic_folder.py index 077affab..43cfbd87 100644 --- a/src/allmydata/frontends/magic_folder.py +++ b/src/allmydata/frontends/magic_folder.py @@ -363,7 +363,7 @@ class MagicFolder(service.MultiService): self._notifier.watch(to_filepath(path), mask=self.mask, callbacks=[self._notify], recursive=True) u = Data("", self._convergence) name += "@_" - upload_d = self._upload_dirnode.add_file(name, u, metadata={"version":1}, overwrite=True) + upload_d = self._upload_dirnode.add_file(name, u, metadata={"version":0}, overwrite=True) def _succeeded(ign): self._log("created subdirectory %r" % (path,)) self._stats_provider.count('magic_folder.directories_created', 1) @@ -409,7 +409,7 @@ class MagicFolder(service.MultiService): elif os.path.isfile(path): version = self._db.get_local_file_version(path) if version is None: - version = 1 + version = 0 else: version += 1 print "NEW VERSION ", version -- 2.45.2