2011/7/30 Rob Hamerling <[email protected]>

>
> I think it would be good to have that, but I have some questions:
> Which revision number?
> - Each file the rev. of the file itself
>

Yes, this one, the revision of the file itself. This way, user can browser
SVN and directly see the corresponding source.


> - All files the rev. of the latest commit
>

I never found the special property for this... But anyway, in our case, this
isn't what we want


> And how to get it in the source?
> - When you commit a file you don't know for sure in advance which rev it
> will become.
> - Buildbot might be the best to add it.
>

Let's let SVN do the work :)

Here how it goes (not verified all the detail, but you'll catch the idea).
In the source file, we add a new field in JSG header, this field is
"special":

Revision: $Revision$


Then, we tell SVN there's a special property here it needs to take care of:

svn propset svn:keywords Revision thefile.jal

Now, the next time you commit this file, SVN will swap $Revision$ with the
revision it chose. you'll have something like this:

Revision: $Revision 345$

(or the like).

Once property set, you never have to deal with it again, ever.

We should just make sure JSG will check this (comitters will have to
understand this is new thing to add before committing, some would say a
constraint).


Cheers,
Seb



>
> Regards, Rob.
>
>
> --
> R. Hamerling, Netherlands --- http://www.robh.nl
>
> --
> You received this message because you are subscribed to the Google Groups
> "jallib" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to jallib+unsubscribe@**
> googlegroups.com <jallib%[email protected]>.
> For more options, visit this group at http://groups.google.com/**
> group/jallib?hl=en <http://groups.google.com/group/jallib?hl=en>.
>
>


-- 
Sébastien Lelong

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to