Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what is revision in versionedHook? #56

Closed
rafaelleru opened this issue Mar 27, 2017 · 1 comment
Closed

what is revision in versionedHook? #56

rafaelleru opened this issue Mar 27, 2017 · 1 comment

Comments

@rafaelleru
Copy link

rafaelleru commented Mar 27, 2017

I'm working on webDAV support #38 and I was looking Dropbox repo, but I can not understand what is revision in:

VersionedRook book = new VersionedRook(
                                        repoUri,
                                        uri,
                                        file.getRev(),
                                        file.getServerModified().getTime()); 

represented by file.getRev() because this file is from dropbox API.

@nevenz
Copy link
Member

nevenz commented Mar 28, 2017

It's just a unique string representing a specific version (hence Versioned Rook) of the file in time.

If storage doesn't support it, you can just use file's modification time, as it's done for DirectoryRepo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants