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

Add "--ignore-ancestry" mode to "Compare revisions" in Repo-browser

From: N.Yamamoto <norimy_at_sainet.or.jp>
Date: 2006-03-12 15:20:27 CET

Hello,

I saw the TortoiseProc source code, Repository Browser's
"Compare Revisions" is always "--notice-ancestry" mode. It
is different with "svn.exe diff" command. "svn.exe diff"
default is "--ignore-ancestry" mode, unlike "svn.exe merge".
Yes, "svn.exe diff --notice-ancestry" works like "Compare
Revisions".

I'm tring to compile TortoiseProc.exe by VS 2005 Express
to changing "--ignore-ancestry" mode for me, but I couldn't...
So I post my thought of modification point. This will
replace "--notice-ancestry" to "--ignore-ancestry".

TortoiseSVN\src\TortoiseProc\RepositoryBrowser.cpp
    in CRepositoryBrowser::ShowContextMenu(...)
        (snip)
            case ID_POPDIFF:
                {
                    SVNDiff diff(NULL, this->m_hWnd, true);
                    diff.ShowCompare(url1, GetRevision(), url2, GetRevision());
                        // above line is always "--notice-ancestry" mode.
                        // so change diff.ShowCompare argument
                        // add arg 5, default is SVNRev()
                        // -> SVNRev()? 0? may ignored in this case?
                        // add arg 6, default is false
                        // -> true (ignoreancestry = true)
                }
                break;
        (snip)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Sun Mar 12 16:02:16 2006

This is an archived mail posted to the TortoiseSVN Users mailing list.

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