On 12/25/06, Ryan Schmidt <subversion-2006d@ryandesign.com> wrote:
> On Dec 25, 2006, at 12:18, Ramanathan Muthaiah wrote:
>
> >> Is there any way to put the revision number of such a picture into
> >> the exif data?
> >>
> >> I heard about hook scripts, but I did not find something that does
> >> the job...
> >
> > This looks to me, more about the possibility of editing EXIF data than
> > about Subversion.
> >
> > AFAIK, it should be possible to edit EXIF data. A quick Google search
> > on 'EXIF data + editor" returned 1,060, 000 results.
> >
> > With a custom hook script, it should be possible to wrap such EXIF
> > data editors as per your needs.
>
> Hook scripts are not relevant to the question. The type of script you
> seem to be talking about would need to modify the image EXIF data,
> but a hook script must not modify the data in the transaction.
>
> Remo, you would need to edit the EXIF data to include the $Rev:$
> keyword, and also add the property svn:keywords=Rev. You would need
> to do this manually for every file which should have this
> translation. Since we're talking about binary files (images) here,
> you must ensure that Subversion does not change the length of the
> data when it replaces the keyword. Therefore, you must use the fixed-
> width version of the $Rev:$ keyword, which is written "$Rev::
> $" (without quotes). I don't know if this is in The Book yet but it's
> described in the source code comments, which are excerpted here:
>
> http://svn.haxx.se/users/archive-2005-07/0819.shtml
>
>
> --
>
> To reply to the mailing list, please use your mailer's Reply To All
> function
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
And hope that the data: "0x24 0x52 0x65 0x76 0x3A 0x3A 0x24" doesn't
occur anywhere else in the file (That's the hex values of the
"$Rev::$" string). AFAIK This possible corruption of binary data is
the reason that subversion doesn't substitute keywords by default (as
opposed to the CVS behavior).
Troy
--
"Beware of spyware. If you can, use the Firefox browser." - USA Today
Download now at http://getfirefox.com
Registered Linux User #354814 ( http://counter.li.org/)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Dec 29 01:37:20 2006