Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
printz

Is it possible to make an SVN number independent fork?

Recommended Posts

I'm working on the source code of a port that's currently under development by its original authors as well, whose SVN builds keep coming out every day. I'm interested in having my own code keep up with the base port's evolution. Is there an automated and safe way to just patch my own code edits over nearly whatever newer original-port SVN source-code comes up? Or do I have to settle with manually updating my code by polling their trunk updates and being careful not to make mistakes?

Share this post


Link to post

Should have used git!

Unless you urgently need an update, there isn't any need to do merges every day. You can probably manage doing it every couple of weeks, which reduces the effort. Learn how to use svn diff and patch - there isn't any need to do manual merges when tools exist that will do most of the work for you automatically.

Ideally you'd get permission from the upstream author to maintain a branch within the same svn repository.

Share this post


Link to post

Actually, (at least with TortoiseSVN) it's possible to do merges between different SVN repositories. I have been using this for quite some time to keep GZDoom up to date.

Share this post


Link to post
fraggle said:

Learn how to use svn diff and patch - there isn't any need to do manual merges when tools exist that will do most of the work for you automatically.

The way you say that makes it seem simple enough. So it's Diff and Patch you say. TortoiseSVN sounds even easier, because I already have it.

Ideally you'd get permission from the upstream author to maintain a branch within the same svn repository.

That would be nice, but I wouldn't ask at this moment. I have enough credibility issues with the mapping projects as it is (not actively doing work on them for a while) and wouldn't want to risk slacking on others' programmer projects. I may consider trying when I have like 25%-50% work done (and solidify my programming practices while at it). On the other hand, it IS tempting to ask them if it's not as bad.

Share this post


Link to post

Little merging tut with TortoiseSVN, using ZDoom and GZDoom as the example since, well, I don't really need to port an Eternity or SLADE change to anything else:



- Right-click on the root directory of the source source port (heh) to get the TSVN menu.
- Choose "Show log".

- In the log window, select the last few revisions not ported in yet.
- Right click and choose "Merge revisions to"

- Select the destination source port's root folder and click OK.
- You may have to solve conflicts if they happen, but otherwise, you're done!

Share this post


Link to post

Does the target folder have to be a SVN checked-out folder as well? If I try to merge the source updates into my neutral folder, it says with an error that it's "not a working copy".

Share this post


Link to post

Yeah, it has. But it doesn't need to be of the same project.

You could try hosting a SVN server on localhost (that is to say, on your own computer). That way you don't have to bother anyone about creating a branch or a separate SVN repository for your project.

Share this post


Link to post

Nevermind, I just started a Sourceforge project and it's Subversion compatible :) I didn't know it would be so free and easy. I hope I'm secure, though. I don't want to be sued if I happen to slip something illegal in the SVN repository that happens to be public. At the moment, the only mistake is that I haven't yet placed GNU GPL tags at the heads of the new source files.

Thanks for all the help :D

Share this post


Link to post
printz said:

At the moment, the only mistake is that I haven't yet placed GNU GPL tags at the heads of the new source files.

Well, you can put that stuff in if you want to but you'd be in good company if you didn't bother. For example several thousand .c files in the linux kernel haven't got the GPL boilerplate header, including a lot of the really core stuff. (Although there are several thousand more that do have one.)

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×