• R/O
  • SSH
  • HTTPS

tortoisesvn: Commit


Commit MetaInfo

Revision29530 (tree)
Time2023-02-28 04:07:08
Authordanielsahlberg

Log Message

It doesn't make sense to call GetFullPathName (called by CPathUtils::GetLongPathname) on an asterisk separate path. Remove the call, as it is anyway called by LoadFromAsteriskSeparatedString.
This would mean cmdLinePath has to call GetLongPathname, but we can simplify it by just getting the first path from the pathList.

Solves a problem with multiple levels of ..\ in an asteriskseparated string:
https://groups.google.com/g/tortoisesvn/c/Q1uzJ3j7J-4

Change Summary

Incremental Difference

--- trunk/src/TortoiseProc/TortoiseProc.cpp (revision 29529)
+++ trunk/src/TortoiseProc/TortoiseProc.cpp (revision 29530)
@@ -1,6 +1,6 @@
11 // TortoiseSVN - a Windows shell extension for easy version control
22
3-// Copyright (C) 2003-2018, 2020-2022 - TortoiseSVN
3+// Copyright (C) 2003-2018, 2020-2023 - TortoiseSVN
44
55 // This program is free software; you can redistribute it and/or
66 // modify it under the terms of the GNU General Public License
@@ -353,7 +353,7 @@
353353 }
354354 else
355355 {
356- CString sPathArgument = CPathUtils::GetLongPathname(parser.GetVal(L"path")).c_str();
356+ CString sPathArgument = parser.GetVal(L"path");
357357 if (parser.HasKey(L"expaths"))
358358 {
359359 // an /expaths param means we're started via the buttons in our Win7 library
@@ -395,9 +395,9 @@
395395 TaskDialog(GetExplorerHWND(), AfxGetResourceHandle(), MAKEINTRESOURCE(IDS_APPNAME), MAKEINTRESOURCE(IDS_INVALIDPARAMS), MAKEINTRESOURCE(IDS_ERR_NOPATH), TDCBF_OK_BUTTON, TD_ERROR_ICON, nullptr);
396396 return FALSE;
397397 }
398- int asterisk = sPathArgument.Find('*');
399- cmdLinePath.SetFromUnknown(asterisk >= 0 ? sPathArgument.Left(asterisk) : sPathArgument);
400398 pathList.LoadFromAsteriskSeparatedString(sPathArgument);
399+ if (pathList.GetCount())
400+ cmdLinePath = pathList[0];
401401 }
402402 if (g_sGroupingUuid.IsEmpty() && !cmdLinePath.IsEmpty())
403403 {
Show on old repository browser