Bret Mogilefsky <mogul@gelatinous.com> writes:
> Say there was a keyword "RevisionAdded" which would be substituted by
> the revision number where the file containing it was first added to the
> repository. Then you could write your update script as:
> updates[revnumber('$RevisionAdded$')]=function () {...}
> ...where function revnumber() just returns what's after the colon.
>
> Then by virtue of the way svn numbers revisions (monotonically
> increasing no matter what parts of the tree or its branches they
> affected), each update function will get a unique index, and when merges
> happen, the merged code will still execute update functions in the order
> that they were committed. This way humans are removed from the process
> and we can sure it won't generate a collision.
There are a lot of complications to this, such as how to handle
unchanged files underneath copied parent directories...
> I'm sure there would be some similarly useful ways to use this
> keyword... Please consider adding it in a future version.
We'd have to think a lot about how it would work, before doing it.
Definitely -1 on doing it before 1.0; happy to revisit afterwards.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Nov 6 17:27:04 2003