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

Get file-specific version history #544

Open
mehrdadn opened this issue Feb 17, 2019 · 5 comments
Open

Get file-specific version history #544

mehrdadn opened this issue Feb 17, 2019 · 5 comments
Labels
API support needed A lack of a Google API feature blocks this issue

Comments

@mehrdadn
Copy link

Expected Behavior

I get old versions of the project that were implicitly created via file saving.

Actual Behavior

I get snapshots of the project that were explicitly created via publishing.

Steps to Reproduce the Problem

  1. Create a project.
  2. Modify some file in it and save.
  3. Look at File -> See Version History and observe there are multiple versions.
  4. clasp versions doesn't show these versions.

Specifications

  • Node version (node -v): v8.11.1
  • Version (clasp -v): 2.0.1
  • OS (Mac/Linux/Windows): Windows

Fix

There seems to be no way to actually grab old file versions, and versions misleadingly suggests this is possible. Could this functionality be added?

@grant
Copy link
Contributor

grant commented Feb 17, 2019

clasp versions provides a list of versions you explicitly saved.
You can access them with clasp pull --versionNumber.

You may want to use version control like git for the versioning history you want.

@mehrdadn
Copy link
Author

I would love to migrate to git but to migrate the history I'd still need a way to grab these old versions in the first place...

@grant
Copy link
Contributor

grant commented Feb 17, 2019

What's wrong with clasp pull --versionNumber?

@mehrdadn
Copy link
Author

It didn't seem to pull in what I saw in See version history... is it supposed to?

@grant
Copy link
Contributor

grant commented Feb 17, 2019

Well, that file-specific version history impossible to do from the API, only the UI, so I'll mark this as needing the API feature.

@grant grant added the API support needed A lack of a Google API feature blocks this issue label Feb 17, 2019
@grant grant changed the title Get versions from version history Get file-specific version history Feb 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API support needed A lack of a Google API feature blocks this issue
Projects
None yet
Development

No branches or pull requests

2 participants