More than 3 context lines in a patch with windows client?

469 views
Skip to first unread message

AnToine van Maarle

unread,
May 15, 2013, 9:42:05 AM5/15/13
to us...@tortoisesvn.tigris.org
Is it possible to create a patch with more than 3 context lines before and after the changed lines?

I know there are command line options like
svn diff --diff-cmd=diff -x -U20

but is that (somehow) possible with the tortoise svn client for windows?

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3055608

To unsubscribe from this discussion, e-mail: [users-un...@tortoisesvn.tigris.org].

Ben Fritz

unread,
May 15, 2013, 11:38:10 AM5/15/13
to us...@tortoisesvn.tigris.org
On Wed, May 15, 2013 at 8:42 AM, AnToine van Maarle
<AnT...@vanmaarle.nl> wrote:
> Is it possible to create a patch with more than 3 context lines before and after the changed lines?
>

I don't know. But you've asked 3 times now. Please give people a
chance to respond and stop asking.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3055614

Stefan Küng

unread,
May 15, 2013, 2:43:08 PM5/15/13
to us...@tortoisesvn.tigris.org, AnToine van Maarle
On 15.05.2013 15:42, AnToine van Maarle wrote:
> Is it possible to create a patch with more than 3 context lines before and after the changed lines?
>
> I know there are command line options like
> svn diff --diff-cmd=diff -x -U20
>
> but is that (somehow) possible with the tortoise svn client for windows?

No, because when you specify
--diff-cmd=diff
you tell the command line client to use the diff command you've
installed on your system, and *that* diff tool accepts the U20 parameter.
The internal diff engine of svn has a fixed value of three context lines.

Stefan

--
___
oo // \\ "De Chelonian Mobile"
(_,\/ \_/ \ TortoiseSVN
\ \_/_\_/> The coolest interface to (Sub)version control
/_/ \_\ http://tortoisesvn.net

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3055632

David Engel

unread,
May 23, 2013, 6:46:50 PM5/23/13
to us...@tortoisesvn.tigris.org
> The internal diff engine of svn has a fixed value of three context lines.
>
> Stefan
>

How difficult would it be to make that value configurable? The reason I ask is because we are implementing code review software and being able to generate unified diffs straight from the commit window with more lines of context (ideally, all lines from each file) would be very nice to have since most of our developers already use TortoiseSVN. The diff file gets uploaded to the code review tool. Right now our only option is to use the command line with a custom --diff-cmd option for svn if we want to generate diff files with more context.

Thanks,
David

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3056256

Matthew Obets

unread,
Sep 24, 2013, 12:16:25 AM9/24/13
to us...@tortoisesvn.tigris.org
It sounds like the three line limitation comes from the SVN libraries being used.

It is a little sad that the answer has not changed in 5 years:
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=85057

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3065134
Reply all
Reply to author
Forward
0 new messages