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

Rsync #167

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Rsync #167

wants to merge 4 commits into from

Conversation

sturmf
Copy link

@sturmf sturmf commented Oct 18, 2015

This is a simple rsync vcs provider. It can be also used for indexing of local directories. Only drawback in that case is that it still makes a copy of the local files.

}

func (g *RsyncDriver) HeadRev(dir string) (string, error) {
return "n/a", nil
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The way this is setup, Hound will continue to try to poll this vcs even though it can never update. I think it would be better to return something sensible for the revision so that pulling works as expected. That said, I do think that an rsync vcs should not poll by default. It should require an explicit push update to tell the server to go fetch the new version. The server supports push updates, but there isn't a convenient way to trigger one right now.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the comment, unfortunately I'm not sure what to do about that. I think with rsync it actually makes sense to pull. I would then do a rsync --delete src dst. Which would update the state of the source in sync. Unfortunately for that I would need the url in te Pull call, since it is not saved in the data directory as with git or other vcses.

How should I proceed in updating this branch?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you give me a few more hints how I could improve this PR to get it eventually merged?

ollyja added a commit to ollyja/hound that referenced this pull request Oct 20, 2018
* Implementation of a simple rsync vcs provider.
Base automatically changed from master to main February 24, 2021 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants