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

RE: Re: TortoiseProc missing command line arguments

From: Hubsi <zerokelvin_at_gmx.net>
Date: Wed, 29 Feb 2012 05:12:31 -0800 (PST)

By default the switch dialog prepopulates both IDC_SRCURL and IDC_DESTURL with the current location within the repository. The destination is then updated based on the user selection with CSwitchDlg::OnCbnEditchangeUrlcombo()

When presetting the destination with the command line based on the just added functionality, the varable url contains the destination, and subsequently the initialization of the user interface in Ln 102 and Ln 103 both shows the destination url.

Using GetURLFromPath was my initial idea - but I am not familiar with the various escaping functions used with svn path variables. But I guess now the following would do it:

SetDlgItemText(IDC_SRCURL, CTSVNPath(svn.GetURLFromPath(svnPath)).Get​UIPathString());

Otherwise it might be more well-arranged using different variable names for srcurl and desturl in the code...


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2012-02-29 14:12:34 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.