[gurtle] r232 committed - (Closes issue #46) : don't require the "project=projectname" setting...

1 view
Skip to first unread message

gur...@googlecode.com

unread,
Apr 11, 2010, 4:39:21 AM4/11/10
to gurtle-...@googlegroups.com
Revision: 232
Author: tortoisesvn
Date: Sun Apr 11 01:34:52 2010
Log: (Closes issue #46) : don't require the "project=projectname" setting
* extract the project name from the url.
http://code.google.com/p/gurtle/source/detail?r=232

Modified:
/trunk/src/Gurtle/Plugin.cs
/trunk/src/Gurtle.sln

=======================================
--- /trunk/src/Gurtle/Plugin.cs Sun Apr 11 00:56:37 2010
+++ /trunk/src/Gurtle/Plugin.cs Sun Apr 11 01:34:52 2010
@@ -144,6 +144,17 @@
out string[] revPropNames, out string[] revPropValues)
{
bugIDOut = bugID;
+
+ Parameters p = Parameters.Parse(parameters);
+ if (p.Project.Length == 0)
+ {
+ // we can extract the project name from the url, e.g.:
+ // https://gurtle.googlecode.com/svn/trunk
+ // the project name is the first part of the domain
+ Uri url = new Uri(commonURL);
+ string projectName = url.Host.Substring(0,
url.Host.IndexOf('.'));
+ parameters += " project=" + projectName;
+ }

// If no revision properties are to be set,
// the plug-in MUST return empty arrays.
=======================================
--- /trunk/src/Gurtle.sln Sun Apr 11 00:56:37 2010
+++ /trunk/src/Gurtle.sln Sun Apr 11 01:34:52 2010
@@ -7,7 +7,6 @@
..\COPYING.txt = ..\COPYING.txt
Setup\MergeModule.wxs = Setup\MergeModule.wxs
Setup\Setup.wxs = Setup\Setup.wxs
- TestGurtle.cmd = TestGurtle.cmd
TestGurtle.py = TestGurtle.py
EndProjectSection
EndProject

Reply all
Reply to author
Forward
0 new messages