On Tue, Sep 7, 2010 at 22:32, NODA, Kai <nodakai_at_gmail.com> wrote:
> Hi, all
>
> When the keyword substitution of $Header$ is enabled,
> "Apply patch" functionality is confused and always results in
> "The patch seems outdated" error, provided that
> the context of a hunk includes $Header$.
>
> How to reproduce:
> 1. Prepare empty repo at C:\tsvnTest\repo
> 2. Checkout it to C:\tsvnTest\wdir
> 3. Create C:\tsvnTest\README.txt whose contents is as follows (three lines):
> ===BEGIN CONTENTS OF README.txt===
> $Header:$
>
> Thank you.
> ===END CONTENTS OF README.txt===
> 4. Add it to the repo and set svn:keywords property to "Header"
> 5. Commit the changeset.
> 6. Edit the third line; substitute "Thank you" with "No thank you"
> 7. "Create patch" yields something like
>
> Index: README.txt
> ===================================================================
> --- README.txt (revision 1)
> +++ README.txt (working copy)
> @@ -1,3 +1,3 @@
> $Header$
>
> -Thank you.
> +No thank you.
>
> 8. Save the patch as C:\wdir\no.patch
> 9. Revert README.txt
> 10. Try to apply no.patch; but you'll encounter "The patch seems outdated" error.
>
> Additional note:
> Using $Id$ $Date$ $Rev$ or $URL$ doesn't cause this annoyance.
>
$Header$ isn't a Subversion keyword. The list of keywords is Date,
LastChangedDate, Revision, LastChangedRevision, Rev, Author,
LastChangedBy, HeadURL, URL & Id
http://svnbook.red-bean.com/nightly/en/svn.advanced.props.special.keywords.html
(or if you prefer the TSVN docs,
http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-propertypage.html#tsvn-dug-propertypage-props)
The fact that $Header$ isn't one of the expanded keywords may or may
not be causing your issue, but you should be aware that it's not going
to work the way you expect.
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2656822
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-09-08 14:44:27 CEST