-
Notifications
You must be signed in to change notification settings - Fork 69
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
sync without revisions? #95
Comments
Not a problem at all -- we don't get enough user feedback right now, so we love tickets. (Seriously.) What you're seeing is by design, but it could be a bad design, so I want to get more of your thoughts. What peru does when it fetches a module is hash all the fields into a cache key, and put the fetched tree in cache under that key. Then the next time you There are a few upsides to this default: Plugins get caching for free. The The downside is that people who expect the behavior you mentioned aren't getting what they want. Right now, the way to get that is to wipe out the cache directory ( For the |
okay, currently the workflow is like this:
from my workflow I would like to have:
but this all doesn't help with the sync-stuff :) currently I'm thinking about the following workflow:
|
the "specify module for reup" is related to this: #77 |
(Haven't forgotten about this issue, but I probably won't have time to think about it properly until next week.) |
We should definitely add a |
I'm not sure I understood the last two workflow ideas you mentioned. If you want it to be an error when you try to sync unversioned modules, why not just run |
of course it's hard to describe workflows without knowing if everything is handled or not.... so I try to write down my structures and what I want to do, maybe it's clearer that way:
regarding the last two points: my intension was that peru-files always should contain commit-ids to sync to and in the normal workflow peru will complain about missing ones (so that the user can check which commit-id he wants and can do it with a command not usually used during the normal workflow of the tool). If I run simply "reup" I will get "any" version that is just now available and I have to be careful that I specify which module I want to get the version from (if in a different module a new revision is available and I forgot to specify the module for reup I will get ALL changes). by separating "init" and "reup" you could try to separate the intention a user wanted to do. does this sound sensible to you? :) |
I'm not sure I'm following 100%, but it sounds like you have a couple different problems you want to solve, that you could probably solve in a different way now:
|
Created #109 for the |
sorry for writing tickets and not fixing them myself, but I'm unsure if it's a desired behavior or not.
I had: config-file with 3 git repos WITHOUT revisions written in them. Yesterday I did a fresh "peru sync" and got the repos at master (but I didn't do a reup!). Today there were changes in the git-repos and I thought a "peru sync" would be enough, but it didn't update to the lastest revisions on the repositories, instead a "peru reup" and afterwards a "peru sync" got me the latest changes... shouldn't peru sync to head every time if there's no revision in the yaml-file? (btw, in the hg-plugin the value for not specified revisions is "default", shouldn't that be "tip"?)
The text was updated successfully, but these errors were encountered: