• R/O
  • SSH
  • HTTPS

tortoisesvn: Commit


Commit MetaInfo

Revision28524 (tree)
Time2019-03-12 05:25:21
Authorstefankueng

Log Message

make the number of items kept in the url history configurable.

Change Summary

Incremental Difference

--- trunk/doc/source/en/TortoiseSVN/tsvn_dug/dug_settings_advanced.xml (revision 28523)
+++ trunk/doc/source/en/TortoiseSVN/tsvn_dug/dug_settings_advanced.xml (revision 28524)
@@ -424,6 +424,16 @@
424424 </listitem>
425425 </varlistentry>
426426 <varlistentry>
427+ <term condition="pot">MaxHistoryComboItems</term>
428+ <listitem>
429+ <para>
430+ Comboboxes for URLs and paths show a history of previously used
431+ URLs/paths if possible. This settings controls how many previous
432+ items are saved and shown. The default is 25 items.
433+ </para>
434+ </listitem>
435+ </varlistentry>
436+ <varlistentry>
427437 <term condition="pot">MergeLogSeparator</term>
428438 <listitem>
429439 <para>
--- trunk/src/TortoiseProc/Settings/SettingsAdvanced.cpp (revision 28523)
+++ trunk/src/TortoiseProc/Settings/SettingsAdvanced.cpp (revision 28524)
@@ -1,6 +1,6 @@
11 // TortoiseSVN - a Windows shell extension for easy version control
22
3-// Copyright (C) 2009-2015, 2018 - TortoiseSVN
3+// Copyright (C) 2009-2015, 2018-2019 - 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
@@ -129,6 +129,10 @@
129129 settings[i].type = CSettingsAdvanced::SettingTypeBoolean;
130130 settings[i++].def.b = true;
131131
132+ settings[i].sName = L"MaxHistoryComboItems";
133+ settings[i].type = CSettingsAdvanced::SettingTypeNumber;
134+ settings[i++].def.l = 25;
135+
132136 settings[i].sName = L"MergeLogSeparator";
133137 settings[i].type = CSettingsAdvanced::SettingTypeString;
134138 settings[i++].def.s = L"........";
@@ -193,7 +197,7 @@
193197 settings[i].type = CSettingsAdvanced::SettingTypeNone;
194198 settings[i++].def.b = false;
195199
196- // 42 so far...
200+ // 43 so far...
197201 ASSERT(i < _countof(settings));
198202 }
199203
--- trunk/src/Utils/MiscUI/HistoryCombo.cpp (revision 28523)
+++ trunk/src/Utils/MiscUI/HistoryCombo.cpp (revision 28524)
@@ -1,6 +1,6 @@
1-// TortoiseSVN - a Windows shell extension for easy version control
1+// TortoiseSVN - a Windows shell extension for easy version control
22
3-// Copyright (C) 2003-2015, 2017 - TortoiseSVN
3+// Copyright (C) 2003-2015, 2017, 2019 - 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
@@ -28,7 +28,7 @@
2828
2929 CHistoryCombo::CHistoryCombo(BOOL bAllowSortStyle /*=FALSE*/ )
3030 : CComboBoxEx()
31- , m_nMaxHistoryItems(MAX_HISTORY_ITEMS)
31+ , m_nMaxHistoryItems((INT)(DWORD)CRegStdDWORD(L"Software\\TortoiseSVN\\MaxHistoryComboItems", MAX_HISTORY_ITEMS))
3232 , m_bAllowSortStyle(bAllowSortStyle)
3333 , m_bURLHistory(FALSE)
3434 , m_bPathHistory(FALSE)
Show on old repository browser