Reputation: 17284
I'd like to find out what other methods are there to commit to a SVN repository? For example, I have some diff between files, svn status shows them clearly. Instead of svn committing, I'd like to have the diff exported into patches, for incremental commitment, say over 2 computers through a thumb drive. Is this possible?
What about binary files, is it still possible?
Essentially, I'm hoping to implement incremental commits through patches, or any alternative methods there are without a network.
Thanks!
Upvotes: 0
Views: 244
Reputation: 3662
I would suggest you have a look at Mercurial with the hgsvn plugin. In contrast to git, Mercurial is relatively simple to learn if you know SVN. And with the hgsvn plugin, you can use Mercurial on the PC without network connection, synchronize with a thumb drive and commit the changes to SVN on a PC with network connection.
Upvotes: 1
Reputation: 99869
Once upon a time I worked at a company, say "Super Research Company (SRC)". The software was housed in a Subversion repository, which I had read access to and could see the logs. As part of the code review process, the manager (call him George) required all proposed checkins be emailed to him as a patch against the trunk. Should they be accepted, he would go ahead and check them in. George liked two things:
This led to the following remarkable characteristics of our software project:
Your proposal may show only one portion of this, but the horrific experience is so etched in my mind that I must warn you to seriously consider the ramifications of your decision.
That said, Subversion patches can be useful for projects receiving one-time submissions from external users, etc., so I don't think the idea of sending patches is conclusively wrong. :)
Upvotes: 1
Reputation:
If you are using Java, you don't state a language. Then Intellij IDEA and Eclipse both support generating batch patch files for all changes in a tree.
Upvotes: 0
Reputation: 6581
you can do svn diff > mypatch
git is much better with incremental patches, so you should check that out. Personally I find git to be pretty complicated, but it's worth it. If you're sticking with svn you can get the diff for individual files, but I don't think there is no way to get diffs over time for a single file. you HAVE to manually save patches yourself to do that.
Upvotes: 1