-
Notifications
You must be signed in to change notification settings - Fork 146
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
Subversion support #63
base: master
Are you sure you want to change the base?
Conversation
This assumes standard svn repository layout (/trunk, /branches, /tags), and that development is done on either trunk or branches.
Subversion performs a tag by copying to /tags, and this requires message.
@@ -5,3 +5,4 @@ include/ | |||
lib/ | |||
.Python | |||
bumpversion.egg-info/ | |||
*.pyc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm indeed.. It was added by the GitHub windows client... (I'll remove it).
This needs tests and documentation. |
Ok. I'll see if I can't add tests + docs sometime later today or tomorrow. |
So I'm looking at the tests, and they're taking advantage of the fact that git and hg have very similar command syntax, so parametrizing on the command name makes sense. They all start with:
similar functionality for subversion would be
I see a couple of places where there are A second option would be to write separate test functions for subversion, however, that seems like a bad idea. A third option would be to parametrize the tests on objects that abstracted the needed vcs functionality (as opposed to strings like it is now), i.e.
That seems like a very radical change for this pull-request though. Any advice on how to proceed? |
Is it appropriate to separate VCS tests: independent Git, Mercurial and Subversion test could be adaptive for each VCS particular features? This pull request is pending more than 3 years. Many developers with Subversion still need to write own wrappers for committing and tagging. I'm one of them. |
I no longer have any interest in this PR. If someone wants to take it over and run with it you're welcome to treat this PR as your own. (FWIW, I now believe it is a mistake to combine upversioning and source tagging..) |
@thebjorn, okay, thank you for the response. |
@and1er if you're doing a PR, it might be better received over at https://github.com/c4urself/bump2version which seems to be under more active development. ps: if you're using invoke, then you might be interested in the
I've also implemented option 3 from above in a project that's not published yet, but if there is interest I can probably publish it early next month.. |
This assumes standard svn repository layout (/trunk, /branches, /tags),
and that development is done on either trunk or branches.