Skip to content

Investigate the idea of a remote git #58

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

Merged
merged 15 commits into from
May 20, 2015
Merged

Conversation

smn
Copy link
Contributor

@smn smn commented May 18, 2015

The idea is to see if we can combine unicore.distribute into a server endpoint for all git + elasticsearch related operations that elasticgit may want to do on a remote server.

@smn
Copy link
Contributor Author

smn commented May 18, 2015

I'm going to be listing some of the "local" filesystem assumptions being made in Elastic-Git currently here.

  • storage.py needs an interface definition
  • the old gitmodel.py based stuff will never work remotely, we may just need to kill it.
  • Some of the class based EG helper functions such as init_repo, clone_repo and read_repo expect to have local disk access

@smn
Copy link
Contributor Author

smn commented May 18, 2015

Not remotely read for review.

@smn
Copy link
Contributor Author

smn commented May 19, 2015

@Rizziepit & @miltontony ready for initial review. Still need to implement pull() but that needs more work on unicore.distribute first.

@smn
Copy link
Contributor Author

smn commented May 19, 2015

Oh wait, it was already implemented in unicore.distribute!

@smn
Copy link
Contributor Author

smn commented May 19, 2015

@Rizziepit & @miltontony ready for review.

@smn
Copy link
Contributor Author

smn commented May 19, 2015

Uh, no wait, haven't made it hook up to EG yet.


def store(self, model, message, author=None, committer=None):
raise RemoteStorageException(
'Remote storage is read only.')
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this for now or indefinitely?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For now. At some point we may want to write to the API, depends on which direction things go.

@smn
Copy link
Contributor Author

smn commented May 19, 2015

1__ipython__pypy_

Seems to be working.

@smn
Copy link
Contributor Author

smn commented May 20, 2015

@Rizziepit & @miltontony can I get a review please?

@Rizziepit
Copy link
Contributor

+1

@smn
Copy link
Contributor Author

smn commented May 20, 2015

@Rizziepit please review the last commit, it adds the StorageManager.active_branch() function.

import warnings
warnings.warn('Pulling without updating the index!')
self.sm.pull(branch_name=branch_name,
remote_name=remote_name)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

universalcore/unicore.distribute#18 addresses this and will implement in a different PR.

@Rizziepit
Copy link
Contributor

Looks good. Should EG have a method to create a remote workspace? Might have missed it.

@smn
Copy link
Contributor Author

smn commented May 20, 2015

@Rizziepit I considered it but EG.workspace() is mostly a shorthand for creating local repos (if they don't exist yet), that doesn't yet apply for a remote workspace and so I've left that for later / never.

@Rizziepit
Copy link
Contributor

Makes sense. All the +1 from me

@smn smn merged commit 65a56ab into develop May 20, 2015
@smn smn removed the in progress label May 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants