Browse Source

Switch from SvnDotNet to SharpSVN. This updates the embedded subversion library from 1.5.0 to 1.6.0.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@3948 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 17 years ago
parent
commit
957e9d46c2
  1. 77
      src/AddIns/Misc/SubversionAddIn/Project/Resources/ClientCertDialog.xfrm
  2. 67
      src/AddIns/Misc/SubversionAddIn/Project/Resources/ClientCertPassphraseDialog.xfrm
  3. 104
      src/AddIns/Misc/SubversionAddIn/Project/Resources/LoginDialog.xfrm
  4. 148
      src/AddIns/Misc/SubversionAddIn/Project/Resources/SslServerTrustDialog.xfrm
  5. 10
      src/AddIns/Misc/SubversionAddIn/Project/Src/Commands/AutostartCommands.cs
  6. 65
      src/AddIns/Misc/SubversionAddIn/Project/Src/Gui/AuthentificationDialogs/ClientCertDialog.cs
  7. 65
      src/AddIns/Misc/SubversionAddIn/Project/Src/Gui/AuthentificationDialogs/ClientCertPassphraseDialog.cs
  8. 124
      src/AddIns/Misc/SubversionAddIn/Project/Src/Gui/AuthentificationDialogs/LoginDialog.cs
  9. 124
      src/AddIns/Misc/SubversionAddIn/Project/Src/Gui/AuthentificationDialogs/SslServerTrustDialog.cs
  10. 2
      src/AddIns/Misc/SubversionAddIn/Project/Src/Gui/HistoryViewDisplayBinding/HistoryViewPanel.cs
  11. 6
      src/AddIns/Misc/SubversionAddIn/Project/Src/Gui/HistoryViewDisplayBinding/InfoPanel.cs
  12. 3
      src/AddIns/Misc/SubversionAddIn/Project/Src/SubversionStateCondition.cs
  13. 466
      src/AddIns/Misc/SubversionAddIn/Project/Src/SvnClientWrapper.cs
  14. 56
      src/AddIns/Misc/SubversionAddIn/Project/SubversionAddIn.csproj
  15. 341
      src/Libraries/SharpSvn/Licenses/Apr-License.txt
  16. 443
      src/Libraries/SharpSvn/Licenses/Apr-Util-License.txt
  17. 102
      src/Libraries/SharpSvn/Licenses/BerkeleyDB-License.txt
  18. 44
      src/Libraries/SharpSvn/Licenses/Cyrus-Sasl-License.txt
  19. 482
      src/Libraries/SharpSvn/Licenses/Neon-License.txt
  20. 127
      src/Libraries/SharpSvn/Licenses/OpenSsl-License.txt
  21. 25
      src/Libraries/SharpSvn/Licenses/Putty-License.txt
  22. 201
      src/Libraries/SharpSvn/Licenses/Serf-License.txt
  23. 219
      src/Libraries/SharpSvn/Licenses/SharpSvn-License.txt
  24. 73
      src/Libraries/SharpSvn/Licenses/SharpSvn-Licenses.wxs
  25. 47
      src/Libraries/SharpSvn/Licenses/Subversion-License.txt
  26. 125
      src/Libraries/SharpSvn/Licenses/ZLib-License.txt
  27. BIN
      src/Libraries/SharpSvn/SharpPlink-Win32.svnExe
  28. BIN
      src/Libraries/SharpSvn/SharpSvn-DB44-20-win32.dll
  29. BIN
      src/Libraries/SharpSvn/SharpSvn-Sasl21-22-win32.dll
  30. BIN
      src/Libraries/SharpSvn/SharpSvn.UI.dll
  31. 439
      src/Libraries/SharpSvn/SharpSvn.UI.xml
  32. BIN
      src/Libraries/SharpSvn/SharpSvn.dll
  33. 107
      src/Libraries/SharpSvn/SharpSvn.wxs
  34. 18537
      src/Libraries/SharpSvn/SharpSvn.xml
  35. 12
      src/Setup/Files.wxs
  36. 64
      src/Tools/SVNChangeLogToXml/Main.cs
  37. 43
      src/Tools/SVNChangeLogToXml/SVNChangelogToXml.csproj
  38. 6
      src/Tools/SVNChangeLogToXml/SVNChangelogToXml.sln
  39. 75
      src/Tools/UpdateAssemblyInfo/Main.cs
  40. 13
      src/Tools/UpdateAssemblyInfo/UpdateAssemblyInfo.csproj
  41. BIN
      src/Tools/UpdateAssemblyInfo/bin/Debug/AprSharp.dll
  42. BIN
      src/Tools/UpdateAssemblyInfo/bin/Debug/SubversionSharp.dll
  43. BIN
      src/Tools/UpdateAssemblyInfo/bin/Debug/UpdateAssemblyInfo.exe
  44. 40
      src/Tools/UpdateSetupInfo/Main.cs
  45. 16
      src/Tools/UpdateSetupInfo/UpdateSetupInfo.csproj
  46. 14
      src/Tools/UpdateSetupInfo/UpdateSetupInfo.exe.manifest
  47. 6
      src/Tools/UpdateSetupInfo/UpdateSetupInfo.sln

77
src/AddIns/Misc/SubversionAddIn/Project/Resources/ClientCertDialog.xfrm

@ -1,77 +0,0 @@ @@ -1,77 +0,0 @@
<Components version="1.0">
<System.Windows.Forms.Form>
<Name value="XmlForm1" />
<FormBorderStyle value="FixedDialog" />
<ClientSize value="{Width=290, Height=152}" />
<MinimizeBox value="False" />
<DockPadding value="" />
<Text value="Supply a client certificate" />
<AcceptButton value="okButton [System.Windows.Forms.Button], Text: OK" />
<CancelButton value="cancelButton [System.Windows.Forms.Button], Text: Cancel" />
<MaximizeBox value="False" />
<Controls>
<System.Windows.Forms.Button>
<Name value="browseButton" />
<Location value="{X=248,Y=56}" />
<Size value="{Width=32, Height=23}" />
<Text value="..." />
<Anchor value="Top, Right" />
<TabIndex value="4" />
</System.Windows.Forms.Button>
<System.Windows.Forms.TextBox>
<Name value="pathTextBox" />
<Anchor value="Top, Left, Right" />
<TabIndex value="3" />
<Location value="{X=8,Y=56}" />
<Size value="{Width=238, Height=21}" />
<Text value="" />
</System.Windows.Forms.TextBox>
<System.Windows.Forms.Label>
<Name value="label2" />
<Text value="&amp;Path:" />
<TextAlign value="BottomLeft" />
<Anchor value="Top, Left, Right" />
<TabIndex value="2" />
<Size value="{Width=278, Height=23}" />
<Location value="{X=8,Y=32}" />
</System.Windows.Forms.Label>
<System.Windows.Forms.Button>
<Name value="cancelButton" />
<Location value="{X=208,Y=120}" />
<Text value="Cancel" />
<TabIndex value="7" />
<DialogResult value="Cancel" />
</System.Windows.Forms.Button>
<System.Windows.Forms.Button>
<Name value="okButton" />
<Location value="{X=128,Y=120}" />
<Text value="OK" />
<TabIndex value="6" />
</System.Windows.Forms.Button>
<System.Windows.Forms.CheckBox>
<Name value="saveCredentialsCheckBox" />
<Location value="{X=8,Y=88}" />
<Size value="{Width=270, Height=24}" />
<Text value="S&amp;ave credentials?" />
<Anchor value="Top, Left, Right" />
<TabIndex value="5" />
</System.Windows.Forms.CheckBox>
<System.Windows.Forms.Label>
<Name value="realmLabel" />
<TextAlign value="MiddleLeft" />
<Anchor value="Top, Left, Right" />
<TabIndex value="1" />
<Size value="{Width=208, Height=23}" />
<Location value="{X=80,Y=8}" />
</System.Windows.Forms.Label>
<System.Windows.Forms.Label>
<Name value="label1" />
<Text value="Realm:" />
<TextAlign value="MiddleRight" />
<TabIndex value="0" />
<Size value="{Width=72, Height=23}" />
<Location value="{X=8,Y=8}" />
</System.Windows.Forms.Label>
</Controls>
</System.Windows.Forms.Form>
</Components>

67
src/AddIns/Misc/SubversionAddIn/Project/Resources/ClientCertPassphraseDialog.xfrm

@ -1,67 +0,0 @@ @@ -1,67 +0,0 @@
<Components version="1.0">
<System.Windows.Forms.Form>
<Name value="XmlForm1" />
<FormBorderStyle value="FixedDialog" />
<ClientSize value="{Width=290, Height=112}" />
<MinimizeBox value="False" />
<DockPadding value="" />
<Text value="Client certificate passphrase" />
<AcceptButton value="okButton [System.Windows.Forms.Button], Text: OK" />
<CancelButton value="cancelButton [System.Windows.Forms.Button], Text: Cancel" />
<MaximizeBox value="False" />
<Controls>
<System.Windows.Forms.Button>
<Name value="cancelButton" />
<Location value="{X=208,Y=80}" />
<Text value="Cancel" />
<TabIndex value="6" />
<DialogResult value="Cancel" />
</System.Windows.Forms.Button>
<System.Windows.Forms.Button>
<Name value="okButton" />
<Location value="{X=128,Y=80}" />
<Text value="OK" />
<TabIndex value="5" />
<DialogResult value="OK" />
</System.Windows.Forms.Button>
<System.Windows.Forms.CheckBox>
<Name value="saveCredentialsCheckBox" />
<Location value="{X=8,Y=56}" />
<Size value="{Width=278, Height=24}" />
<Text value="S&amp;ave credentials?" />
<Anchor value="Top, Left, Right" />
<TabIndex value="4" />
</System.Windows.Forms.CheckBox>
<System.Windows.Forms.TextBox>
<Name value="passPhraseTextBox" />
<TabIndex value="3" />
<Location value="{X=80,Y=32}" />
<Size value="{Width=208, Height=21}" />
<Text value="" />
</System.Windows.Forms.TextBox>
<System.Windows.Forms.Label>
<Name value="label2" />
<Text value="&amp;Passphrase:" />
<TextAlign value="MiddleRight" />
<TabIndex value="2" />
<Size value="{Width=72, Height=23}" />
<Location value="{X=8,Y=32}" />
</System.Windows.Forms.Label>
<System.Windows.Forms.Label>
<Name value="realmLabel" />
<TextAlign value="MiddleLeft" />
<TabIndex value="1" />
<Size value="{Width=208, Height=23}" />
<Location value="{X=80,Y=8}" />
</System.Windows.Forms.Label>
<System.Windows.Forms.Label>
<Name value="label1" />
<Text value="Realm:" />
<TextAlign value="MiddleRight" />
<TabIndex value="0" />
<Size value="{Width=72, Height=23}" />
<Location value="{X=8,Y=8}" />
</System.Windows.Forms.Label>
</Controls>
</System.Windows.Forms.Form>
</Components>

104
src/AddIns/Misc/SubversionAddIn/Project/Resources/LoginDialog.xfrm

@ -1,104 +0,0 @@ @@ -1,104 +0,0 @@
<Components version="1.0">
<System.Windows.Forms.Form>
<Name value="XmlForm1" />
<FormBorderStyle value="FixedDialog" />
<ClientSize value="{Width=292, Height=208}" />
<MinimizeBox value="False" />
<DockPadding value="" />
<Text value="Login" />
<AcceptButton value="okButton [System.Windows.Forms.Button], Text: OK" />
<CancelButton value="cancelButton [System.Windows.Forms.Button], Text: Cancel" />
<MaximizeBox value="False" />
<Controls>
<System.Windows.Forms.Button>
<Name value="cancelButton" />
<Location value="{X=208,Y=176}" />
<Text value="Cancel" />
<TabIndex value="11" />
<DialogResult value="Cancel" />
</System.Windows.Forms.Button>
<System.Windows.Forms.Button>
<Name value="okButton" />
<Location value="{X=128,Y=176}" />
<Text value="OK" />
<TabIndex value="10" />
</System.Windows.Forms.Button>
<System.Windows.Forms.CheckBox>
<Name value="saveCredentialsCheckBox" />
<Location value="{X=8,Y=144}" />
<Size value="{Width=272, Height=24}" />
<Text value="S&amp;ave credentials?" />
<Anchor value="Top, Left, Right" />
<TabIndex value="9" />
</System.Windows.Forms.CheckBox>
<System.Windows.Forms.CheckBox>
<Name value="showPasswordCheckBox" />
<Location value="{X=8,Y=120}" />
<Size value="{Width=272, Height=24}" />
<Text value="&amp;Show password?" />
<Anchor value="Top, Left, Right" />
<TabIndex value="8" />
</System.Windows.Forms.CheckBox>
<System.Windows.Forms.TextBox>
<Name value="pwd2TextBox" />
<TabIndex value="7" />
<Location value="{X=80,Y=96}" />
<Size value="{Width=200, Height=21}" />
<Text value="" />
</System.Windows.Forms.TextBox>
<System.Windows.Forms.Label>
<Name value="label4" />
<Text value="&amp;Re type:" />
<TextAlign value="MiddleRight" />
<TabIndex value="6" />
<Size value="{Width=80, Height=23}" />
<Location value="{X=0,Y=96}" />
</System.Windows.Forms.Label>
<System.Windows.Forms.TextBox>
<Name value="pwd1TextBox" />
<TabIndex value="5" />
<Location value="{X=80,Y=72}" />
<Size value="{Width=200, Height=21}" />
<Text value="" />
</System.Windows.Forms.TextBox>
<System.Windows.Forms.Label>
<Name value="label3" />
<Text value="&amp;Password:" />
<TextAlign value="MiddleRight" />
<TabIndex value="4" />
<Size value="{Width=72, Height=23}" />
<Location value="{X=8,Y=72}" />
</System.Windows.Forms.Label>
<System.Windows.Forms.TextBox>
<Name value="userNameTextBox" />
<TabIndex value="3" />
<Location value="{X=80,Y=40}" />
<Size value="{Width=200, Height=21}" />
<Text value="" />
</System.Windows.Forms.TextBox>
<System.Windows.Forms.Label>
<Name value="label2" />
<Text value="&amp;Username:" />
<TextAlign value="MiddleRight" />
<TabIndex value="2" />
<Size value="{Width=72, Height=23}" />
<Location value="{X=8,Y=40}" />
</System.Windows.Forms.Label>
<System.Windows.Forms.Label>
<Name value="realmLabel" />
<TextAlign value="MiddleLeft" />
<TabIndex value="1" />
<Size value="{Width=200, Height=23}" />
<Location value="{X=80,Y=8}" />
</System.Windows.Forms.Label>
<System.Windows.Forms.Label>
<Name value="label1" />
<Text value="Realm:" />
<TextAlign value="MiddleRight" />
<TabIndex value="0" />
<Size value="{Width=72, Height=23}" />
<Location value="{X=8,Y=8}" />
</System.Windows.Forms.Label>
</Controls>
</System.Windows.Forms.Form>
</Components>

148
src/AddIns/Misc/SubversionAddIn/Project/Resources/SslServerTrustDialog.xfrm

@ -1,148 +0,0 @@ @@ -1,148 +0,0 @@
<Components version="1.0">
<System.Windows.Forms.Form>
<Name value="XmlForm1" />
<FormBorderStyle value="FixedDialog" />
<ClientSize value="{Width=362, Height=360}" />
<MinimizeBox value="False" />
<DockPadding value="" />
<Text value="Security alert" />
<AcceptButton value="okButton [System.Windows.Forms.Button], Text: Accept" />
<CancelButton value="cancelButton [System.Windows.Forms.Button], Text: Reject" />
<MaximizeBox value="False" />
<Controls>
<System.Windows.Forms.GroupBox>
<Name value="groupBox1" />
<TabIndex value="0" />
<Location value="{X=8,Y=8}" />
<Size value="{Width=344, Height=104}" />
<Text value="Problems and Issues with this certificate" />
<Controls>
<System.Windows.Forms.Label>
<Name value="certificateDateStatusLabel" />
<Anchor value="Top, Left, Right" />
<TabIndex value="3" />
<Size value="{Width=328, Height=23}" />
<Location value="{X=8,Y=73}" />
</System.Windows.Forms.Label>
<System.Windows.Forms.Label>
<Name value="certificateNameStatusLabel" />
<Anchor value="Top, Left, Right" />
<TabIndex value="2" />
<Size value="{Width=328, Height=23}" />
<Location value="{X=8,Y=49}" />
</System.Windows.Forms.Label>
<System.Windows.Forms.Label>
<Name value="certificateAuthorityStatusLabel" />
<Anchor value="Top, Left, Right" />
<TabIndex value="1" />
<Size value="{Width=328, Height=23}" />
<Location value="{X=8,Y=25}" />
</System.Windows.Forms.Label>
</Controls>
</System.Windows.Forms.GroupBox>
<System.Windows.Forms.Label>
<Name value="issuerLabel" />
<TextAlign value="MiddleLeft" />
<Anchor value="Top, Left, Right" />
<TabIndex value="8" />
<Size value="{Width=248, Height=23}" />
<Location value="{X=112,Y=192}" />
</System.Windows.Forms.Label>
<System.Windows.Forms.Label>
<Name value="validLabel" />
<TextAlign value="MiddleLeft" />
<Anchor value="Top, Left, Right" />
<TabIndex value="6" />
<Size value="{Width=248, Height=23}" />
<Location value="{X=112,Y=168}" />
</System.Windows.Forms.Label>
<System.Windows.Forms.Label>
<Name value="fingerPrintlabel" />
<TextAlign value="MiddleLeft" />
<Anchor value="Top, Left, Right" />
<TabIndex value="4" />
<Size value="{Width=248, Height=23}" />
<Location value="{X=112,Y=144}" />
</System.Windows.Forms.Label>
<System.Windows.Forms.Label>
<Name value="hostNameLabel" />
<TextAlign value="MiddleLeft" />
<Anchor value="Top, Left, Right" />
<TabIndex value="2" />
<Size value="{Width=248, Height=23}" />
<Location value="{X=112,Y=120}" />
</System.Windows.Forms.Label>
<System.Windows.Forms.Label>
<Name value="label5" />
<Text value="Certificate:" />
<TextAlign value="BottomLeft" />
<Anchor value="Bottom, Left" />
<TabIndex value="9" />
<Size value="{Width=376, Height=23}" />
<Location value="{X=8,Y=216}" />
</System.Windows.Forms.Label>
<System.Windows.Forms.TextBox>
<Name value="certificateTextBox" />
<ReadOnly value="True" />
<Anchor value="Bottom, Left, Right" />
<TabIndex value="10" />
<Location value="{X=8,Y=240}" />
<Size value="{Width=344, Height=60}" />
<Multiline value="True" />
<Text value="" />
</System.Windows.Forms.TextBox>
<System.Windows.Forms.Label>
<Name value="label4" />
<Text value="Issuer:" />
<TextAlign value="MiddleRight" />
<TabIndex value="7" />
<Location value="{X=8,Y=192}" />
</System.Windows.Forms.Label>
<System.Windows.Forms.Label>
<Name value="label3" />
<Text value="Valid:" />
<TextAlign value="MiddleRight" />
<TabIndex value="5" />
<Location value="{X=8,Y=168}" />
</System.Windows.Forms.Label>
<System.Windows.Forms.Label>
<Name value="label2" />
<Text value="Fingerprint:" />
<TextAlign value="MiddleRight" />
<TabIndex value="3" />
<Location value="{X=8,Y=144}" />
</System.Windows.Forms.Label>
<System.Windows.Forms.Label>
<Name value="label1" />
<Text value="Hostname:" />
<TextAlign value="MiddleRight" />
<TabIndex value="1" />
<Location value="{X=8,Y=120}" />
</System.Windows.Forms.Label>
<System.Windows.Forms.Button>
<Name value="cancelButton" />
<Location value="{X=280,Y=328}" />
<Text value="Reject" />
<Anchor value="Bottom, Right" />
<TabIndex value="13" />
<DialogResult value="Cancel" />
</System.Windows.Forms.Button>
<System.Windows.Forms.Button>
<Name value="okButton" />
<Location value="{X=200,Y=328}" />
<Text value="Accept" />
<Anchor value="Bottom, Right" />
<TabIndex value="12" />
<DialogResult value="OK" />
</System.Windows.Forms.Button>
<System.Windows.Forms.CheckBox>
<Name value="saveCredentialsCheckBox" />
<Location value="{X=8,Y=304}" />
<Size value="{Width=342, Height=24}" />
<Text value="S&amp;ave credentials?" />
<Anchor value="Bottom, Left, Right" />
<TabIndex value="11" />
</System.Windows.Forms.CheckBox>
</Controls>
</System.Windows.Forms.Form>
</Components>

10
src/AddIns/Misc/SubversionAddIn/Project/Src/Commands/AutostartCommands.cs

@ -22,9 +22,6 @@ namespace ICSharpCode.Svn.Commands @@ -22,9 +22,6 @@ namespace ICSharpCode.Svn.Commands
/// </summary>
public sealed class RegisterEventsCommand : AbstractCommand
{
const int CannotDeleteFileWithLocalModifications = 195006;
const int CannotDeleteFileNotUnderVersionControl = 200005;
public override void Run()
{
FileService.FileRemoving += FileRemoving;
@ -231,11 +228,11 @@ namespace ICSharpCode.Svn.Commands @@ -231,11 +228,11 @@ namespace ICSharpCode.Svn.Commands
try {
client.Delete(new string[] { fullName }, false);
} catch (SvnClientException ex) {
LoggingService.Warn("SVN Error code " + ex.ErrorCode);
LoggingService.Warn("SVN Error" + ex);
LoggingService.Warn(ex);
if (ex.ErrorCode == CannotDeleteFileWithLocalModifications
|| ex.ErrorCode == CannotDeleteFileNotUnderVersionControl)
if (ex.IsKnownError(KnownError.CannotDeleteFileWithLocalModifications)
|| ex.IsKnownError(KnownError.CannotDeleteFileNotUnderVersionControl))
{
if (MessageService.ShowCustomDialog("${res:AddIns.Subversion.DeleteDirectory}",
StringParser.Parse("${res:AddIns.Subversion.ErrorDelete}:\n", new string[,] { { "File", fullName } }) +
@ -339,7 +336,6 @@ namespace ICSharpCode.Svn.Commands @@ -339,7 +336,6 @@ namespace ICSharpCode.Svn.Commands
}
e.OperationAlreadyDone = true;
client.Copy(fullSource,
Revision.Working,
Path.GetFullPath(e.TargetFile)
);
}

65
src/AddIns/Misc/SubversionAddIn/Project/Src/Gui/AuthentificationDialogs/ClientCertDialog.cs

@ -1,65 +0,0 @@ @@ -1,65 +0,0 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Mike Krüger" email="mike@icsharpcode.net"/>
// <version>$Revision$</version>
// </file>
using System;
using System.Reflection;
using System.Windows.Forms;
using ICSharpCode.SharpDevelop.Gui.XmlForms;
using PumaCode.SvnDotNet.AprSharp;
using PumaCode.SvnDotNet.SubversionSharp;
namespace ICSharpCode.Svn.Gui
{
/// <summary>
/// Description of LoginDialog.
/// </summary>
public class ClientCertDialog : BaseSharpDevelopForm
{
public string Realm {
get {
return ControlDictionary["realmLabel"].Text;
}
set {
ControlDictionary["realmLabel"].Text = value;
}
}
public string FileName {
get {
return ControlDictionary["pathTextBox"].Text;
}
set {
ControlDictionary["pathTextBox"].Text = value;
}
}
public bool MaySave {
get {
return ((CheckBox)ControlDictionary["saveCredentialsCheckBox"]).Checked;
}
set {
((CheckBox)ControlDictionary["saveCredentialsCheckBox"]).Checked = value;
}
}
public SvnAuthCredSslClientCert CreateCredential(AprPool pool)
{
SvnAuthCredSslClientCert cred = SvnAuthCredSslClientCert.Alloc(pool);
cred.CertFile = new SvnPath(FileName, pool);
cred.MaySave = MaySave;
return cred;
}
public ClientCertDialog(string realm, bool maySave)
{
SetupFromXmlStream(Assembly.GetExecutingAssembly().GetManifestResourceStream("ICSharpCode.Svn.Resources.ClientCertDialog.xfrm"));
this.Realm = realm;
this.MaySave = maySave;
}
}
}

65
src/AddIns/Misc/SubversionAddIn/Project/Src/Gui/AuthentificationDialogs/ClientCertPassphraseDialog.cs

@ -1,65 +0,0 @@ @@ -1,65 +0,0 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Mike Krüger" email="mike@icsharpcode.net"/>
// <version>$Revision$</version>
// </file>
using System;
using System.Reflection;
using System.Windows.Forms;
using ICSharpCode.SharpDevelop.Gui.XmlForms;
using PumaCode.SvnDotNet.AprSharp;
using PumaCode.SvnDotNet.SubversionSharp;
namespace ICSharpCode.Svn.Gui
{
/// <summary>
/// Description of LoginDialog.
/// </summary>
public class ClientCertPassphraseDialog : BaseSharpDevelopForm
{
public string Realm {
get {
return ControlDictionary["realmLabel"].Text;
}
set {
ControlDictionary["realmLabel"].Text = value;
}
}
public string Passphrase {
get {
return ControlDictionary["passPhraseTextBox"].Text;
}
set {
ControlDictionary["passPhraseTextBox"].Text = value;
}
}
public bool MaySave {
get {
return ((CheckBox)ControlDictionary["saveCredentialsCheckBox"]).Checked;
}
set {
((CheckBox)ControlDictionary["saveCredentialsCheckBox"]).Checked = value;
}
}
public SvnAuthCredSslClientCertPw CreateCredential(AprPool pool)
{
SvnAuthCredSslClientCertPw cred = SvnAuthCredSslClientCertPw.Alloc(pool);
cred.CertFile = new SvnPath(Passphrase, pool); // this should be cred.Password, the property is named incorrectly in Svn.Net
cred.MaySave = MaySave;
return cred;
}
public ClientCertPassphraseDialog(string realm, bool maySave)
{
SetupFromXmlStream(Assembly.GetExecutingAssembly().GetManifestResourceStream("ICSharpCode.Svn.Resources.ClientCertPassphraseDialog.xfrm"));
this.Realm = realm;
this.MaySave = maySave;
}
}
}

124
src/AddIns/Misc/SubversionAddIn/Project/Src/Gui/AuthentificationDialogs/LoginDialog.cs

@ -1,124 +0,0 @@ @@ -1,124 +0,0 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Mike Krüger" email="mike@icsharpcode.net"/>
// <version>$Revision$</version>
// </file>
using System;
using System.Reflection;
using System.Windows.Forms;
using ICSharpCode.SharpDevelop.Gui.XmlForms;
using PumaCode.SvnDotNet.AprSharp;
using PumaCode.SvnDotNet.SubversionSharp;
namespace ICSharpCode.Svn.Gui
{
/// <summary>
/// Description of LoginDialog.
/// </summary>
public class LoginDialog : BaseSharpDevelopForm
{
public bool MaySave {
get {
return ((CheckBox)ControlDictionary["saveCredentialsCheckBox"]).Checked;
}
set {
((CheckBox)ControlDictionary["saveCredentialsCheckBox"]).Checked = value;
}
}
public string Realm {
get {
return ControlDictionary["realmLabel"].Text;
}
set {
ControlDictionary["realmLabel"].Text = value;
}
}
public string UserName {
get {
return ControlDictionary["userNameTextBox"].Text;
}
set {
ControlDictionary["userNameTextBox"].Text = value;
}
}
public SvnAuthCredSimple CreateCredential(AprPool pool)
{
SvnAuthCredSimple cred = SvnAuthCredSimple.Alloc(pool);
cred.Username = new AprString(UserName, pool);
cred.Password = new AprString(Password, pool);
cred.MaySave = MaySave;
return cred;
}
string Password {
get {
return ControlDictionary["pwd1TextBox"].Text;
}
}
string ReTypedPassword {
get {
return ControlDictionary["pwd2TextBox"].Text;
}
}
bool ShowPasswords {
get {
return ((CheckBox)ControlDictionary["showPasswordCheckBox"]).Checked;
}
}
public LoginDialog(string realm, string userName, bool maySave)
{
SetupFromXmlStream(Assembly.GetExecutingAssembly().GetManifestResourceStream("ICSharpCode.Svn.Resources.LoginDialog.xfrm"));
this.UserName = userName;
this.Realm = realm;
this.MaySave = maySave;
((CheckBox)ControlDictionary["showPasswordCheckBox"]).CheckedChanged += new EventHandler(ShowPasswordCheckBoxCheckedChanged);
((TextBox)ControlDictionary["pwd1TextBox"]).PasswordChar = '*';
((TextBox)ControlDictionary["pwd2TextBox"]).PasswordChar = '*';
((TextBox)ControlDictionary["pwd1TextBox"]).TextChanged += new EventHandler(PasswordTextChanged);
((TextBox)ControlDictionary["pwd2TextBox"]).TextChanged += new EventHandler(PasswordTextChanged);
ControlDictionary["okButton"].Click += new EventHandler(OkButtonClicked);
}
void ShowPasswordCheckBoxCheckedChanged(object sender, EventArgs e)
{
if (ShowPasswords) {
((TextBox)ControlDictionary["pwd1TextBox"]).PasswordChar = '\0';
((TextBox)ControlDictionary["pwd2TextBox"]).Enabled = false;
} else {
((TextBox)ControlDictionary["pwd1TextBox"]).PasswordChar = '*';
((TextBox)ControlDictionary["pwd2TextBox"]).Enabled = true;
}
}
void PasswordTextChanged(object sender, EventArgs e)
{
ControlDictionary["okButton"].Enabled = ShowPasswords || Password == ReTypedPassword;
}
void OkButtonClicked(object sender, EventArgs e)
{
bool done = false;
if (ShowPasswords) {
done = UserName.Length > 0 && Password.Length > 0;
} else {
done = Password == ReTypedPassword;
}
if (done) {
DialogResult = DialogResult.OK;
}
}
}
}

124
src/AddIns/Misc/SubversionAddIn/Project/Src/Gui/AuthentificationDialogs/SslServerTrustDialog.cs

@ -1,124 +0,0 @@ @@ -1,124 +0,0 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Mike Krüger" email="mike@icsharpcode.net"/>
// <version>$Revision$</version>
// </file>
using System;
using System.Drawing;
using System.Reflection;
using System.Windows.Forms;
using ICSharpCode.SharpDevelop.Gui.XmlForms;
using PumaCode.SvnDotNet.AprSharp;
using PumaCode.SvnDotNet.SubversionSharp;
namespace ICSharpCode.Svn.Gui
{
/// <summary>
/// Description of LoginDialog.
/// </summary>
public class SslServerTrustDialog : BaseSharpDevelopForm
{
SvnAuthSslServerCertInfo certificateInfo;
SvnAuthCredSslServerTrust.CertFailures failures;
public SvnAuthSslServerCertInfo CertificateInfo {
get {
return certificateInfo;
}
set {
certificateInfo = value;
UpdateCertificateInfo();
}
}
public SvnAuthCredSslServerTrust.CertFailures Failures {
get {
return failures;
}
set {
failures = value;
UpdateFailures();
}
}
public bool MaySave {
get {
return ((CheckBox)ControlDictionary["saveCredentialsCheckBox"]).Checked;
}
set {
((CheckBox)ControlDictionary["saveCredentialsCheckBox"]).Checked = value;
}
}
public SvnAuthCredSslServerTrust CreateCredential(AprPool pool)
{
SvnAuthCredSslServerTrust cred = SvnAuthCredSslServerTrust.Alloc(pool);
cred.AcceptedFailures = failures;
cred.MaySave = MaySave;
return cred;
}
public SslServerTrustDialog(SvnAuthSslServerCertInfo certificateInfo, SvnAuthCredSslServerTrust.CertFailures failures, bool maySave)
{
SetupFromXmlStream(Assembly.GetExecutingAssembly().GetManifestResourceStream("ICSharpCode.Svn.Resources.SslServerTrustDialog.xfrm"));
this.CertificateInfo = certificateInfo;
this.Failures = failures;
this.MaySave = maySave;
}
void UpdateCertificateInfo()
{
if (!certificateInfo.IsNull) {
ControlDictionary["hostNameLabel"].Text = certificateInfo.Hostname.Value;
ControlDictionary["fingerPrintlabel"].Text = certificateInfo.Fingerprint.Value;
ControlDictionary["validLabel"].Text = "From " + certificateInfo.ValidFrom + " to " + certificateInfo.ValidUntil;
ControlDictionary["issuerLabel"].Text = certificateInfo.IssuerDName.Value;
ControlDictionary["certificateTextBox"].Text = certificateInfo.AsciiCert.Value;
} else {
ControlDictionary["hostNameLabel"].Text = String.Empty;
ControlDictionary["fingerPrintlabel"].Text = String.Empty;
ControlDictionary["validLabel"].Text = String.Empty;
ControlDictionary["issuerLabel"].Text = String.Empty;
ControlDictionary["certificateTextBox"].Text = String.Empty;
}
}
bool HasFailures(SvnAuthCredSslServerTrust.CertFailures testFailures)
{
return (failures & testFailures) == testFailures;
}
void UpdateFailures()
{
if (HasFailures(SvnAuthCredSslServerTrust.CertFailures.UnknownCA)) {
ControlDictionary["certificateAuthorityStatusLabel"].Text = "The issuing certificate authority(CA) is not trusted.";
ControlDictionary["certificateAuthorityStatusLabel"].ForeColor = Color.Red;
} else {
ControlDictionary["certificateAuthorityStatusLabel"].Text = "The issuing certificate authority(CA) is known and trusted.";
ControlDictionary["certificateAuthorityStatusLabel"].ForeColor = Color.Green;
}
if (HasFailures(SvnAuthCredSslServerTrust.CertFailures.CNMismatch)) {
ControlDictionary["certificateNameStatusLabel"].Text = "The certificate's hostname does not match the hostname of the server.";
ControlDictionary["certificateNameStatusLabel"].ForeColor = Color.Red;
} else {
ControlDictionary["certificateNameStatusLabel"].Text = "The certificate's hostname matches the hostname of the server.";
ControlDictionary["certificateNameStatusLabel"].ForeColor = Color.Green;
}
if (HasFailures(SvnAuthCredSslServerTrust.CertFailures.Expired)) {
ControlDictionary["certificateDateStatusLabel"].Text = "The server certificate has expired.";
ControlDictionary["certificateDateStatusLabel"].ForeColor = Color.Red;
} else if (HasFailures(SvnAuthCredSslServerTrust.CertFailures.NotYetValid)) {
ControlDictionary["certificateDateStatusLabel"].Text = "The server certificate is not yet valid.";
ControlDictionary["certificateDateStatusLabel"].ForeColor = Color.Red;
} else {
ControlDictionary["certificateDateStatusLabel"].Text = "The server certificate date is valid.";
ControlDictionary["certificateDateStatusLabel"].ForeColor = Color.Green;
}
}
}
}

2
src/AddIns/Misc/SubversionAddIn/Project/Src/Gui/HistoryViewDisplayBinding/HistoryViewPanel.cs

@ -88,7 +88,7 @@ namespace ICSharpCode.Svn @@ -88,7 +88,7 @@ namespace ICSharpCode.Svn
LoggingService.Info("SVN: Get log of " + fileName);
if (File.Exists(fileName)) {
using (SvnClientWrapper client = new SvnClientWrapper()) {
client.AllowInteractiveAuthorization = true;
client.AllowInteractiveAuthorization();
client.Log(new string[] { fileName },
Revision.Head, // Revision start
Revision.FromNumber(1), // Revision end

6
src/AddIns/Misc/SubversionAddIn/Project/Src/Gui/HistoryViewDisplayBinding/InfoPanel.cs

@ -54,7 +54,7 @@ namespace ICSharpCode.Svn @@ -54,7 +54,7 @@ namespace ICSharpCode.Svn
revisionListView.Controls.Add(txt);
}
int lastRevision = -1;
long lastRevision = -1;
public void AddLogMessage(LogMessage logMessage)
{
@ -131,7 +131,7 @@ namespace ICSharpCode.Svn @@ -131,7 +131,7 @@ namespace ICSharpCode.Svn
LogMessage logMessage = (LogMessage)loadChangedPathsItem.Tag;
string fileName = System.IO.Path.GetFullPath(viewContent.PrimaryFileName);
using (SvnClientWrapper client = new SvnClientWrapper()) {
client.AllowInteractiveAuthorization = true;
client.AllowInteractiveAuthorization();
try {
client.Log(new string[] { fileName },
Revision.FromNumber(logMessage.Revision), // Revision start
@ -141,7 +141,7 @@ namespace ICSharpCode.Svn @@ -141,7 +141,7 @@ namespace ICSharpCode.Svn
false, // bool strictNodeHistory
ReceiveChangedPaths);
} catch (SvnClientException ex) {
if (ex.ErrorCode == 160013) {
if (ex.IsKnownError(KnownError.FileNotFound)) {
// This can happen when the file was renamed/moved so it cannot be found
// directly in the old revision. In that case, we do a full download of
// all revisions (so the file can be found in the new revision and svn can

3
src/AddIns/Misc/SubversionAddIn/Project/Src/SubversionStateCondition.cs

@ -10,8 +10,7 @@ using System.IO; @@ -10,8 +10,7 @@ using System.IO;
using ICSharpCode.Core;
using ICSharpCode.SharpDevelop.Project;
using ICSharpCode.Svn.Commands;
using PumaCode.SvnDotNet.SubversionSharp;
using PumaCode.SvnDotNet.AprSharp;
using SharpSvn;
namespace ICSharpCode.Svn
{

466
src/AddIns/Misc/SubversionAddIn/Project/Src/SvnClientWrapper.cs

@ -5,94 +5,92 @@ @@ -5,94 +5,92 @@
// <version>$Revision$</version>
// </file>
using SharpSvn.UI;
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Threading;
using System.Windows.Forms;
using System.Text;
using System.IO;
using ICSharpCode.Core;
using ICSharpCode.SharpDevelop.Gui;
using ICSharpCode.Svn.Gui;
using PumaCode.SvnDotNet.SubversionSharp;
using PumaCode.SvnDotNet.AprSharp;
using System.Runtime.Serialization;
using SharpSvn;
namespace ICSharpCode.Svn
{
using Svn = PumaCode.SvnDotNet.SubversionSharp.Svn;
/// <summary>
/// A wrapper around the subversion library.
/// </summary>
public sealed class SvnClientWrapper : IDisposable
{
#region status->string conversion
static string GetKindString(Svn.NodeKind kind)
static string GetKindString(SvnNodeKind kind)
{
switch (kind) {
case Svn.NodeKind.Dir:
case SvnNodeKind.Directory:
return "directory ";
case Svn.NodeKind.File:
case SvnNodeKind.File:
return "file ";
default:
return null;
}
return null;
}
public static string GetActionString(char action)
public static string GetActionString(SvnChangeAction action)
{
switch (action) {
case 'A':
return GetActionString(SvnWcNotify.Actions.CommitAdded);
case 'D':
return GetActionString(SvnWcNotify.Actions.CommitDeleted);
case 'M':
return GetActionString(SvnWcNotify.Actions.CommitModified);
case 'R':
return GetActionString(SvnWcNotify.Actions.CommitReplaced);
case SvnChangeAction.Add:
return GetActionString(SvnNotifyAction.CommitAdded);
case SvnChangeAction.Delete:
return GetActionString(SvnNotifyAction.CommitDeleted);
case SvnChangeAction.Modify:
return GetActionString(SvnNotifyAction.CommitModified);
case SvnChangeAction.Replace:
return GetActionString(SvnNotifyAction.CommitReplaced);
default:
return "unknown";
}
}
static string GetActionString(SvnWcNotify.Actions action)
static string GetActionString(SvnNotifyAction action)
{
switch (action) {
case SvnWcNotify.Actions.Add:
case SvnWcNotify.Actions.UpdateAdd:
case SvnWcNotify.Actions.CommitAdded:
case SvnNotifyAction.Add:
case SvnNotifyAction.CommitAdded:
return "added";
case SvnWcNotify.Actions.Copy:
case SvnNotifyAction.Copy:
return "copied";
case SvnWcNotify.Actions.Delete:
case SvnWcNotify.Actions.UpdateDelete:
case SvnWcNotify.Actions.CommitDeleted:
case SvnNotifyAction.Delete:
case SvnNotifyAction.UpdateDelete:
case SvnNotifyAction.CommitDeleted:
return "deleted";
case SvnWcNotify.Actions.Restore:
case SvnNotifyAction.Restore:
return "restored";
case SvnWcNotify.Actions.Revert:
case SvnNotifyAction.Revert:
return "reverted";
case SvnWcNotify.Actions.FailedRevert:
case SvnNotifyAction.RevertFailed:
return "revert failed";
case SvnWcNotify.Actions.Resolved:
case SvnNotifyAction.Resolved:
return "resolved";
case SvnWcNotify.Actions.Skip:
case SvnNotifyAction.Skip:
return "skipped";
case SvnWcNotify.Actions.UpdateUpdate:
case SvnNotifyAction.UpdateUpdate:
return "updated";
case SvnWcNotify.Actions.UpdateExternal:
case SvnNotifyAction.UpdateExternal:
return "updated external";
case SvnWcNotify.Actions.CommitModified:
case SvnNotifyAction.CommitModified:
return "modified";
case SvnWcNotify.Actions.CommitReplaced:
case SvnNotifyAction.CommitReplaced:
return "replaced";
case SvnWcNotify.Actions.FailedLock:
case SvnNotifyAction.LockFailedLock:
return "lock failed";
case SvnWcNotify.Actions.FailedUnlock:
case SvnNotifyAction.LockFailedUnlock:
return "unlock failed";
case SvnWcNotify.Actions.Locked:
case SvnNotifyAction.LockLocked:
return "locked";
case SvnWcNotify.Actions.Unlocked:
case SvnNotifyAction.LockUnlocked:
return "unlocked";
default:
return "unknown";
@ -100,37 +98,6 @@ namespace ICSharpCode.Svn @@ -100,37 +98,6 @@ namespace ICSharpCode.Svn
}
#endregion
#region AprPoolHandle
sealed class AprPoolHandle : IDisposable
{
AprPool pool;
public AprPool Pool {
get { return pool; }
}
public AprPoolHandle()
{
pool = Svn.PoolCreate();
}
public void Dispose()
{
if (!pool.IsNull) {
pool.Destroy();
}
GC.SuppressFinalize(this);
}
~AprPoolHandle()
{
if (!pool.IsNull) {
pool.Destroy();
}
}
}
#endregion
#region Cancel support
bool cancel;
@ -139,17 +106,12 @@ namespace ICSharpCode.Svn @@ -139,17 +106,12 @@ namespace ICSharpCode.Svn
cancel = true;
}
SvnError OnCancel(IntPtr baton)
void client_Cancel(object sender, SvnCancelEventArgs e)
{
// TODO: lookup correct error number
if (cancel)
return SvnError.Create(1, SvnError.NoError, "User cancelled.");
else
return SvnError.NoError;
e.Cancel = cancel;
}
#endregion
AprPoolHandle memoryPool;
SvnClient client;
Dictionary<string, Status> statusCache = new Dictionary<string, Status>(StringComparer.OrdinalIgnoreCase);
@ -157,19 +119,15 @@ namespace ICSharpCode.Svn @@ -157,19 +119,15 @@ namespace ICSharpCode.Svn
{
Debug("SVN: Create SvnClient instance");
memoryPool = new AprPoolHandle();
client = new SvnClient(memoryPool.Pool);
client.Context.NotifyFunc2 = new SvnDelegate(new SvnWcNotify.Func2(OnNotify));
client.Context.CancelFunc = new SvnDelegate(new SvnClient.CancelFunc(OnCancel));
client = new SvnClient();
client.Notify += client_Notify;
client.Cancel += client_Cancel;
}
public void Dispose()
{
if (memoryPool != null) {
Debug("SVN: Dispose SvnClient");
memoryPool.Dispose();
memoryPool = null;
}
if (client != null)
client.Dispose();
client = null;
statusCache = null;
}
@ -178,17 +136,12 @@ namespace ICSharpCode.Svn @@ -178,17 +136,12 @@ namespace ICSharpCode.Svn
bool authorizationEnabled;
bool allowInteractiveAuthorization;
public bool AllowInteractiveAuthorization {
get {
return allowInteractiveAuthorization;
}
set {
CheckNotDisposed();
if (allowInteractiveAuthorization != value) {
if (authorizationEnabled)
throw new InvalidOperationException("Cannot change AllowInteractiveAuthorization after an operation was done.");
allowInteractiveAuthorization = value;
}
public void AllowInteractiveAuthorization()
{
CheckNotDisposed();
if (!allowInteractiveAuthorization) {
allowInteractiveAuthorization = true;
SvnUI.Bind(client, WorkbenchSingleton.MainForm);
}
}
@ -197,90 +150,6 @@ namespace ICSharpCode.Svn @@ -197,90 +150,6 @@ namespace ICSharpCode.Svn
if (authorizationEnabled)
return;
authorizationEnabled = true;
const int retryLimit = 3;
client.AddUsernameProvider();
client.AddSimpleProvider();
if (allowInteractiveAuthorization) {
client.AddPromptProvider(PasswordPrompt, IntPtr.Zero, retryLimit);
}
client.AddSslServerTrustFileProvider();
if (allowInteractiveAuthorization) {
client.AddPromptProvider(SslServerTrustPrompt, IntPtr.Zero);
}
client.AddSslClientCertPwFileProvider();
if (allowInteractiveAuthorization) {
client.AddPromptProvider(ClientCertificatePasswordPrompt, IntPtr.Zero, retryLimit);
}
client.AddSslClientCertFileProvider();
if (allowInteractiveAuthorization) {
client.AddPromptProvider(ClientCertificatePrompt, IntPtr.Zero, retryLimit);
}
client.OpenAuth();
}
SvnError PasswordPrompt(out SvnAuthCredSimple cred, IntPtr baton, AprString realm, AprString username, bool maySave, AprPool pool)
{
cred = IntPtr.Zero;
LoggingService.Debug("PasswordPrompt");
try {
using (LoginDialog loginDialog = new LoginDialog(realm.Value, username.Value, maySave)) {
if (WorkbenchSingleton.SafeThreadFunction<Form, DialogResult>(loginDialog.ShowDialog, WorkbenchSingleton.MainForm) == DialogResult.OK) {
cred = loginDialog.CreateCredential(pool);
}
}
} catch (Exception ex) {
MessageService.ShowError(ex);
}
return SvnError.NoError;
}
SvnError SslServerTrustPrompt(out SvnAuthCredSslServerTrust cred, IntPtr baton, AprString realm, SvnAuthCredSslServerTrust.CertFailures failures, SvnAuthSslServerCertInfo certInfo, bool maySave, IntPtr pool)
{
cred = IntPtr.Zero;
LoggingService.Debug("SslServerTrustPrompt");
try {
using (SslServerTrustDialog sslServerTrustDialog = new SslServerTrustDialog(certInfo, failures, maySave)) {
if (WorkbenchSingleton.SafeThreadFunction<Form, DialogResult>(sslServerTrustDialog.ShowDialog, WorkbenchSingleton.MainForm) == DialogResult.OK) {
cred = sslServerTrustDialog.CreateCredential(pool);
}
}
} catch (Exception ex) {
MessageService.ShowError(ex);
}
return SvnError.NoError;
}
SvnError ClientCertificatePasswordPrompt(out SvnAuthCredSslClientCertPw cred, IntPtr baton, AprString realm, bool maySave, IntPtr pool)
{
cred = IntPtr.Zero;
LoggingService.Debug("SslServerTrustPrompt");
try {
using (ClientCertPassphraseDialog clientCertPassphraseDialog = new ClientCertPassphraseDialog(realm.Value, maySave)) {
if (WorkbenchSingleton.SafeThreadFunction<Form, DialogResult>(clientCertPassphraseDialog.ShowDialog, WorkbenchSingleton.MainForm) == DialogResult.OK) {
cred = clientCertPassphraseDialog.CreateCredential(pool);
}
}
} catch (Exception ex) {
MessageService.ShowError(ex);
}
return SvnError.NoError;
}
SvnError ClientCertificatePrompt(out SvnAuthCredSslClientCert cred, IntPtr baton, AprString realm, bool maySave, IntPtr pool)
{
cred = IntPtr.Zero;
LoggingService.Debug("SslServerTrustPrompt");
try {
using (ClientCertDialog clientCertDialog = new ClientCertDialog(realm.Value, maySave)) {
if (WorkbenchSingleton.SafeThreadFunction<Form, DialogResult>(clientCertDialog.ShowDialog, WorkbenchSingleton.MainForm) == DialogResult.OK) {
cred = clientCertDialog.CreateCredential(pool);
}
}
} catch (Exception ex) {
MessageService.ShowError(ex);
}
return SvnError.NoError;
}
#endregion
@ -289,20 +158,20 @@ namespace ICSharpCode.Svn @@ -289,20 +158,20 @@ namespace ICSharpCode.Svn
public event EventHandler OperationFinished;
public event EventHandler<NotificationEventArgs> Notify;
void OnNotify(IntPtr baton, SvnWcNotify notify, AprPool pool)
void client_Notify(object sender, SvnNotifyEventArgs e)
{
if (Notify != null) {
Notify(this, new NotificationEventArgs() {
Action = GetActionString(notify.Action),
Kind = GetKindString(notify.Kind),
Path = notify.Path.Value
Action = GetActionString(e.Action),
Kind = GetKindString(e.NodeKind),
Path = e.Path
});
}
}
#endregion
[System.Diagnostics.ConditionalAttribute("DEBUG")]
void Debug(string text)
static void Debug(string text)
{
LoggingService.Debug(text);
}
@ -327,7 +196,6 @@ namespace ICSharpCode.Svn @@ -327,7 +196,6 @@ namespace ICSharpCode.Svn
void AfterOperation()
{
// after any subversion operation, clear the memory pool
client.Clear();
if (OperationFinished != null)
OperationFinished(this, EventArgs.Empty);
}
@ -349,22 +217,25 @@ namespace ICSharpCode.Svn @@ -349,22 +217,25 @@ namespace ICSharpCode.Svn
Debug("SVN: SingleStatus retrieved from cache " + result.TextStatus);
return result;
}
client.Status2(
filename, Svn.Revision.Working,
delegate (IntPtr baton, SvnPath path, SvnWcStatus2 status) {
string dir = path.Value;
Debug("SVN: SingleStatus.callback(" + dir + "," + status.TextStatus + ")");
SvnStatusArgs args = new SvnStatusArgs {
Revision = SvnRevision.Working,
RetrieveAllEntries = true,
RetrieveIgnoredEntries = true
};
client.Status(
filename, args,
delegate (object sender, SvnStatusEventArgs e) {
string dir = e.FullPath;
Debug("SVN: SingleStatus.callback(" + dir + "," + e.LocalContentStatus + ")");
Status s = new Status {
Copied = status.Copied,
TextStatus = ToStatusKind(status.TextStatus)
Copied = e.LocalCopied,
TextStatus = ToStatusKind(e.LocalContentStatus)
};
statusCache[dir] = s;
if (StringComparer.OrdinalIgnoreCase.Equals(filename, dir)) {
result = s;
}
},
IntPtr.Zero,
false, true, false, false, false
}
);
if (result != null) {
return result;
@ -380,12 +251,20 @@ namespace ICSharpCode.Svn @@ -380,12 +251,20 @@ namespace ICSharpCode.Svn
}
}
static SvnDepth ConvertDepth(Recurse recurse)
{
if (recurse == Recurse.Full)
return SvnDepth.Infinity;
else
return SvnDepth.Empty;
}
public void Add(string filename, Recurse recurse)
{
Debug("SVN: Add(" + filename + ", " + recurse + ")");
BeforeOperation("add");
try {
client.Add3(filename, recurse == Recurse.Full, false, false);
client.Add(filename, ConvertDepth(recurse));
} catch (SvnException ex) {
throw new SvnClientException(ex);
} finally {
@ -398,17 +277,11 @@ namespace ICSharpCode.Svn @@ -398,17 +277,11 @@ namespace ICSharpCode.Svn
Debug("SVN: GetPropertyValue(" + fileName + ", " + propertyName + ")");
BeforeOperation("propget");
try {
AprHash hash = client.PropGet2(propertyName, fileName,
Svn.Revision.Working, Svn.Revision.Working,
false);
foreach (AprHashEntry entry in hash) {
// entry.ValueAsString treats the value as const char*, but it is a svn_string_t*
SvnString value = entry.Value;
Debug("SVN: GetPropertyValue hash entry: (" + entry.KeyAsString + ", " + value + ")");
return value.Data.Value;
}
Debug("SVN: GetPropertyValue did not find any entries");
return null;
string propertyValue;
if (client.GetProperty(fileName, propertyName, out propertyValue))
return propertyValue;
else
return null;
} catch (SvnException ex) {
throw new SvnClientException(ex);
} finally {
@ -421,12 +294,10 @@ namespace ICSharpCode.Svn @@ -421,12 +294,10 @@ namespace ICSharpCode.Svn
Debug("SVN: SetPropertyValue(" + fileName + ", " + propertyName + ", " + newPropertyValue + ")");
BeforeOperation("propset");
try {
SvnString npv;
if (newPropertyValue != null)
npv = new SvnString(newPropertyValue, client.Pool);
client.SetProperty(fileName, propertyName, newPropertyValue);
else
npv = IntPtr.Zero;
client.PropSet2(propertyName, npv, fileName, false, false);
client.DeleteProperty(fileName, propertyName);
} catch (SvnException ex) {
throw new SvnClientException(ex);
} finally {
@ -434,21 +305,16 @@ namespace ICSharpCode.Svn @@ -434,21 +305,16 @@ namespace ICSharpCode.Svn
}
}
SvnPath[] ToSvnPaths(string[] files)
{
SvnPath[] paths = new SvnPath[files.Length];
for (int i = 0; i < files.Length; i++) {
paths[i] = new SvnPath(files[i], client.Pool);
}
return paths;
}
public void Delete(string[] files, bool force)
{
Debug("SVN: Delete(" + string.Join(",", files) + ", " + force + ")");
BeforeOperation("delete");
try {
client.Delete2(ToSvnPaths(files), force);
client.Delete(
files,
new SvnDeleteArgs {
Force = force
});
} catch (SvnException ex) {
throw new SvnClientException(ex);
} finally {
@ -461,7 +327,11 @@ namespace ICSharpCode.Svn @@ -461,7 +327,11 @@ namespace ICSharpCode.Svn
Debug("SVN: Revert(" + string.Join(",", files) + ", " + recurse + ")");
BeforeOperation("revert");
try {
client.Revert(ToSvnPaths(files), recurse == Recurse.Full);
client.Revert(
files,
new SvnRevertArgs {
Depth = ConvertDepth(recurse)
});
} catch (SvnException ex) {
throw new SvnClientException(ex);
} finally {
@ -474,7 +344,11 @@ namespace ICSharpCode.Svn @@ -474,7 +344,11 @@ namespace ICSharpCode.Svn
Debug("SVN: Move(" + from + ", " + to + ", " + force + ")");
BeforeOperation("move");
try {
client.Move3(from, to, force);
client.Move(
from, to,
new SvnMoveArgs {
Force = force
});
} catch (SvnException ex) {
throw new SvnClientException(ex);
} finally {
@ -482,12 +356,12 @@ namespace ICSharpCode.Svn @@ -482,12 +356,12 @@ namespace ICSharpCode.Svn
}
}
public void Copy(string from, Revision revision, string to)
public void Copy(string from, string to)
{
Debug("SVN: Copy(" + from + ", " + revision + ", " + to);
Debug("SVN: Copy(" + from + ", " + to);
BeforeOperation("copy");
try {
client.Copy2(from, revision, to);
client.Copy(from, to);
} catch (SvnException ex) {
throw new SvnClientException(ex);
} finally {
@ -523,37 +397,39 @@ namespace ICSharpCode.Svn @@ -523,37 +397,39 @@ namespace ICSharpCode.Svn
", " + limit + ", " + discoverChangePaths + ", " + strictNodeHistory + ")");
BeforeOperation("log");
try {
client.Log2(
ToSvnPaths(paths),
start, end, limit, discoverChangePaths, strictNodeHistory,
delegate (IntPtr baton, AprHash changed_paths, int revision, AprString author, AprString date, AprString message, AprPool pool) {
Debug("SVN: Log: Got revision " + revision);
DateTime dateTime = DateTime.MinValue;
DateTime.TryParse(date.Value, out dateTime);
client.Log(
paths,
new SvnLogArgs {
Start = start,
End = end,
Limit = limit,
RetrieveChangedPaths = discoverChangePaths,
StrictNodeHistory = strictNodeHistory
},
delegate (object sender, SvnLogEventArgs e) {
Debug("SVN: Log: Got revision " + e.Revision);
LogMessage msg = new LogMessage() {
Revision = revision,
Author = author.Value,
Date = dateTime,
Message = message.Value
Revision = e.Revision,
Author = e.Author,
Date = e.Time,
Message = e.LogMessage
};
if (discoverChangePaths) {
msg.ChangedPaths = new List<ChangedPath>();
foreach (AprHashEntry entry in changed_paths) {
SvnLogChangedPath changedPath = entry.Value;
foreach (var entry in e.ChangedPaths) {
msg.ChangedPaths.Add(new ChangedPath {
Path = entry.KeyAsString,
CopyFromPath = changedPath.CopyFromPath.Value,
CopyFromRevision = changedPath.CopyFromRev,
Action = changedPath.Action
Path = entry.Path,
CopyFromPath = entry.CopyFromPath,
CopyFromRevision = entry.CopyFromRevision,
Action = entry.Action
});
}
}
logMessageReceiver(msg);
return SvnError.NoError;
},
IntPtr.Zero
}
);
Debug("SVN: Log finished");
} catch (SvnOperationCanceledException) {
// allow cancel without exception
} catch (SvnException ex) {
throw new SvnClientException(ex);
} finally {
@ -561,35 +437,35 @@ namespace ICSharpCode.Svn @@ -561,35 +437,35 @@ namespace ICSharpCode.Svn
}
}
static StatusKind ToStatusKind(SvnWcStatus.Kind kind)
static StatusKind ToStatusKind(SvnStatus kind)
{
switch (kind) {
case SvnWcStatus.Kind.Added:
case SvnStatus.Added:
return StatusKind.Added;
case SvnWcStatus.Kind.Conflicted:
case SvnStatus.Conflicted:
return StatusKind.Conflicted;
case SvnWcStatus.Kind.Deleted:
case SvnStatus.Deleted:
return StatusKind.Deleted;
case SvnWcStatus.Kind.External:
case SvnStatus.External:
return StatusKind.External;
case SvnWcStatus.Kind.Ignored:
case SvnStatus.Ignored:
return StatusKind.Ignored;
case SvnWcStatus.Kind.Incomplete:
case SvnStatus.Incomplete:
return StatusKind.Incomplete;
case SvnWcStatus.Kind.Merged:
case SvnStatus.Merged:
return StatusKind.Merged;
case SvnWcStatus.Kind.Missing:
case SvnStatus.Missing:
return StatusKind.Missing;
case SvnWcStatus.Kind.Modified:
case SvnStatus.Modified:
return StatusKind.Modified;
case SvnWcStatus.Kind.Normal:
case SvnStatus.Normal:
return StatusKind.Normal;
case SvnWcStatus.Kind.Obstructed:
case SvnStatus.NotVersioned:
return StatusKind.Unversioned;
case SvnStatus.Obstructed:
return StatusKind.Obstructed;
case SvnWcStatus.Kind.Replaced:
case SvnStatus.Replaced:
return StatusKind.Replaced;
case SvnWcStatus.Kind.Unversioned:
return StatusKind.Unversioned;
default:
return StatusKind.None;
}
@ -610,7 +486,7 @@ namespace ICSharpCode.Svn @@ -610,7 +486,7 @@ namespace ICSharpCode.Svn
public class LogMessage
{
public int Revision;
public long Revision;
public string Author;
public DateTime Date;
public string Message;
@ -622,24 +498,24 @@ namespace ICSharpCode.Svn @@ -622,24 +498,24 @@ namespace ICSharpCode.Svn
{
public string Path;
public string CopyFromPath;
public int CopyFromRevision;
public long CopyFromRevision;
/// <summary>
/// change action ('A','D','R' or 'M')
/// </summary>
public char Action;
public SvnChangeAction Action;
}
public class Revision
{
SvnRevision revision;
public static readonly Revision Base = new SvnRevision(Svn.Revision.Base);
public static readonly Revision Committed = new SvnRevision(Svn.Revision.Committed);
public static readonly Revision Head = new SvnRevision(Svn.Revision.Head);
public static readonly Revision Working = new SvnRevision(Svn.Revision.Working);
public static readonly Revision Unspecified = new SvnRevision(Svn.Revision.Unspecified);
public static readonly Revision Base = SvnRevision.Base;
public static readonly Revision Committed = SvnRevision.Committed;
public static readonly Revision Head = SvnRevision.Head;
public static readonly Revision Working = SvnRevision.Working;
public static readonly Revision Unspecified = SvnRevision.None;
public static Revision FromNumber(int number)
public static Revision FromNumber(long number)
{
return new SvnRevision(number);
}
@ -656,22 +532,22 @@ namespace ICSharpCode.Svn @@ -656,22 +532,22 @@ namespace ICSharpCode.Svn
public override string ToString()
{
switch (revision.Kind) {
case Svn.Revision.Base:
switch (revision.RevisionType) {
case SvnRevisionType.Base:
return "base";
case Svn.Revision.Committed:
case SvnRevisionType.Committed:
return "committed";
case Svn.Revision.Date:
return AprTime.ToDateTime(revision.Date).ToString();
case Svn.Revision.Head:
case SvnRevisionType.Time:
return revision.Time.ToString();
case SvnRevisionType.Head:
return "head";
case Svn.Revision.Number:
return revision.Number.ToString();
case Svn.Revision.Previous:
case SvnRevisionType.Number:
return revision.Revision.ToString();
case SvnRevisionType.Previous:
return "previous";
case Svn.Revision.Unspecified:
case SvnRevisionType.None:
return "unspecified";
case Svn.Revision.Working:
case SvnRevisionType.Working:
return "working";
default:
return "unknown";
@ -693,12 +569,12 @@ namespace ICSharpCode.Svn @@ -693,12 +569,12 @@ namespace ICSharpCode.Svn
public class SvnClientException : Exception
{
public readonly int ErrorCode;
SvnErrorCode errorCode;
internal SvnClientException(SvnException ex) : base(ex.Message, ex)
{
this.errorCode = ex.SvnErrorCode;
LoggingService.Debug(ex);
ErrorCode = ex.AprErr;
}
/// <summary>
@ -708,6 +584,18 @@ namespace ICSharpCode.Svn @@ -708,6 +584,18 @@ namespace ICSharpCode.Svn
{
return InnerException.InnerException;
}
public bool IsKnownError(KnownError knownError)
{
return (int)errorCode == (int)knownError;
}
}
public enum KnownError
{
FileNotFound = SvnErrorCode.SVN_ERR_FS_NOT_FOUND,
CannotDeleteFileWithLocalModifications = SvnErrorCode.SVN_ERR_CLIENT_MODIFIED,
CannotDeleteFileNotUnderVersionControl = SvnErrorCode.SVN_ERR_UNVERSIONED_RESOURCE
}
public enum StatusKind

56
src/AddIns/Misc/SubversionAddIn/Project/SubversionAddIn.csproj

@ -25,11 +25,11 @@ @@ -25,11 +25,11 @@
<DefineConstants>TRACE</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Reference Include="AprSharp">
<HintPath>..\RequiredLibraries\AprSharp.dll</HintPath>
<Reference Include="SharpSvn">
<HintPath>..\..\..\..\Libraries\SharpSvn\SharpSvn.dll</HintPath>
</Reference>
<Reference Include="SubversionSharp">
<HintPath>..\RequiredLibraries\SubversionSharp.dll</HintPath>
<Reference Include="SharpSvn.UI">
<HintPath>..\..\..\..\Libraries\SharpSvn\SharpSvn.UI.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
@ -39,38 +39,6 @@ @@ -39,38 +39,6 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<None Include="..\RequiredLibraries\intl3_svn.dll">
<Link>intl3_svn.dll</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="..\RequiredLibraries\libapr.dll">
<Link>libapr.dll</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="..\RequiredLibraries\libapriconv.dll">
<Link>libapriconv.dll</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="..\RequiredLibraries\libaprutil.dll">
<Link>libaprutil.dll</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="..\RequiredLibraries\libdb44.dll">
<Link>libdb44.dll</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="..\RequiredLibraries\libeay32.dll">
<Link>libeay32.dll</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="..\RequiredLibraries\ssleay32.dll">
<Link>ssleay32.dll</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="..\RequiredLibraries\svn_client-1.dll">
<Link>svn_client-1.dll</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="ICSharpCode.Svn.addin">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
@ -80,25 +48,9 @@ @@ -80,25 +48,9 @@
</Compile>
<Compile Include="Src\AddInOptions.cs" />
<Compile Include="Configuration\AssemblyInfo.cs" />
<EmbeddedResource Include="Resources\ClientCertDialog.xfrm" />
<EmbeddedResource Include="Resources\ClientCertPassphraseDialog.xfrm" />
<EmbeddedResource Include="Resources\LoginDialog.xfrm" />
<EmbeddedResource Include="Resources\SslServerTrustDialog.xfrm" />
<EmbeddedResource Include="Resources\SubversionOptionsPanel.xfrm" />
<Compile Include="Src\Commands\AutostartCommands.cs" />
<Compile Include="Src\Commands\ProjectBrowserCommands.cs" />
<Compile Include="Src\Gui\AuthentificationDialogs\ClientCertDialog.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Src\Gui\AuthentificationDialogs\ClientCertPassphraseDialog.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Src\Gui\AuthentificationDialogs\LoginDialog.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Src\Gui\AuthentificationDialogs\SslServerTrustDialog.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Src\Gui\HistoryViewDisplayBinding\HistoryView.cs" />
<Compile Include="Src\Gui\HistoryViewDisplayBinding\HistoryViewDisplayBinding.cs" />
<Compile Include="Src\Gui\HistoryViewDisplayBinding\HistoryViewPanel.cs">

341
src/Libraries/SharpSvn/Licenses/Apr-License.txt

@ -0,0 +1,341 @@ @@ -0,0 +1,341 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
APACHE PORTABLE RUNTIME SUBCOMPONENTS:
The Apache Portable Runtime includes a number of subcomponents with
separate copyright notices and license terms. Your use of the source
code for the these subcomponents is subject to the terms and
conditions of the following licenses.
From strings/apr_fnmatch.c, include/apr_fnmatch.h, misc/unix/getopt.c,
file_io/unix/mktemp.c, strings/apr_strings.c:
/*
* Copyright (c) 1987, 1993, 1994
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the University of
* California, Berkeley and its contributors.
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
From network_io/unix/inet_ntop.c, network_io/unix/inet_pton.c:
/* Copyright (c) 1996 by Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
* CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
* SOFTWARE.
From dso/aix/dso.c:
* Based on libdl (dlfcn.c/dlfcn.h) which is
* Copyright (c) 1992,1993,1995,1996,1997,1988
* Jens-Uwe Mager, Helios Software GmbH, Hannover, Germany.
*
* Not derived from licensed software.
*
* Permission is granted to freely use, copy, modify, and redistribute
* this software, provided that the author is not construed to be liable
* for any results of using the software, alterations are clearly marked
* as such, and this notice is not modified.
From strings/apr_strnatcmp.c, include/apr_strings.h:
strnatcmp.c -- Perform 'natural order' comparisons of strings in C.
Copyright (C) 2000 by Martin Pool <mbp@humbug.org.au>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
From strings/apr_snprintf.c:
*
* cvt - IEEE floating point formatting routines.
* Derived from UNIX V7, Copyright(C) Caldera International Inc.
*
Copyright(C) Caldera International Inc. 2001-2002. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
Redistributions of source code and documentation must retain the above
copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
All advertising materials mentioning features or use of this software
must display the following acknowledgement:
This product includes software developed or owned by Caldera
International, Inc.
Neither the name of Caldera International, Inc. nor the names of other
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
USE OF THE SOFTWARE PROVIDED FOR UNDER THIS LICENSE BY CALDERA
INTERNATIONAL, INC. AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
NO EVENT SHALL CALDERA INTERNATIONAL, INC. BE LIABLE FOR ANY DIRECT,
INDIRECT INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

443
src/Libraries/SharpSvn/Licenses/Apr-Util-License.txt

@ -0,0 +1,443 @@ @@ -0,0 +1,443 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
APACHE PORTABLE RUNTIME SUBCOMPONENTS:
The Apache Portable Runtime includes a number of subcomponents with
separate copyright notices and license terms. Your use of the source
code for the these subcomponents is subject to the terms and
conditions of the following licenses.
For the include\apr_md5.h component:
/*
* This is work is derived from material Copyright RSA Data Security, Inc.
*
* The RSA copyright statement and Licence for that original material is
* included below. This is followed by the Apache copyright statement and
* licence for the modifications made to that material.
*/
/* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
rights reserved.
License to copy and use this software is granted provided that it
is identified as the "RSA Data Security, Inc. MD5 Message-Digest
Algorithm" in all material mentioning or referencing this software
or this function.
License is also granted to make and use derivative works provided
that such works are identified as "derived from the RSA Data
Security, Inc. MD5 Message-Digest Algorithm" in all material
mentioning or referencing the derived work.
RSA Data Security, Inc. makes no representations concerning either
the merchantability of this software or the suitability of this
software for any particular purpose. It is provided "as is"
without express or implied warranty of any kind.
These notices must be retained in any copies of any part of this
documentation and/or software.
*/
For the passwd\apr_md5.c component:
/*
* This is work is derived from material Copyright RSA Data Security, Inc.
*
* The RSA copyright statement and Licence for that original material is
* included below. This is followed by the Apache copyright statement and
* licence for the modifications made to that material.
*/
/* MD5C.C - RSA Data Security, Inc., MD5 message-digest algorithm
*/
/* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
rights reserved.
License to copy and use this software is granted provided that it
is identified as the "RSA Data Security, Inc. MD5 Message-Digest
Algorithm" in all material mentioning or referencing this software
or this function.
License is also granted to make and use derivative works provided
that such works are identified as "derived from the RSA Data
Security, Inc. MD5 Message-Digest Algorithm" in all material
mentioning or referencing the derived work.
RSA Data Security, Inc. makes no representations concerning either
the merchantability of this software or the suitability of this
software for any particular purpose. It is provided "as is"
without express or implied warranty of any kind.
These notices must be retained in any copies of any part of this
documentation and/or software.
*/
/*
* The apr_md5_encode() routine uses much code obtained from the FreeBSD 3.0
* MD5 crypt() function, which is licenced as follows:
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <phk@login.dknet.dk> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*/
For the crypto\apr_md4.c component:
* This is derived from material copyright RSA Data Security, Inc.
* Their notice is reproduced below in its entirety.
*
* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
* rights reserved.
*
* License to copy and use this software is granted provided that it
* is identified as the "RSA Data Security, Inc. MD4 Message-Digest
* Algorithm" in all material mentioning or referencing this software
* or this function.
*
* License is also granted to make and use derivative works provided
* that such works are identified as "derived from the RSA Data
* Security, Inc. MD4 Message-Digest Algorithm" in all material
* mentioning or referencing the derived work.
*
* RSA Data Security, Inc. makes no representations concerning either
* the merchantability of this software or the suitability of this
* software for any particular purpose. It is provided "as is"
* without express or implied warranty of any kind.
*
* These notices must be retained in any copies of any part of this
* documentation and/or software.
*/
For the include\apr_md4.h component:
*
* This is derived from material copyright RSA Data Security, Inc.
* Their notice is reproduced below in its entirety.
*
* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
* rights reserved.
*
* License to copy and use this software is granted provided that it
* is identified as the "RSA Data Security, Inc. MD4 Message-Digest
* Algorithm" in all material mentioning or referencing this software
* or this function.
*
* License is also granted to make and use derivative works provided
* that such works are identified as "derived from the RSA Data
* Security, Inc. MD4 Message-Digest Algorithm" in all material
* mentioning or referencing the derived work.
*
* RSA Data Security, Inc. makes no representations concerning either
* the merchantability of this software or the suitability of this
* software for any particular purpose. It is provided "as is"
* without express or implied warranty of any kind.
*
* These notices must be retained in any copies of any part of this
* documentation and/or software.
*/
For the test\testmd4.c component:
*
* This is derived from material copyright RSA Data Security, Inc.
* Their notice is reproduced below in its entirety.
*
* Copyright (C) 1990-2, RSA Data Security, Inc. Created 1990. All
* rights reserved.
*
* RSA Data Security, Inc. makes no representations concerning either
* the merchantability of this software or the suitability of this
* software for any particular purpose. It is provided "as is"
* without express or implied warranty of any kind.
*
* These notices must be retained in any copies of any part of this
* documentation and/or software.
*/
For the xml\expat\conftools\install-sh component:
#
# install - install a program, script, or datafile
# This comes from X11R5 (mit/util/scripts/install.sh).
#
# Copyright 1991 by the Massachusetts Institute of Technology
#
# Permission to use, copy, modify, distribute, and sell this software and its
# documentation for any purpose is hereby granted without fee, provided that
# the above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear in supporting
# documentation, and that the name of M.I.T. not be used in advertising or
# publicity pertaining to distribution of the software without specific,
# written prior permission. M.I.T. makes no representations about the
# suitability of this software for any purpose. It is provided "as is"
# without express or implied warranty.
#
For the expat xml parser component:
Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd
and Clark Cooper
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
====================================================================
For the ldap/apr_ldap_url.c component:
/* Portions Copyright 1998-2002 The OpenLDAP Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted only as authorized by the OpenLDAP
* Public License. A copy of this license is available at
* http://www.OpenLDAP.org/license.html or in file LICENSE in the
* top-level directory of the distribution.
*
* OpenLDAP is a registered trademark of the OpenLDAP Foundation.
*
* Individual files and/or contributed packages may be copyright by
* other parties and subject to additional restrictions.
*
* This work is derived from the University of Michigan LDAP v3.3
* distribution. Information concerning this software is available
* at: http://www.umich.edu/~dirsvcs/ldap/
*
* This work also contains materials derived from public sources.
*
* Additional information about OpenLDAP can be obtained at:
* http://www.openldap.org/
*/
/*
* Portions Copyright (c) 1992-1996 Regents of the University of Michigan.
* All rights reserved.
*
* Redistribution and use in source and binary forms are permitted
* provided that this notice is preserved and that due credit is given
* to the University of Michigan at Ann Arbor. The name of the University
* may not be used to endorse or promote products derived from this
* software without specific prior written permission. This software
* is provided ``as is'' without express or implied warranty.
*/

102
src/Libraries/SharpSvn/Licenses/BerkeleyDB-License.txt

@ -0,0 +1,102 @@ @@ -0,0 +1,102 @@
/*-
* $Id: LICENSE,v 12.1 2005/06/16 20:20:10 bostic Exp $
*/
The following is the license that applies to this copy of the Berkeley DB
software. For a license to use the Berkeley DB software under conditions
other than those described here, or to purchase support for this software,
please contact Sleepycat Software by email at info@sleepycat.com, or on
the Web at http://www.sleepycat.com.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
/*
* Copyright (c) 1990-2005
* Sleepycat Software. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Redistributions in any form must be accompanied by information on
* how to obtain complete source code for the DB software and any
* accompanying software that uses the DB software. The source code
* must either be included in the distribution or be available for no
* more than the cost of distribution plus a nominal fee, and must be
* freely redistributable under reasonable conditions. For an
* executable file, complete source code means the source code for all
* modules it contains. It does not include source code for modules or
* files that typically accompany the major components of the operating
* system on which the executable file runs.
*
* THIS SOFTWARE IS PROVIDED BY SLEEPYCAT SOFTWARE ``AS IS'' AND ANY EXPRESS
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
* NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL SLEEPYCAT SOFTWARE
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
* Copyright (c) 1990, 1993, 1994, 1995
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
/*
* Copyright (c) 1995, 1996
* The President and Fellows of Harvard University. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY HARVARD AND ITS CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL HARVARD OR ITS CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/

44
src/Libraries/SharpSvn/Licenses/Cyrus-Sasl-License.txt

@ -0,0 +1,44 @@ @@ -0,0 +1,44 @@
/* CMU libsasl
* Tim Martin
* Rob Earhart
* Rob Siemborski
*/
/*
* Copyright (c) 1998-2003 Carnegie Mellon University. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The name "Carnegie Mellon University" must not be used to
* endorse or promote products derived from this software without
* prior written permission. For permission or any other legal
* details, please contact
* Office of Technology Transfer
* Carnegie Mellon University
* 5000 Forbes Avenue
* Pittsburgh, PA 15213-3890
* (412) 268-4387, fax: (412) 268-7395
* tech-transfer@andrew.cmu.edu
*
* 4. Redistributions of any form whatsoever must retain the following
* acknowledgment:
* "This product includes software developed by Computing Services
* at Carnegie Mellon University (http://www.cmu.edu/computing/)."
*
* CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO
* THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE
* FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/

482
src/Libraries/SharpSvn/Licenses/Neon-License.txt

@ -0,0 +1,482 @@ @@ -0,0 +1,482 @@
GNU LIBRARY GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1991 Free Software Foundation, Inc.
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
[This is the first released version of the library GPL. It is
numbered 2 because it goes with version 2 of the ordinary GPL.]
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
Licenses are intended to guarantee your freedom to share and change
free software--to make sure the software is free for all its users.
This license, the Library General Public License, applies to some
specially designated Free Software Foundation software, and to any
other libraries whose authors decide to use it. You can use it for
your libraries, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if
you distribute copies of the library, or if you modify it.
For example, if you distribute copies of the library, whether gratis
or for a fee, you must give the recipients all the rights that we gave
you. You must make sure that they, too, receive or can get the source
code. If you link a program with the library, you must provide
complete object files to the recipients so that they can relink them
with the library, after making changes to the library and recompiling
it. And you must show them these terms so they know their rights.
Our method of protecting your rights has two steps: (1) copyright
the library, and (2) offer you this license which gives you legal
permission to copy, distribute and/or modify the library.
Also, for each distributor's protection, we want to make certain
that everyone understands that there is no warranty for this free
library. If the library is modified by someone else and passed on, we
want its recipients to know that what they have is not the original
version, so that any problems introduced by others will not reflect on
the original authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that companies distributing free
software will individually obtain patent licenses, thus in effect
transforming the program into proprietary software. To prevent this,
we have made it clear that any patent must be licensed for everyone's
free use or not licensed at all.
Most GNU software, including some libraries, is covered by the ordinary
GNU General Public License, which was designed for utility programs. This
license, the GNU Library General Public License, applies to certain
designated libraries. This license is quite different from the ordinary
one; be sure to read it in full, and don't assume that anything in it is
the same as in the ordinary license.
The reason we have a separate public license for some libraries is that
they blur the distinction we usually make between modifying or adding to a
program and simply using it. Linking a program with a library, without
changing the library, is in some sense simply using the library, and is
analogous to running a utility program or application program. However, in
a textual and legal sense, the linked executable is a combined work, a
derivative of the original library, and the ordinary General Public License
treats it as such.
Because of this blurred distinction, using the ordinary General
Public License for libraries did not effectively promote software
sharing, because most developers did not use the libraries. We
concluded that weaker conditions might promote sharing better.
However, unrestricted linking of non-free programs would deprive the
users of those programs of all benefit from the free status of the
libraries themselves. This Library General Public License is intended to
permit developers of non-free programs to use free libraries, while
preserving your freedom as a user of such programs to change the free
libraries that are incorporated in them. (We have not seen how to achieve
this as regards changes in header files, but we have achieved it as regards
changes in the actual functions of the Library.) The hope is that this
will lead to faster development of free libraries.
The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, while the latter only
works together with the library.
Note that it is possible for a library to be covered by the ordinary
General Public License rather than by this special one.
GNU LIBRARY GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library which
contains a notice placed by the copyright holder or other authorized
party saying it may be distributed under the terms of this Library
General Public License (also called "this License"). Each licensee is
addressed as "you".
A "library" means a collection of software functions and/or data
prepared so as to be conveniently linked with application programs
(which use some of those functions and data) to form executables.
The "Library", below, refers to any such software library or work
which has been distributed under these terms. A "work based on the
Library" means either the Library or any derivative work under
copyright law: that is to say, a work containing the Library or a
portion of it, either verbatim or with modifications and/or translated
straightforwardly into another language. (Hereinafter, translation is
included without limitation in the term "modification".)
"Source code" for a work means the preferred form of the work for
making modifications to it. For a library, complete source code means
all the source code for all modules it contains, plus any associated
interface definition files, plus the scripts used to control compilation
and installation of the library.
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running a program using the Library is not restricted, and output from
such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.
1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
appropriate copyright notice and disclaimer of warranty; keep intact
all the notices that refer to this License and to the absence of any
warranty; and distribute a copy of this License along with the
Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) The modified work must itself be a software library.
b) You must cause the files modified to carry prominent notices
stating that you changed the files and the date of any change.
c) You must cause the whole of the work to be licensed at no
charge to all third parties under the terms of this License.
d) If a facility in the modified Library refers to a function or a
table of data to be supplied by an application program that uses
the facility, other than as an argument passed when the facility
is invoked, then you must make a good faith effort to ensure that,
in the event an application does not supply such function or
table, the facility still operates, and performs whatever part of
its purpose remains meaningful.
(For example, a function in a library to compute square roots has
a purpose that is entirely well-defined independent of the
application. Therefore, Subsection 2d requires that any
application-supplied function or table used by this function must
be optional: if the application does not supply it, the square
root function must still compute square roots.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Library,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Library, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote
it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Library.
In addition, mere aggregation of another work not based on the Library
with the Library (or with a work based on the Library) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may opt to apply the terms of the ordinary GNU General Public
License instead of this License to a given copy of the Library. To do
this, you must alter all the notices that refer to this License, so
that they refer to the ordinary GNU General Public License, version 2,
instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.
Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
This option is useful when you wish to copy part of the code of
the Library into a program that is not a library.
4. You may copy and distribute the Library (or a portion or
derivative of it, under Section 2) in object code or executable form
under the terms of Sections 1 and 2 above provided that you accompany
it with the complete corresponding machine-readable source code, which
must be distributed under the terms of Sections 1 and 2 above on a
medium customarily used for software interchange.
If distribution of object code is made by offering access to copy
from a designated place, then offering equivalent access to copy the
source code from the same place satisfies the requirement to
distribute the source code, even though third parties are not
compelled to copy the source along with the object code.
5. A program that contains no derivative of any portion of the
Library, but is designed to work with the Library by being compiled or
linked with it, is called a "work that uses the Library". Such a
work, in isolation, is not a derivative work of the Library, and
therefore falls outside the scope of this License.
However, linking a "work that uses the Library" with the Library
creates an executable that is a derivative of the Library (because it
contains portions of the Library), rather than a "work that uses the
library". The executable is therefore covered by this License.
Section 6 states terms for distribution of such executables.
When a "work that uses the Library" uses material from a header file
that is part of the Library, the object code for the work may be a
derivative work of the Library even though the source code is not.
Whether this is true is especially significant if the work can be
linked without the Library, or if the work is itself a library. The
threshold for this to be true is not precisely defined by law.
If such an object file uses only numerical parameters, data
structure layouts and accessors, and small macros and small inline
functions (ten lines or less in length), then the use of the object
file is unrestricted, regardless of whether it is legally a derivative
work. (Executables containing this object code plus portions of the
Library will still fall under Section 6.)
Otherwise, if the work is a derivative of the Library, you may
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
6. As an exception to the Sections above, you may also compile or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
under terms of your choice, provided that the terms permit
modification of the work for the customer's own use and reverse
engineering for debugging such modifications.
You must give prominent notice with each copy of the work that the
Library is used in it and that the Library and its use are covered by
this License. You must supply a copy of this License. If the work
during execution displays copyright notices, you must include the
copyright notice for the Library among them, as well as a reference
directing the user to the copy of this License. Also, you must do one
of these things:
a) Accompany the work with the complete corresponding
machine-readable source code for the Library including whatever
changes were used in the work (which must be distributed under
Sections 1 and 2 above); and, if the work is an executable linked
with the Library, with the complete machine-readable "work that
uses the Library", as object code and/or source code, so that the
user can modify the Library and then relink to produce a modified
executable containing the modified Library. (It is understood
that the user who changes the contents of definitions files in the
Library will not necessarily be able to recompile the application
to use the modified definitions.)
b) Accompany the work with a written offer, valid for at
least three years, to give the same user the materials
specified in Subsection 6a, above, for a charge no more
than the cost of performing this distribution.
c) If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above
specified materials from the same place.
d) Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.
For an executable, the required form of the "work that uses the
Library" must include any data and utility programs needed for
reproducing the executable from it. However, as a special exception,
the source code distributed need not include anything that is normally
distributed (in either source or binary form) with the major
components (compiler, kernel, and so on) of the operating system on
which the executable runs, unless that component itself accompanies
the executable.
It may happen that this requirement contradicts the license
restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
library, provided that the separate distribution of the work based on
the Library and of the other library facilities is otherwise
permitted, and provided that you do these two things:
a) Accompany the combined library with a copy of the same work
based on the Library, uncombined with any other library
facilities. This must be distributed under the terms of the
Sections above.
b) Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to find the accompanying uncombined form of the same work.
8. You may not copy, modify, sublicense, link with, or distribute
the Library except as expressly provided under this License. Any
attempt otherwise to copy, modify, sublicense, link with, or
distribute the Library is void, and will automatically terminate your
rights under this License. However, parties who have received copies,
or rights, from you under this License will not have their licenses
terminated so long as such parties remain in full compliance.
9. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Library or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Library (or any work based on the
Library), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Library or works based on it.
10. Each time you redistribute the Library (or any work based on the
Library), the recipient automatically receives a license from the
original licensor to copy, distribute, link with or modify the Library
subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Library at all. For example, if a patent
license would not permit royalty-free redistribution of the Library by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Library.
If any portion of this section is held invalid or unenforceable under any
particular circumstance, the balance of the section is intended to apply,
and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
12. If the distribution and/or use of the Library is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Library under this License may add
an explicit geographical distribution limitation excluding those countries,
so that distribution is permitted only in or among countries not thus
excluded. In such case, this License incorporates the limitation as if
written in the body of this License.
13. The Free Software Foundation may publish revised and/or new
versions of the Library General Public License from time to time.
Such new versions will be similar in spirit to the present version,
but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Library
specifies a version number of this License which applies to it and
"any later version", you have the option of following the terms and
conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
copyrighted by the Free Software Foundation, write to the Free
Software Foundation; we sometimes make exceptions for this. Our
decision will be guided by the two goals of preserving the free status
of all derivatives of our free software and of promoting the sharing
and reuse of software generally.
NO WARRANTY
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
END OF TERMS AND CONDITIONS
Appendix: How to Apply These Terms to Your New Libraries
If you develop a new library, and you want it to be of the greatest
possible use to the public, we recommend making it free software that
everyone can redistribute and change. You can do so by permitting
redistribution under these terms (or, alternatively, under the terms of the
ordinary General Public License).
To apply these terms, attach the following notices to the library. It is
safest to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.
<one line to give the library's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA
Also add information on how to contact you by electronic and paper mail.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the library, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
<signature of Ty Coon>, 1 April 1990
Ty Coon, President of Vice
That's all there is to it!

127
src/Libraries/SharpSvn/Licenses/OpenSsl-License.txt

@ -0,0 +1,127 @@ @@ -0,0 +1,127 @@
LICENSE ISSUES
==============
The OpenSSL toolkit stays under a dual license, i.e. both the conditions of
the OpenSSL License and the original SSLeay license apply to the toolkit.
See below for the actual license texts. Actually both licenses are BSD-style
Open Source licenses. In case of any license issues related to OpenSSL
please contact openssl-core@openssl.org.
OpenSSL License
---------------
/* ====================================================================
* Copyright (c) 1998-2008 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. All advertising materials mentioning features or use of this
* software must display the following acknowledgment:
* "This product includes software developed by the OpenSSL Project
* for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
*
* 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
* endorse or promote products derived from this software without
* prior written permission. For written permission, please contact
* openssl-core@openssl.org.
*
* 5. Products derived from this software may not be called "OpenSSL"
* nor may "OpenSSL" appear in their names without prior written
* permission of the OpenSSL Project.
*
* 6. Redistributions of any form whatsoever must retain the following
* acknowledgment:
* "This product includes software developed by the OpenSSL Project
* for use in the OpenSSL Toolkit (http://www.openssl.org/)"
*
* THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
* ====================================================================
*
* This product includes cryptographic software written by Eric Young
* (eay@cryptsoft.com). This product includes software written by Tim
* Hudson (tjh@cryptsoft.com).
*
*/
Original SSLeay License
-----------------------
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
*
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* "This product includes cryptographic software written by
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
* 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
*
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
* [including the GNU Public Licence.]
*/

25
src/Libraries/SharpSvn/Licenses/Putty-License.txt

@ -0,0 +1,25 @@ @@ -0,0 +1,25 @@
PuTTY is copyright 1997-2007 Simon Tatham.
Portions copyright Robert de Bath, Joris van Rantwijk, Delian
Delchev, Andreas Schultz, Jeroen Massar, Wez Furlong, Nicolas Barry,
Justin Bradford, Ben Harris, Malcolm Smith, Ahmad Khalifa, Markus
Kuhn, and CORE SDI S.A.
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
(the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

201
src/Libraries/SharpSvn/Licenses/Serf-License.txt

@ -0,0 +1,201 @@ @@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

219
src/Libraries/SharpSvn/Licenses/SharpSvn-License.txt

@ -0,0 +1,219 @@ @@ -0,0 +1,219 @@
Copyright 2007-2008 The SharpSvn Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
----------------------------------------------------------------------------
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

73
src/Libraries/SharpSvn/Licenses/SharpSvn-Licenses.wxs

@ -0,0 +1,73 @@ @@ -0,0 +1,73 @@
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<ComponentGroup Id="SharpSvnImport_LICENSES">
<ComponentRef Id="C_SSVNLICENSE_Apr" />
<ComponentRef Id="C_SSVNLICENSE_AprUtil" />
<ComponentRef Id="C_SSVNLICENSE_Apr" />
<ComponentRef Id="C_SSVNLICENSE_BerkeleyDB" />
<ComponentRef Id="C_SSVNLICENSE_Cyrus_Sasl"/>
<ComponentRef Id="C_SSVNLICENSE_Neon" />
<ComponentRef Id="C_SSVNLICENSE_OpenSsl" />
<ComponentRef Id="C_SSVNLICENSE_Serf" />
<ComponentRef Id="C_SSVNLICENSE_SharpSvn" />
<ComponentRef Id="C_SSVNLICENSE_Subversion" />
</ComponentGroup>
</Fragment>
<Fragment>
<ComponentGroup Id="SharpSvn_LICENSES">
<ComponentGroupRef Id="SharpSvnImport_LICENSES" />
<ComponentRef Id="C_SSVNLICENSE_Putty" />
</ComponentGroup>
</Fragment>
<Fragment>
<ComponentGroup Id="SharpSvnGettext_LICENSE">
<ComponentRef Id="C_SSVNLICENSE_GetTextRuntime" />
</ComponentGroup>
</Fragment>
<Fragment>
<DirectoryRef Id="DIR_SharpSvnLicenses" FileSource="$(sys.SOURCEFILEDIR)">
<Component Id="C_SSVNLICENSE_Apr" Guid="9CEF71AD-9910-4798-B64F-EE61479038DA">
<File Id="CF_SSVNLICENSE_Apr" Name="Apr-License.txt" Vital="yes" KeyPath="yes"/>
</Component>
<Component Id="C_SSVNLICENSE_AprUtil" Guid="F7BA2B8B-4CDA-4F51-BD5C-E39759E5D2C8">
<File Id="CF_SSVNLICENSE_AprUtil" Name="Apr-Util-License.txt" Vital="yes" KeyPath="yes"/>
</Component>
<Component Id="C_SSVNLICENSE_BerkeleyDB" Guid="271A137D-097C-429C-9705-4140E658659C">
<File Id="CF_SSVNLICENSE_BerkeleyDB" Name="BerkeleyDB-License.txt" Vital="yes" KeyPath="yes"/>
</Component>
<Component Id="C_SSVNLICENSE_Cyrus_Sasl" Guid="A14954AB-3D8E-499A-80A9-D74407844058">
<File Id="CF_SSVNLICENSE_Cyrus_Sasl" Name="Cyrus-Sasl-License.txt" Vital="yes" KeyPath="yes"/>
</Component>
<Component Id="C_SSVNLICENSE_Neon" Guid="EF33BA74-B1AF-4B14-A3AB-245CC0AEC39F">
<File Id="CF_SSVNLICENSE_Neon" Name="Neon-License.txt" Vital="yes" KeyPath="yes"/>
</Component>
<Component Id="C_SSVNLICENSE_OpenSsl" Guid="A0CCDA71-2C18-4617-90BA-FC5B761E8252">
<File Id="CF_SSVNLICENSE_OpenSsl" Name="OpenSsl-License.txt" Vital="yes" KeyPath="yes"/>
</Component>
<Component Id="C_SSVNLICENSE_Serf" Guid="B47454F7-A069-4669-9254-8AC4881A5E18">
<File Id="CF_SSVNLICENSE_Serf" Name="Serf-License.txt" Vital="yes" KeyPath="yes"/>
</Component>
<Component Id="C_SSVNLICENSE_SharpSvn" Guid="7EC7B1C2-090B-499B-932B-495D14DCF1BD">
<File Id="CF_SSVNLICENSE_SharpSvn" Name="SharpSvn-License.txt" Vital="yes" KeyPath="yes"/>
</Component>
<Component Id="C_SSVNLICENSE_Subversion" Guid="F54C1220-3835-4262-9193-FDC31055BD95">
<File Id="C_SSVNLICENSE_Subversion" Name="Subversion-License.txt" Vital="yes" KeyPath="yes"/>
</Component>
</DirectoryRef>
</Fragment>
<Fragment>
<DirectoryRef Id="DIR_SharpSvnLicenses" FileSource="$(sys.SOURCEFILEDIR)">
<Component Id="C_SSVNLICENSE_Putty" Guid="729355F8-CC28-4948-8CDB-625A49C40D6E">
<File Id="CF_SSVNLICENSE_Putty" Name="Putty-License.txt" Vital="yes" KeyPath="yes"/>
</Component>
</DirectoryRef>
</Fragment>
<Fragment>
<DirectoryRef Id="DIR_SharpSvnLicenses" FileSource="$(sys.SOURCEFILEDIR)">
<Component Id="C_SSVNLICENSE_GetTextRuntime" Guid="247F2A80-E402-4395-9165-F2479E5689C9">
<File Id="C_SSVNLICENSE_GetTextRuntime" Name="GetText-Runtime-License.txt" Vital="yes" KeyPath="yes"/>
</Component>
</DirectoryRef>
</Fragment>
</Wix>

47
src/Libraries/SharpSvn/Licenses/Subversion-License.txt

@ -0,0 +1,47 @@ @@ -0,0 +1,47 @@
/* ================================================================
* Copyright (c) 2000-2009 CollabNet. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by
* CollabNet (http://www.Collab.Net/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The hosted project names must not be used to endorse or promote
* products derived from this software without prior written
* permission. For written permission, please contact info@collab.net.
*
* 5. Products derived from this software may not use the "Tigris" name
* nor may "Tigris" appear in their names without prior written
* permission of CollabNet.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL COLLABNET OR ITS CONTRIBUTORS BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
* IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of CollabNet.
*/

125
src/Libraries/SharpSvn/Licenses/ZLib-License.txt

@ -0,0 +1,125 @@ @@ -0,0 +1,125 @@
ZLIB DATA COMPRESSION LIBRARY
zlib 1.2.3 is a general purpose data compression library. All the code is
thread safe. The data format used by the zlib library is described by RFCs
(Request for Comments) 1950 to 1952 in the files
http://www.ietf.org/rfc/rfc1950.txt (zlib format), rfc1951.txt (deflate format)
and rfc1952.txt (gzip format). These documents are also available in other
formats from ftp://ftp.uu.net/graphics/png/documents/zlib/zdoc-index.html
All functions of the compression library are documented in the file zlib.h
(volunteer to write man pages welcome, contact zlib@gzip.org). A usage example
of the library is given in the file example.c which also tests that the library
is working correctly. Another example is given in the file minigzip.c. The
compression library itself is composed of all source files except example.c and
minigzip.c.
To compile all files and run the test program, follow the instructions given at
the top of Makefile. In short "make test; make install" should work for most
machines. For Unix: "./configure; make test; make install". For MSDOS, use one
of the special makefiles such as Makefile.msc. For VMS, use make_vms.com.
Questions about zlib should be sent to <zlib@gzip.org>, or to Gilles Vollant
<info@winimage.com> for the Windows DLL version. The zlib home page is
http://www.zlib.org or http://www.gzip.org/zlib/ Before reporting a problem,
please check this site to verify that you have the latest version of zlib;
otherwise get the latest version and check whether the problem still exists or
not.
PLEASE read the zlib FAQ http://www.gzip.org/zlib/zlib_faq.html before asking
for help.
Mark Nelson <markn@ieee.org> wrote an article about zlib for the Jan. 1997
issue of Dr. Dobb's Journal; a copy of the article is available in
http://dogma.net/markn/articles/zlibtool/zlibtool.htm
The changes made in version 1.2.3 are documented in the file ChangeLog.
Unsupported third party contributions are provided in directory "contrib".
A Java implementation of zlib is available in the Java Development Kit
http://java.sun.com/j2se/1.4.2/docs/api/java/util/zip/package-summary.html
See the zlib home page http://www.zlib.org for details.
A Perl interface to zlib written by Paul Marquess <pmqs@cpan.org> is in the
CPAN (Comprehensive Perl Archive Network) sites
http://www.cpan.org/modules/by-module/Compress/
A Python interface to zlib written by A.M. Kuchling <amk@amk.ca> is
available in Python 1.5 and later versions, see
http://www.python.org/doc/lib/module-zlib.html
A zlib binding for TCL written by Andreas Kupries <a.kupries@westend.com> is
availlable at http://www.oche.de/~akupries/soft/trf/trf_zip.html
An experimental package to read and write files in .zip format, written on top
of zlib by Gilles Vollant <info@winimage.com>, is available in the
contrib/minizip directory of zlib.
Notes for some targets:
- For Windows DLL versions, please see win32/DLL_FAQ.txt
- For 64-bit Irix, deflate.c must be compiled without any optimization. With
-O, one libpng test fails. The test works in 32 bit mode (with the -n32
compiler flag). The compiler bug has been reported to SGI.
- zlib doesn't work with gcc 2.6.3 on a DEC 3000/300LX under OSF/1 2.1 it works
when compiled with cc.
- On Digital Unix 4.0D (formely OSF/1) on AlphaServer, the cc option -std1 is
necessary to get gzprintf working correctly. This is done by configure.
- zlib doesn't work on HP-UX 9.05 with some versions of /bin/cc. It works with
other compilers. Use "make test" to check your compiler.
- gzdopen is not supported on RISCOS, BEOS and by some Mac compilers.
- For PalmOs, see http://palmzlib.sourceforge.net/
- When building a shared, i.e. dynamic library on Mac OS X, the library must be
installed before testing (do "make install" before "make test"), since the
library location is specified in the library.
Acknowledgments:
The deflate format used by zlib was defined by Phil Katz. The deflate
and zlib specifications were written by L. Peter Deutsch. Thanks to all the
people who reported problems and suggested various improvements in zlib;
they are too numerous to cite here.
Copyright notice:
(C) 1995-2004 Jean-loup Gailly and Mark Adler
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
Jean-loup Gailly Mark Adler
jloup@gzip.org madler@alumni.caltech.edu
If you use the zlib library in a product, we would appreciate *not*
receiving lengthy legal documents to sign. The sources are provided
for free but without warranty of any kind. The library has been
entirely written by Jean-loup Gailly and Mark Adler; it does not
include third-party code.
If you redistribute modified sources, we would appreciate that you include
in the file ChangeLog history information documenting your changes. Please
read the FAQ for more information on the distribution of modified source
versions.

BIN
src/Libraries/SharpSvn/SharpPlink-Win32.svnExe

Binary file not shown.

BIN
src/Libraries/SharpSvn/SharpSvn-DB44-20-win32.dll

Binary file not shown.

BIN
src/Libraries/SharpSvn/SharpSvn-Sasl21-22-win32.dll

Binary file not shown.

BIN
src/Libraries/SharpSvn/SharpSvn.UI.dll

Binary file not shown.

439
src/Libraries/SharpSvn/SharpSvn.UI.xml

@ -0,0 +1,439 @@ @@ -0,0 +1,439 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>SharpSvn.UI</name>
</assembly>
<members>
<member name="T:SharpSvn.UI.Authentication.SvnUIForm">
<summary>
</summary>
</member>
<member name="M:SharpSvn.UI.Authentication.SvnUIForm.#ctor">
<summary>
Initializes a new instance of the <see cref="T:SharpSvn.UI.Authentication.SvnUIForm"/> class.
</summary>
</member>
<member name="P:SharpSvn.UI.Authentication.SvnUIForm.ShowInTaskbar">
<summary>
Gets or sets a value indicating whether the form is displayed in the Windows taskbar.
</summary>
<value></value>
<returns>true to display the form in the Windows taskbar at run time; otherwise, false. The default is true.
</returns>
<PermissionSet>
<IPermission class="System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true"/>
<IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true"/>
<IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode, ControlEvidence"/>
<IPermission class="System.Diagnostics.PerformanceCounterPermission, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true"/>
</PermissionSet>
</member>
<member name="P:SharpSvn.UI.Authentication.SvnUIForm.MinimizeBox">
<summary>
Gets or sets a value indicating whether the Minimize button is displayed in the caption bar of the form.
</summary>
<value></value>
<returns>true to display a Minimize button for the form; otherwise, false. The default is true.
</returns>
<PermissionSet>
<IPermission class="System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true"/>
<IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true"/>
<IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode, ControlEvidence"/>
<IPermission class="System.Diagnostics.PerformanceCounterPermission, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true"/>
</PermissionSet>
</member>
<member name="P:SharpSvn.UI.Authentication.SvnUIForm.MaximizeBox">
<summary>
Gets or sets a value indicating whether the Maximize button is displayed in the caption bar of the form.
</summary>
<value></value>
<returns>true to display a Maximize button for the form; otherwise, false. The default is true.
</returns>
<PermissionSet>
<IPermission class="System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true"/>
<IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true"/>
<IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode, ControlEvidence"/>
<IPermission class="System.Diagnostics.PerformanceCounterPermission, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true"/>
</PermissionSet>
</member>
<member name="P:SharpSvn.UI.Authentication.SvnUIForm.StartPosition">
<summary>
Gets or sets the starting position of the form at run time.
</summary>
<value></value>
<returns>
A <see cref="T:System.Windows.Forms.FormStartPosition"/> that represents the starting position of the form.
</returns>
<exception cref="T:System.ComponentModel.InvalidEnumArgumentException">
The value specified is outside the range of valid values.
</exception>
</member>
<member name="T:SharpSvn.UI.Authentication.SslClientCertificatePassPhraseDialog">
<summary>
</summary>
</member>
<member name="M:SharpSvn.UI.Authentication.SslClientCertificatePassPhraseDialog.#ctor">
<summary>
Initializes a new instance of the <see cref="T:SharpSvn.UI.Authentication.SslClientCertificatePassPhraseDialog"/> class.
</summary>
</member>
<member name="F:SharpSvn.UI.Authentication.SslClientCertificatePassPhraseDialog.components">
<summary>
Required designer variable.
</summary>
</member>
<member name="M:SharpSvn.UI.Authentication.SslClientCertificatePassPhraseDialog.Dispose(System.Boolean)">
<summary>
Clean up any resources being used.
</summary>
<param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
</member>
<member name="M:SharpSvn.UI.Authentication.SslClientCertificatePassPhraseDialog.InitializeComponent">
<summary>
Required method for Designer support - do not modify
the contents of this method with the code editor.
</summary>
</member>
<member name="T:SharpSvn.UI.Authentication.ServerCertificateInfo">
<summary>
</summary>
</member>
<member name="P:SharpSvn.UI.Authentication.ServerCertificateInfo.Hostname">
<summary>
Gets or sets the hostname.
</summary>
<value>The hostname.</value>
</member>
<member name="P:SharpSvn.UI.Authentication.ServerCertificateInfo.Fingerprint">
<summary>
Gets or sets the fingerprint.
</summary>
<value>The fingerprint.</value>
</member>
<member name="P:SharpSvn.UI.Authentication.ServerCertificateInfo.ValidFrom">
<summary>
Gets or sets the valid from.
</summary>
<value>The valid from.</value>
</member>
<member name="P:SharpSvn.UI.Authentication.ServerCertificateInfo.ValidTo">
<summary>
Gets or sets the valid to.
</summary>
<value>The valid to.</value>
</member>
<member name="P:SharpSvn.UI.Authentication.ServerCertificateInfo.Issuer">
<summary>
Gets or sets the issuer.
</summary>
<value>The issuer.</value>
</member>
<member name="P:SharpSvn.UI.Authentication.ServerCertificateInfo.Certificate">
<summary>
Gets or sets the certificate.
</summary>
<value>The certificate.</value>
</member>
<member name="P:SharpSvn.UI.Authentication.ServerCertificateInfo.NoTrustedIssuer">
<summary>
Gets or sets a value indicating whether [no trusted issuer].
</summary>
<value><c>true</c> if [no trusted issuer]; otherwise, <c>false</c>.</value>
</member>
<member name="P:SharpSvn.UI.Authentication.ServerCertificateInfo.TimeError">
<summary>
Gets or sets a value indicating whether [time error].
</summary>
<value><c>true</c> if [time error]; otherwise, <c>false</c>.</value>
</member>
<member name="P:SharpSvn.UI.Authentication.ServerCertificateInfo.InvalidCommonName">
<summary>
Gets or sets a value indicating whether [invalid common name].
</summary>
<value><c>true</c> if [invalid common name]; otherwise, <c>false</c>.</value>
</member>
<member name="T:SharpSvn.UI.Authentication.SslClientCertificateFileDialog">
<summary>
</summary>
</member>
<member name="M:SharpSvn.UI.Authentication.SslClientCertificateFileDialog.#ctor">
<summary>
Initializes a new instance of the <see cref="T:SharpSvn.UI.Authentication.SslClientCertificatePassPhraseDialog"/> class.
</summary>
</member>
<member name="F:SharpSvn.UI.Authentication.SslClientCertificateFileDialog.components">
<summary>
Required designer variable.
</summary>
</member>
<member name="M:SharpSvn.UI.Authentication.SslClientCertificateFileDialog.Dispose(System.Boolean)">
<summary>
Clean up any resources being used.
</summary>
<param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
</member>
<member name="M:SharpSvn.UI.Authentication.SslClientCertificateFileDialog.InitializeComponent">
<summary>
Required method for Designer support - do not modify
the contents of this method with the code editor.
</summary>
</member>
<member name="T:SharpSvn.UI.Authentication.SslServerCertificateTrustDialog">
<summary>
</summary>
</member>
<member name="M:SharpSvn.UI.Authentication.SslServerCertificateTrustDialog.#ctor">
<summary>
Initializes a new instance of the <see cref="T:SharpSvn.UI.Authentication.SslServerCertificateTrustDialog"/> class.
</summary>
</member>
<member name="F:SharpSvn.UI.Authentication.SslServerCertificateTrustDialog.components">
<summary>
Required designer variable.
</summary>
</member>
<member name="M:SharpSvn.UI.Authentication.SslServerCertificateTrustDialog.Dispose(System.Boolean)">
<summary>
Clean up any resources being used.
</summary>
<param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
</member>
<member name="M:SharpSvn.UI.Authentication.SslServerCertificateTrustDialog.InitializeComponent">
<summary>
Required method for Designer support - do not modify
the contents of this method with the code editor.
</summary>
</member>
<member name="T:SharpSvn.UI.Authentication.SharpSvnGui">
<summary>
Former public api used for binding to SharpSvn
</summary>
</member>
<member name="M:SharpSvn.UI.Authentication.SharpSvnGui.MakeDescription(System.String,System.String)">
<summary>
Makes the description.
</summary>
<param name="realm">The realm.</param>
<param name="format">The format.</param>
<returns></returns>
</member>
<member name="M:SharpSvn.UI.Authentication.SharpSvnGui.HasWin32Handle(System.Object)">
<summary>
Determines whether [has win32 handle] [the specified owner].
</summary>
<param name="owner">The owner.</param>
<returns>
<c>true</c> if [has win32 handle] [the specified owner]; otherwise, <c>false</c>.
</returns>
</member>
<member name="M:SharpSvn.UI.Authentication.SharpSvnGui.GetWin32Handle(System.Object)">
<summary>
Gets the win32 handle.
</summary>
<param name="owner">The owner.</param>
<returns></returns>
</member>
<member name="T:SharpSvn.UI.Authentication.UsernameDialog">
<summary>
</summary>
<summary>
</summary>
</member>
<member name="M:SharpSvn.UI.Authentication.UsernameDialog.#ctor">
<summary>
Initializes a new instance of the <see cref="T:SharpSvn.UI.Authentication.UsernameDialog"/> class.
</summary>
</member>
<member name="F:SharpSvn.UI.Authentication.UsernameDialog.components">
<summary>
Required designer variable.
</summary>
</member>
<member name="M:SharpSvn.UI.Authentication.UsernameDialog.Dispose(System.Boolean)">
<summary>
Clean up any resources being used.
</summary>
<param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
</member>
<member name="M:SharpSvn.UI.Authentication.UsernameDialog.InitializeComponent">
<summary>
Required method for Designer support - do not modify
the contents of this method with the code editor.
</summary>
</member>
<member name="T:SharpSvn.UI.Authentication.UsernamePasswordDialog">
<summary>
</summary>
</member>
<member name="M:SharpSvn.UI.Authentication.UsernamePasswordDialog.#ctor">
<summary>
Initializes a new instance of the <see cref="T:SharpSvn.UI.Authentication.UsernamePasswordDialog"/> class.
</summary>
</member>
<member name="F:SharpSvn.UI.Authentication.UsernamePasswordDialog.components">
<summary>
Required designer variable.
</summary>
</member>
<member name="M:SharpSvn.UI.Authentication.UsernamePasswordDialog.Dispose(System.Boolean)">
<summary>
Clean up any resources being used.
</summary>
<param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
</member>
<member name="M:SharpSvn.UI.Authentication.UsernamePasswordDialog.InitializeComponent">
<summary>
Required method for Designer support - do not modify
the contents of this method with the code editor.
</summary>
</member>
<member name="T:SharpSvn.UI.Properties.Resources">
<summary>
A strongly-typed resource class, for looking up localized strings, etc.
</summary>
</member>
<member name="P:SharpSvn.UI.Properties.Resources.ResourceManager">
<summary>
Returns the cached ResourceManager instance used by this class.
</summary>
</member>
<member name="P:SharpSvn.UI.Properties.Resources.Culture">
<summary>
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
</summary>
</member>
<member name="T:SharpSvn.UI.SharpSvnUI">
<summary>
Helper methods to bind a user interface to an <see cref="T:SharpSvn.SvnClient"/>
</summary>
</member>
<member name="M:SharpSvn.UI.SharpSvnUI.Bind(SharpSvn.SvnClient,System.Windows.Forms.IWin32Window)">
<summary>
Binds the default userinterface to the <see cref="T:SharpSvn.SvnClient"/> using <paramref name="parentWindow"/> as parent for the popup windows
</summary>
<param name="client">The client to bind.</param>
<param name="parentWindow">The parent window.</param>
</member>
<member name="M:SharpSvn.UI.SharpSvnUI.Bind(SharpSvn.SvnClient,System.Windows.Forms.IWin32Window,System.Drawing.Image)">
<summary>
Binds the default userinterface to the <see cref="T:SharpSvn.SvnClient"/> using <paramref name="parentWindow"/> as parent for the popup windows
</summary>
<param name="client">The client.</param>
<param name="parentWindow">The parent window.</param>
<param name="headerImage">The header image.</param>
</member>
<member name="M:SharpSvn.UI.SharpSvnUI.Bind(SharpSvn.SvnClient,System.Windows.Forms.IWin32Window,System.ComponentModel.ISynchronizeInvoke,System.Drawing.Image)">
<summary>
Binds the default userinterface to the <see cref="T:SharpSvn.SvnClient"/> using <paramref name="parentWindow"/> as parent for the popup windows
</summary>
<param name="client">The client.</param>
<param name="parentWindow">The parent window.</param>
<param name="synchronizer">The synchronizer.</param>
<param name="headerImage">The header image.</param>
</member>
<member name="T:SharpSvn.UI.SvnUIBindArgs">
<summary>
Container for <see cref="M:SharpSvn.UI.SvnUI.Bind(SharpSvn.SvnClient,SharpSvn.UI.SvnUIBindArgs)"/>
</summary>
</member>
<member name="M:SharpSvn.UI.SvnUIBindArgs.#ctor">
<summary>
Initializes a new instance of the <see cref="T:SharpSvn.UI.SvnUIBindArgs"/> class.
</summary>
</member>
<member name="P:SharpSvn.UI.SvnUIBindArgs.ParentWindow">
<summary>
Gets or sets the parent window.
</summary>
<value>The parent window.</value>
</member>
<member name="P:SharpSvn.UI.SvnUIBindArgs.Synchronizer">
<summary>
Gets or sets the synchronizer.
</summary>
<value>The synchronizer.</value>
</member>
<member name="P:SharpSvn.UI.SvnUIBindArgs.HeaderImage">
<summary>
Gets or sets the header image.
</summary>
<value>The header image.</value>
</member>
<member name="P:SharpSvn.UI.SvnUIBindArgs.UIService">
<summary>
Gets or sets the UI service.
</summary>
<remarks>The UI service allows redirecting dialog processing to the specific UI service.
(You should use this within .Net development environments (Like MS Visual Studio) implementing this interface)</remarks>
<value>The UI service.</value>
</member>
<member name="T:SharpSvn.UI.Strings">
<summary>
A strongly-typed resource class, for looking up localized strings, etc.
</summary>
</member>
<member name="P:SharpSvn.UI.Strings.ResourceManager">
<summary>
Returns the cached ResourceManager instance used by this class.
</summary>
</member>
<member name="P:SharpSvn.UI.Strings.Culture">
<summary>
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
</summary>
</member>
<member name="P:SharpSvn.UI.Strings.ACertificateFileIsRequiredForAccessingServerXatY">
<summary>
Looks up a localized string similar to A client certificate is required for accessing server {0} at {1}..
</summary>
</member>
<member name="P:SharpSvn.UI.Strings.ConnectToSubversion">
<summary>
Looks up a localized string similar to Connect to Subversion.
</summary>
</member>
<member name="P:SharpSvn.UI.Strings.ThePassPhraseForTheClientCertificateForXIsRequired">
<summary>
Looks up a localized string similar to The certificate for server {0} at {1} requires a passphrase..
</summary>
</member>
<member name="P:SharpSvn.UI.Strings.TheServerXatYRequiresAUsername">
<summary>
Looks up a localized string similar to The server {0} at {1} requires a username..
</summary>
</member>
<member name="P:SharpSvn.UI.Strings.TheServerXatYRequiresAUsernameAndPassword">
<summary>
Looks up a localized string similar to The server {0} at {1} requires a username and password..
</summary>
</member>
<member name="T:SharpSvn.UI.SvnUI">
<summary>
</summary>
</member>
<member name="M:SharpSvn.UI.SvnUI.Bind(SharpSvn.SvnClient,SharpSvn.UI.SvnUIBindArgs)">
<summary>
Binds the specified client to the user interface defined by args
</summary>
<param name="client">The client to bind.</param>
<param name="args">The args.</param>
</member>
<member name="M:SharpSvn.UI.SvnUI.Bind(SharpSvn.SvnClient,System.Windows.Forms.IWin32Window)">
<summary>
Binds the specified client to the user interface defined by args
</summary>
<param name="client">The client to bind.</param>
<param name="parentWindow">The parent window.</param>
</member>
</members>
</doc>

BIN
src/Libraries/SharpSvn/SharpSvn.dll

Binary file not shown.

107
src/Libraries/SharpSvn/SharpSvn.wxs

@ -0,0 +1,107 @@ @@ -0,0 +1,107 @@
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.microsoft.com/wix/2006/wi tools/wix.xsd">
<!-- $Id: SharpSvn.wxs 549 2008-05-06 18:00:57Z rhuijben $ -->
<Fragment>
<!-- When referenced installs a Win32 SharpSvn into the directory DIR_SharpSvn -->
<ComponentGroup Id="LOCAL_SharpSvn_Win32">
<ComponentRef Id="C_LOCAL_SharpSvn.dll" />
<ComponentRef Id="C_LOCAL_SharpSvn_Sasl21_22_win32.dll" />
<ComponentRef Id="C_LOCAL_SharpPlink_Win32.svnExe" />
<?ifndef SharpSvn_NoDB?>
<ComponentRef Id="C_LOCAL_SharpSvn_DB44_20_win32.dll" />
<?endif?>
<?ifdef SharpSvn_Pdb?>
<ComponentRef Id="C_LOCAL_SharpSvn.pdb" />
<ComponentRef Id="C_LOCAL_SharpPlink_Win32.pdb" />
<?endif?>
<?ifndef SharpSvn_NoXml?>
<ComponentRef Id="C_LOCAL_SharpSvn.xml" />
<?endif?>
<?ifndef SharpSvn_NoResources?>
<!-- TODO: Add resource dll's -->
<?endif?>
</ComponentGroup>
</Fragment>
<Fragment>
<!-- When referenced installs SharpSvn into the GAC -->
<ComponentGroup Id="GAC_SharpSvn_Win32">
<!-- Not implemented yet -->
<ComponentRef Id="C_GAC_SharpSvn" />
</ComponentGroup>
</Fragment>
<Fragment>
<!-- When referenced installs a SharpSvn.UI into the directory DIR_SharpSvn -->
<ComponentGroup Id="LOCAL_SharpSvnUI">
<ComponentRef Id="C_LOCAL_SharpSvn.UI.dll" />
<?ifdef SharpSvn_Pdb?>
<ComponentRef Id="C_LOCAL_SharpSvn.UI.pdb" />
<?endif?>
<?ifndef SharpSvn_NoXml?>
<ComponentRef Id="C_LOCAL_SharpSvn.UI.xml" />
<?endif?>
<?ifndef SharpSvn_NoResources?>
<!-- TODO: Add resource dll's -->
<?endif?>
</ComponentGroup>
</Fragment>
<Fragment>
<!-- Always installed items -->
<DirectoryRef Id="DIR_SharpSvn" FileSource="$(sys.SOURCEFILEDIR)">
<Component Id="C_LOCAL_SharpSvn.dll" Guid="32EB117A-B450-4137-B453-072D03DAECB1">
<File Id="CF_LOCAL_SharpSvn.dll" Name="SharpSvn.dll" Vital="yes" KeyPath="yes" Checksum="yes" />
</Component>
<Component Id="C_LOCAL_SharpSvn_Sasl21_22_win32.dll" Guid="84E09CD6-03F4-4BD1-A12F-7CBFCC82CBB7">
<File Id="CF_LOCAL_SharpSvn_Sasl21_22_win32.dll" Name="SharpSvn-Sasl21-22-win32.dll" Vital="yes" KeyPath="yes" Checksum="yes" />
</Component>
<Component Id="C_LOCAL_SharpPlink_Win32.svnExe" Guid="34F616E9-637E-44F0-9416-F79325560FDE">
<File Id="CF_LOCAL_SharpPlink_Win32.svnExe" Name="SharpPlink-Win32.svnExe" Vital="yes" KeyPath="yes" Checksum="yes" />
</Component>
</DirectoryRef>
</Fragment>
<Fragment>
<!-- BDB is now optional -->
<DirectoryRef Id="DIR_SharpSvn" FileSource="$(sys.SOURCEFILEDIR)">
<Component Id="C_LOCAL_SharpSvn_DB44_20_win32.dll" Guid="29EEA692-708D-499B-8543-E4B43D1293AE">
<File Id="CF_LOCAL_SharpSvn_DB44_20_win32.dll" Name="SharpSvn-DB44-20-win32.dll" Vital="yes" KeyPath="yes" Checksum="yes" />
</Component>
</DirectoryRef>
</Fragment>
<Fragment>
<DirectoryRef Id="DIR_SharpSvn" FileSource="$(sys.SOURCEFILEDIR)">
<Component Id="C_LOCAL_SharpSvn.pdb" Guid="F38A631A-F9DE-4A4C-B4DD-2C94FA4A7E1F">
<File Id="CF_LOCAL_SharpSvn.pdb" Name="SharpSvn.pdb" KeyPath="yes" />
</Component>
<Component Id="C_LOCAL_SharpPlink_Win32.pdb" Guid="F3ED7757-1A3E-4F56-8CCE-811924222608">
<File Id="CF_LOCAL_SharpPlink_Win32.pdb" Name="SharpPlink-Win32.pdb" KeyPath="yes" />
</Component>
</DirectoryRef>
</Fragment>
<Fragment>
<DirectoryRef Id="DIR_SharpSvn" FileSource="$(sys.SOURCEFILEDIR)">
<Component Id="C_LOCAL_SharpSvn.xml" Guid="79440517-DF55-459A-93D6-B3A59D976072">
<File Id="CF_LOCAL_SharpSvn.xml" Name="SharpSvn.xml" KeyPath="yes" />
</Component>
</DirectoryRef>
</Fragment>
<Fragment>
<DirectoryRef Id="DIR_SharpSvn" FileSource="$(sys.SOURCEFILEDIR)">
<Component Id="C_LOCAL_SharpSvn.UI.dll" Guid="19505234-2C62-4785-B12B-D4891966A87E">
<File Id="CF_LOCAL_SharpSvn.UI.dll" Name="SharpSvn.UI.dll" Vital="yes" KeyPath="yes" Checksum="yes"/>
</Component>
</DirectoryRef>
</Fragment>
<Fragment>
<DirectoryRef Id="DIR_SharpSvn" FileSource="$(sys.SOURCEFILEDIR)">
<Component Id="C_LOCAL_SharpSvn.UI.pdb" Guid="4DC97A6D-5BF8-4FBC-A525-698A4466C5ED">
<File Id="CF_LOCAL_SharpSvn.UI.pdb" Name="SharpSvn.UI.pdb" KeyPath="yes"/>
</Component>
</DirectoryRef>
</Fragment>
<Fragment>
<DirectoryRef Id="DIR_SharpSvn" FileSource="$(sys.SOURCEFILEDIR)">
<Component Id="C_LOCAL_SharpSvn.UI.xml" Guid="FDBDAF00-1FCB-4A44-8E97-3ED6766B626B">
<File Id="CF_LOCAL_SharpSvn.UI.xml" Name="SharpSvn.UI.xml" KeyPath="yes"/>
</Component>
</DirectoryRef>
</Fragment>
</Wix>

18537
src/Libraries/SharpSvn/SharpSvn.xml

File diff suppressed because it is too large Load Diff

12
src/Setup/Files.wxs

@ -1483,16 +1483,8 @@ @@ -1483,16 +1483,8 @@
<Component Guid="C9B1D523-5674-4398-9073-20F57B45DD46" Id="SubversionAddInDll" DiskId="1">
<File Source="..\..\AddIns\AddIns\Misc\SubversionAddin\SubversionAddIn.dll" Id="SubversionAddIn.dll" Name="SubversionAddIn.dll" Assembly=".net" AssemblyApplication="SubversionAddIn.dll" AssemblyManifest="SubversionAddIn.dll" KeyPath="yes" />
<File Source="..\..\AddIns\AddIns\Misc\SubversionAddin\ICSharpCode.Svn.addin" Id="ICSharpCode.Svn.addin" Name="ICSharpCode.Svn.addin" />
<File Source="..\..\AddIns\AddIns\Misc\SubversionAddin\AprSharp.dll" Name="AprSharp.dll" Id="AprSharp.dll" />
<File Source="..\..\AddIns\AddIns\Misc\SubversionAddin\intl3_svn.dll" Name="intl3_svn.dll" Id="intl3_svn.dll" />
<File Source="..\..\AddIns\AddIns\Misc\SubversionAddin\libapr.dll" Name="libapr.dll" Id="libapr.dll" />
<File Source="..\..\AddIns\AddIns\Misc\SubversionAddin\libapriconv.dll" Name="libapriconv.dll" Id="libapriconv.dll" />
<File Source="..\..\AddIns\AddIns\Misc\SubversionAddin\libaprutil.dll" Name="libaprutil.dll" Id="libaprutil.dll" />
<File Source="..\..\AddIns\AddIns\Misc\SubversionAddin\libdb44.dll" Name="libdb44.dll" Id="libdb44.dll" />
<File Source="..\..\AddIns\AddIns\Misc\SubversionAddin\libeay32.dll" Name="libeay32.dll" Id="libeay32.dll" />
<File Source="..\..\AddIns\AddIns\Misc\SubversionAddin\ssleay32.dll" Name="ssleay32.dll" Id="ssleay32.dll" />
<File Source="..\..\AddIns\AddIns\Misc\SubversionAddin\SubversionSharp.dll" Name="SubversionSharp.dll" Id="SubversionSharp.dll" />
<File Source="..\..\AddIns\AddIns\Misc\SubversionAddin\svn_client-1.dll" Name="svn_client-1.dll" Id="svn_client_1.dll" />
<File Source="..\..\AddIns\AddIns\Misc\SubversionAddin\SharpSvn.dll" Name="SharpSvn.dll" Id="SharpSvn.dll" />
<File Source="..\..\AddIns\AddIns\Misc\SubversionAddin\SharpSvn.UI.dll" Name="SharpSvn.UI.dll" Id="SharpSvn.UI.dll" />
</Component>
</Directory>
<Directory Id="UnitTestingFolder" Name="UnitTesting">

64
src/Tools/SVNChangeLogToXml/Main.cs

@ -1,14 +1,15 @@ @@ -1,14 +1,15 @@
using System;
using System.Text.RegularExpressions;
using System.ComponentModel;
using System.Globalization;
using System.IO;
using System.Reflection;
using System.Text;
using System.Text.RegularExpressions;
using System.Windows.Forms;
using System.Xml;
using System.Xml.Xsl;
using System.Reflection;
using System.Windows.Forms;
using System.IO;
using PumaCode.SvnDotNet.AprSharp;
using PumaCode.SvnDotNet.SubversionSharp;
using SharpSvn;
class MainClass
{
@ -52,21 +53,13 @@ class MainClass @@ -52,21 +53,13 @@ class MainClass
{
Console.Write("Writing revision to file: ");
SvnClient client = new SvnClient();
long rev = 0;
string filename = Path.GetFullPath(".");
int rev = 0;
client.Status2(
filename, Svn.Revision.Working,
delegate (IntPtr baton, SvnPath path, SvnWcStatus2 status) {
if (StringComparer.InvariantCultureIgnoreCase.Equals(filename, path.Value)) {
rev = status.Entry.Revision;
}
},
IntPtr.Zero,
false, true, false, false, false
);
client.GlobalPool.Destroy();
SvnWorkingCopyClient client = new SvnWorkingCopyClient();
SvnWorkingCopyVersion version;
if (client.GetVersion(filename, out version)) {
rev = version.Start;
}
Console.WriteLine(rev);
using (StreamWriter writer = new StreamWriter("../REVISION")) {
writer.Write(rev.ToString());
@ -78,9 +71,6 @@ class MainClass @@ -78,9 +71,6 @@ class MainClass
Console.WriteLine("Reading SVN changelog, this might take a while...");
SvnClient client = new SvnClient();
client.AddUsernameProvider();
client.AddSimpleProvider();
client.OpenAuth();
StringWriter writer = new StringWriter();
XmlTextWriter xmlWriter = new XmlTextWriter(writer);
@ -88,24 +78,26 @@ class MainClass @@ -88,24 +78,26 @@ class MainClass
xmlWriter.WriteStartDocument();
xmlWriter.WriteStartElement("log");
int progressCount = 0;
client.Log2(
new SvnPath[] { new SvnPath("..", client.Pool)},
Svn.Revision.Base, new SvnRevision(startRevision),
int.MaxValue, false, false,
delegate(IntPtr baton, AprHash changed_paths, int revision, AprString author, AprString date, AprString message, AprPool pool) {
client.Log(
"..",
new SvnLogArgs {
// retrieve log in reverse order
Start = SvnRevision.Base,
End = new SvnRevision(startRevision)
},
delegate(object sender, SvnLogEventArgs e) {
if (++progressCount == 10) {
Console.Write(".");
progressCount = 0;
}
xmlWriter.WriteStartElement("logentry");
xmlWriter.WriteAttributeString("revision", revision.ToString(System.Globalization.CultureInfo.InvariantCulture));
xmlWriter.WriteElementString("author", author.Value);
xmlWriter.WriteElementString("date", DateTime.Parse(date.Value).ToUniversalTime().ToString("MM/dd/yyyy", System.Globalization.CultureInfo.InvariantCulture));
xmlWriter.WriteElementString("msg", message.Value);
xmlWriter.WriteAttributeString("revision", e.Revision.ToString(CultureInfo.InvariantCulture));
xmlWriter.WriteElementString("author", e.Author);
xmlWriter.WriteElementString("date", e.Time.ToUniversalTime().ToString("MM/dd/yyyy", System.Globalization.CultureInfo.InvariantCulture));
xmlWriter.WriteElementString("msg", e.LogMessage);
xmlWriter.WriteEndElement();
return SvnError.NoError;
},
IntPtr.Zero);
}
);
xmlWriter.WriteEndDocument();
Console.WriteLine();
@ -122,7 +114,7 @@ class MainClass @@ -122,7 +114,7 @@ class MainClass
xmlWriter.Close();
tw.Close();
client.GlobalPool.Destroy();
client.Dispose();
Console.WriteLine("Finished");
}

43
src/Tools/SVNChangeLogToXml/SVNChangelogToXml.csproj

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@ -19,6 +19,8 @@ @@ -19,6 +19,8 @@
<WarningLevel>4</WarningLevel>
<NoWarn>1607</NoWarn>
<StartArguments>--REVISION --START 100</StartArguments>
<SourceAnalysisOverrideSettingsFile>C:\Users\Daniel\AppData\Roaming\ICSharpCode/SharpDevelop3.0\Settings.SourceAnalysis</SourceAnalysisOverrideSettingsFile>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -38,11 +40,8 @@ @@ -38,11 +40,8 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<Reference Include="AprSharp">
<HintPath>..\..\AddIns\Misc\SubversionAddIn\RequiredLibraries\AprSharp.dll</HintPath>
</Reference>
<Reference Include="SubversionSharp">
<HintPath>..\..\AddIns\Misc\SubversionAddIn\RequiredLibraries\SubversionSharp.dll</HintPath>
<Reference Include="SharpSvn">
<HintPath>..\..\Libraries\SharpSvn\SharpSvn.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
@ -52,38 +51,6 @@ @@ -52,38 +51,6 @@
</ItemGroup>
<ItemGroup>
<Compile Include="Main.cs" />
<None Include="..\..\AddIns\Misc\SubversionAddIn\RequiredLibraries\intl3_svn.dll">
<Link>intl3_svn.dll</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="..\..\AddIns\Misc\SubversionAddIn\RequiredLibraries\libapr.dll">
<Link>libapr.dll</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="..\..\AddIns\Misc\SubversionAddIn\RequiredLibraries\libapriconv.dll">
<Link>libapriconv.dll</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="..\..\AddIns\Misc\SubversionAddIn\RequiredLibraries\libaprutil.dll">
<Link>libaprutil.dll</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="..\..\AddIns\Misc\SubversionAddIn\RequiredLibraries\libdb44.dll">
<Link>libdb44.dll</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="..\..\AddIns\Misc\SubversionAddIn\RequiredLibraries\libeay32.dll">
<Link>libeay32.dll</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="..\..\AddIns\Misc\SubversionAddIn\RequiredLibraries\ssleay32.dll">
<Link>ssleay32.dll</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="..\..\AddIns\Misc\SubversionAddIn\RequiredLibraries\svn_client-1.dll">
<Link>svn_client-1.dll</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" />
</Project>

6
src/Tools/SVNChangeLogToXml/SVNChangelogToXml.sln

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
# SharpDevelop 3.0.0.2967
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
# SharpDevelop 3.1.0.3932
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SVNChangelogToXml", "SVNChangelogToXml.csproj", "{c6159c5e-f6ef-4a63-b152-0e49159b6059}"
EndProject
Global

75
src/Tools/UpdateAssemblyInfo/Main.cs

@ -5,15 +5,17 @@ @@ -5,15 +5,17 @@
* Time: 12:00
*/
using System;
using System.Collections.Specialized;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections.Specialized;
using System.Runtime.CompilerServices;
using PumaCode.SvnDotNet.AprSharp;
using PumaCode.SvnDotNet.SubversionSharp;
using SharpSvn;
using System.Threading;
namespace UpdateAssemblyInfo
{
@ -25,25 +27,42 @@ namespace UpdateAssemblyInfo @@ -25,25 +27,42 @@ namespace UpdateAssemblyInfo
const string configTemplateFile = "Main/StartUp/Project/app.template.config";
const string configFile = "Main/StartUp/Project/SharpDevelop.exe.config";
const string configFile2 = "Main/ICSharpCode.SharpDevelop.Sda/ICSharpCode.SharpDevelop.Sda.dll.config";
const string subversionLibraryDir = "Libraries/SharpSvn";
public static int Main(string[] args)
{
try {
if (!File.Exists("SharpDevelop.sln")) {
string mainDir = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(typeof(MainClass).Assembly.Location), "../../../.."));
if (File.Exists(mainDir + "\\SharpDevelop.sln")) {
Directory.SetCurrentDirectory(mainDir);
string exeDir = Path.GetDirectoryName(typeof(MainClass).Assembly.Location);
bool createdNew;
using (Mutex mutex = new Mutex(true, "SharpDevelopUpdateAssemblyInfo" + exeDir.GetHashCode(), out createdNew)) {
if (!createdNew) {
// multiple calls in parallel?
// it's sufficient to let one call run, so just wait for the other call to finish
try {
mutex.WaitOne(10000);
} catch (AbandonedMutexException) {
}
return 0;
}
if (!File.Exists("SharpDevelop.sln")) {
string mainDir = Path.GetFullPath(Path.Combine(exeDir, "../../../.."));
if (File.Exists(mainDir + "\\SharpDevelop.sln")) {
Directory.SetCurrentDirectory(mainDir);
}
}
if (!File.Exists("SharpDevelop.sln")) {
Console.WriteLine("Working directory must be SharpDevelop\\src!");
return 2;
}
File.Copy(Path.Combine(subversionLibraryDir, "SharpSvn.dll"),
Path.Combine(exeDir, "SharpSvn.dll"),
true);
RetrieveRevisionNumber();
string versionNumber = GetMajorVersion() + "." + revisionNumber;
UpdateStartup();
UpdateRedirectionConfig(versionNumber);
return 0;
}
if (!File.Exists("SharpDevelop.sln")) {
Console.WriteLine("Working directory must be SharpDevelop\\src!");
return 2;
}
RetrieveRevisionNumber();
string versionNumber = GetMajorVersion() + "." + revisionNumber;
UpdateStartup();
UpdateRedirectionConfig(versionNumber);
return 0;
} catch (Exception ex) {
Console.WriteLine(ex);
return 3;
@ -152,14 +171,14 @@ namespace UpdateAssemblyInfo @@ -152,14 +171,14 @@ namespace UpdateAssemblyInfo
Console.WriteLine();
Console.WriteLine("The revision number of the SharpDevelop version being compiled could not be retrieved.");
Console.WriteLine();
Console.WriteLine("Build continues with revision number '9999'...");
Console.WriteLine("Build continues with revision number '0'...");
try {
Process[] p = Process.GetProcessesByName("msbuild");
if (p != null && p.Length > 0) {
System.Threading.Thread.Sleep(3000);
}
} catch {}
return "9999";
return "0";
}
}
static void RetrieveRevisionNumber()
@ -168,21 +187,15 @@ namespace UpdateAssemblyInfo @@ -168,21 +187,15 @@ namespace UpdateAssemblyInfo
string oldWorkingDir = Environment.CurrentDirectory;
try {
// Change working dir so that the subversion libraries can be found
Environment.CurrentDirectory = Path.Combine(oldWorkingDir, "AddIns\\Misc\\SubversionAddIn\\RequiredLibraries");
Environment.CurrentDirectory = Path.Combine(Environment.CurrentDirectory, subversionLibraryDir);
SvnClient client = new SvnClient();
try {
client.Info(oldWorkingDir, new SvnRevision(Svn.Revision.Unspecified), new SvnRevision(Svn.Revision.Unspecified),
delegate(IntPtr baton, SvnPath path, SvnInfo info, AprPool pool) {
revisionNumber = info.Rev.ToString();
return SvnError.NoError;
},
IntPtr.Zero, false);
} finally {
client.Clear();
SvnWorkingCopyClient client = new SvnWorkingCopyClient();
SvnWorkingCopyVersion version;
if (client.GetVersion(oldWorkingDir, out version)) {
revisionNumber = version.Start.ToString(CultureInfo.InvariantCulture);
}
} catch (Exception e) {
Console.WriteLine("Reading revision number with Svn.Net failed: " + e.ToString());
Console.WriteLine("Reading revision number with SharpSvn failed: " + e.ToString());
} finally {
Environment.CurrentDirectory = oldWorkingDir;
}

13
src/Tools/UpdateAssemblyInfo/UpdateAssemblyInfo.csproj

@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
<NoStdLib>False</NoStdLib>
<DebugType>None</DebugType>
<DebugType>PdbOnly</DebugType>
<RegisterForComInterop>False</RegisterForComInterop>
<GenerateSerializationAssemblies>Auto</GenerateSerializationAssemblies>
<BaseAddress>4194304</BaseAddress>
@ -21,6 +21,7 @@ @@ -21,6 +21,7 @@
<NoWarn>1607</NoWarn>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<ApplicationManifest>app.manifest</ApplicationManifest>
<SourceAnalysisOverrideSettingsFile>C:\Users\Daniel\AppData\Roaming\ICSharpCode/SharpDevelop3.0\Settings.SourceAnalysis</SourceAnalysisOverrideSettingsFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>bin\Debug\</OutputPath>
@ -33,13 +34,9 @@ @@ -33,13 +34,9 @@
<DefineConstants>TRACE</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Reference Include="AprSharp">
<HintPath>..\..\AddIns\Misc\SubversionAddIn\RequiredLibraries\AprSharp.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="SubversionSharp">
<HintPath>..\..\AddIns\Misc\SubversionAddIn\RequiredLibraries\SubversionSharp.dll</HintPath>
<Private>True</Private>
<Reference Include="SharpSvn">
<HintPath>..\..\Libraries\SharpSvn\SharpSvn.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />

BIN
src/Tools/UpdateAssemblyInfo/bin/Debug/AprSharp.dll

Binary file not shown.

BIN
src/Tools/UpdateAssemblyInfo/bin/Debug/SubversionSharp.dll

Binary file not shown.

BIN
src/Tools/UpdateAssemblyInfo/bin/Debug/UpdateAssemblyInfo.exe

Binary file not shown.

40
src/Tools/UpdateSetupInfo/Main.cs

@ -6,16 +6,16 @@ @@ -6,16 +6,16 @@
// </file>
using System;
using System.Globalization;
using System.IO;
using System.Reflection;
using System.Text;
using PumaCode.SvnDotNet.AprSharp;
using PumaCode.SvnDotNet.SubversionSharp;
using SharpSvn;
namespace UpdateSetupInfo
{
/// <summary>
/// Creates the SharpDevelop.Setup.wixproj.user file based on the
/// Creates the SharpDevelop.Setup.wixproj.user file based on the
/// SharpDevelop.Setup.wixproj.user.template.
/// </summary>
class UpdateApplication
@ -42,7 +42,7 @@ namespace UpdateSetupInfo @@ -42,7 +42,7 @@ namespace UpdateSetupInfo
/// The full filename including path to the setup template file.
/// </summary>
string setupTemplateFullFileName;
/// <summary>
/// The full filename including path to the setup project user file that
/// will be generated.
@ -61,7 +61,7 @@ namespace UpdateSetupInfo @@ -61,7 +61,7 @@ namespace UpdateSetupInfo
string previousRevisionFileName;
/// <summary>
/// The folder that contains the last revision number used to update the
/// The folder that contains the last revision number used to update the
/// template.
/// </summary>
string previousRevisionFolder;
@ -78,6 +78,9 @@ namespace UpdateSetupInfo @@ -78,6 +78,9 @@ namespace UpdateSetupInfo
previousRevisionFolder = Path.Combine(setupProjectFolder, @"bin");
previousRevisionFileName = Path.Combine(previousRevisionFolder, "REVISION");
File.Copy(Path.Combine(Path.Combine(applicationFolder, subversionLibraryDir), "SharpSvn.dll"),
Path.Combine(applicationFolder, "SharpSvn.dll"), true);
// Set current directory to a folder that is in the repository.
Environment.CurrentDirectory = setupProjectFolder;
}
@ -94,14 +97,14 @@ namespace UpdateSetupInfo @@ -94,14 +97,14 @@ namespace UpdateSetupInfo
}
public int Run()
{
{
// Read setup template contents.
if (!SetupTemplateFileExists) {
Console.WriteLine(String.Concat(SetupTemplateFileName, " not found. Unable to update setup information."));
return SetupTemplateFileNotFoundReturnCode;
}
string template = ReadSetupTemplate();
// Get current revision.
string currentRevision = GetCurrentRevision();
@ -144,7 +147,9 @@ namespace UpdateSetupInfo @@ -144,7 +147,9 @@ namespace UpdateSetupInfo
writer.Write(contents);
}
}
const string subversionLibraryDir = @"..\..\..\Libraries\SharpSvn";
/// <summary>
/// Code taken directly from UpdateAssemblyInfo and the paths slightly modified.
/// </summary>
@ -157,17 +162,12 @@ namespace UpdateSetupInfo @@ -157,17 +162,12 @@ namespace UpdateSetupInfo
string oldWorkingDir = Environment.CurrentDirectory;
try {
// Set working directory so msvcp70.dll and msvcr70.dll can be found
Environment.CurrentDirectory = Path.Combine(applicationFolder, @"..\..\..\AddIns\Misc\SubversionAddIn\RequiredLibraries");
SvnClient client = new SvnClient();
try {
client.Info(oldWorkingDir, new SvnRevision(Svn.Revision.Unspecified), new SvnRevision(Svn.Revision.Unspecified),
delegate(IntPtr baton, SvnPath path, SvnInfo info, AprPool pool) {
revisionNumber = info.Rev.ToString();
return SvnError.NoError;
},
IntPtr.Zero, false);
} finally {
client.Clear();
Environment.CurrentDirectory = Path.Combine(applicationFolder, subversionLibraryDir);
SvnWorkingCopyClient client = new SvnWorkingCopyClient();
SvnWorkingCopyVersion version;
if (client.GetVersion(oldWorkingDir, out version)) {
revisionNumber = version.Start.ToString(CultureInfo.InvariantCulture);
}
} catch (Exception e) {
Console.WriteLine("Reading revision number with Svn.Net failed: " + e.ToString());

16
src/Tools/UpdateSetupInfo/UpdateSetupInfo.csproj

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
<PropertyGroup>
<OutputType>Exe</OutputType>
<RootNamespace>UpdateSetupInfo</RootNamespace>
@ -16,9 +16,10 @@ @@ -16,9 +16,10 @@
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<OutputPath>bin</OutputPath>
<SourceAnalysisOverrideSettingsFile>C:\Users\Daniel\AppData\Roaming\ICSharpCode/SharpDevelop3.0\Settings.SourceAnalysis</SourceAnalysisOverrideSettingsFile>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<BaseIntermediateOutputPath>obj\</BaseIntermediateOutputPath>
<IntermediateOutputPath>obj\Debug\</IntermediateOutputPath>
<Optimize>False</Optimize>
<DefineConstants>DEBUG;TRACE</DefineConstants>
@ -36,11 +37,9 @@ @@ -36,11 +37,9 @@
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
</PropertyGroup>
<ItemGroup>
<Reference Include="AprSharp">
<HintPath>..\..\AddIns\Misc\SubversionAddIn\RequiredLibraries\AprSharp.dll</HintPath>
</Reference>
<Reference Include="SubversionSharp">
<HintPath>..\..\AddIns\Misc\SubversionAddIn\RequiredLibraries\SubversionSharp.dll</HintPath>
<Reference Include="SharpSvn">
<HintPath>..\..\Libraries\SharpSvn\SharpSvn.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
</ItemGroup>
@ -49,9 +48,6 @@ @@ -49,9 +48,6 @@
</ItemGroup>
<ItemGroup>
<Content Include="Readme.txt" />
<Content Include="UpdateSetupInfo.exe.manifest">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.Targets" />
</Project>

14
src/Tools/UpdateSetupInfo/UpdateSetupInfo.exe.manifest

@ -1,14 +0,0 @@ @@ -1,14 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<description>Updates the setup version, product and package code guids in SharpDevelop.Setup.wixproj.user</description>
<!-- required because Vista otherwise thinks UpdateAssemblyInfo requires admin rights -->
<!-- because it contains the word "Update" -->
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>

6
src/Tools/UpdateSetupInfo/UpdateSetupInfo.sln

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
Microsoft Visual Studio Solution File, Format Version 9.00
# SharpDevelop 2.1.0.1717

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
# SharpDevelop 3.1.0.3932
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UpdateSetupInfo", "UpdateSetupInfo.csproj", "{75E6D78C-DC66-40F1-90AC-F9F97ADE3506}"
EndProject
Global

Loading…
Cancel
Save