[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: "svn patch" and the TAB character

From: Nathan Hartman <hartman.nathan_at_gmail.com>
Date: Sat, 14 Dec 2019 19:31:41 -0500

On Fri, Dec 13, 2019 at 5:00 PM Doug Robinson <doug.robinson_at_wandisco.com>
wrote:

> If I use "svn diff --patch compatible" to produce a patch file. Then edit
> that patch file using an editor with settings that replace the TAB with a
> "proper" number of SPACE characters, the "svn patch" command will declare:
>
> $ svn patch ../n.txt
> Skipped missing target: 'TheFile (revision 18)'
> Summary of conflicts:
>

FWIW I did see this recently when trying to run a reproduction script from
the TortoiseSVN forum. I realized that the tabs became spaced, fixed it,
and then the patch worked.

I don't have an opinion whether this behavior should be changed or not, but
perhaps we can try to detect this case and improve the error message?

Nathan
Received on 2019-12-15 01:32:02 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.