new_version = result.version.next()
log('info', "Found new revision ({})".format(new_version.version), indent = 2)
else:
- new_version = fs.VersionInfo(att_id, 0)
+ new_version = fs.VersionInfo(fs.VersionInfo.MetaType.NEW, att_id, 0)
log('info', "Storing initial revision", indent = 2)
dest = fs.get_new_path(local_path, attachment_doc['fileName'])
log('info', "Destination: {}".format(dest), indent = 2)