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

Re: TortoiseProc missing command line arguments

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Sat, 03 Mar 2012 11:00:47 +0100

On 03.03.2012 01:26, Hubsi wrote:

> actually I now think that the default variable assignment must be used, otherwise destUrl will be empty, when not preset by a parameter! And I missed that the second last line should be
> SetDlgItemText(IDC_SRCURL,CTSVNPath(url).GetUIPathString());
>
> so in total:
> CString url = svn.GetURLFromPath(svnPath);
> CString destUrl = url; ##added default variable assignment
> if (m_URL != _T(""))
> {
> destUrl = m_URL; ##presets destUrl from public destination variable m_Url
> }
> m_URLCombo.LoadHistory(_T("Software\\TortoiseSVN\\History\\repoPaths\\")+sUUID, _T("url"));
> m_URLCombo.SetCurSel(0);
> if (!url.IsEmpty())
> {
> CString relPath = destUrl.Mid(m_repoRoot.GetLength());
> relPath = CPathUtils::PathUnescape(relPath);
> relPath.Replace('\\', '/');
> m_URLCombo.AddString(relPath, 0);
> m_URLCombo.SelectString(-1, relPath);
> m_URL = destUrl;## used destUrl instead of url
>
> SetDlgItemText(IDC_SRCURL, CTSVNPath(url).GetUIPathString()); ##changed to url variable (source)
> SetDlgItemText(IDC_DESTURL, CTSVNPath(CPathUtils::CombineUrls(m_repoRoot, relPath)).GetUIPathString());
> }

Committed in r22618.

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=2930661
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2012-03-03 11:01:01 CET

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.