per-project version numbers - a way to support them? (without changing Subversion!?)
From: Alan Jay Weiner <alan_at_ajw.com>
Date: 2005-09-15 21:10:21 CEST
I apologize for the lenght of this - the examples make it quite long, but I
Like others coming from other revision systems, I'm bothered by repository-wide
I haven't thought this through extensively - it's partially
Say you have a repository with two projects:
svnrepo
Subversion itself works as it does now, keeping repo-wide version numbers; *no*
Each directory (possibly each file?) would have a property - let's call it
Let's start with the above repo, and create it from scratch. (sorry this will
We create the repo; it's empty. Subversion is at version 1:
svnrepo
Now we create project1:
svnrepo
Subversion's version is at 2, the 'myversion' property attached to the directory
svnrepo
Now we create project2. Subversion's at version 3, project2's myversion = 1,
Now we create the trunk, branches, and tags directories for project1:
svnrepo
From here on, I'll show the Subversion version number as [n] and the myversion
svnrepo [6]
Now we add subdirectories to project1/trunk. As we do this, the myversion
svnrepo [9]
Now adding files to project1\trunk\sources:
svnrepo [11]
Now we add subdirectories and files to project2:
svnrepo [15]
Then editing files in project1 - let's edit and check in file1.c.
svnrepo [16]
You can see that you can get a per-project (or per-directory/per-file) version
What you consider the build's version number is determined by the myversion in
So even though Subversion says I'm at version 16, my project1 (or more
I think this'll work with cheap copies to tags and branches - they'll keep the
I think this could be done just by wrapping svn checkin, but anyone using a gui
It can't (or shouldn't) be done by hook scripts because that'd modify the files
Should the property modifications be done directly on the repo? Otherwise I
Again, I apologize for the length of this example.
Ideas, anyone?
- Al -
-- -- Alan Weiner -- alan_at_ajw.com -- http://www.ajw.com Palm OS Certified Developer --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org For additional commands, e-mail: users-help@subversion.tigris.orgReceived on Thu Sep 15 21:14:45 2005 |
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.