• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisión1aa98d44d418521ce00c0d1d5880f1ea3f7ea638 (tree)
Tiempo2021-06-14 22:23:15
Autorhor931101jp <hor931101jp@yaho...>
Commiterhor931101jp

Log Message

0614

Cambiar Resumen

Diferencia incremental

Binary files a/SvnRevert/.vs/SvnRevert/v16/.suo and b/SvnRevert/.vs/SvnRevert/v16/.suo differ
--- a/SvnRevert/Program.cs
+++ b/SvnRevert/Program.cs
@@ -33,7 +33,7 @@ namespace SvnRevert
3333 Console.WriteLine("+++ Repo Directory / File List +++");
3434
3535 //ローカルの情報を取得
36- SvnPathTarget local = new SvnPathTarget(@"C:\OSDN\99 test\trunk\UnitTestProject1");
36+ var local = new SvnPathTarget(@"C:\OSDN\99 test\trunk\OfficeImageReducerCS");
3737 SvnInfoEventArgs clientInfo;
3838 client.GetInfo(local, out clientInfo);
3939 Debug.Print(clientInfo.Uri.AbsoluteUri);
@@ -62,17 +62,19 @@ namespace SvnRevert
6262 System.IO.File.AppendAllText(@"diffFile.patch", new System.IO.StreamReader(stream).ReadToEnd());
6363 }
6464 #endif
65- //repos var location = new Uri("http://my.example/repos/trunk");
66- //client.DiffSummary(new SvnUriTarget(repos, 12), new SvnUriTarget(repos, SvnRevision.Head),
67- //client.DiffSummary(new SvnUriTarget(repos, clientInfo.Revision-10), new SvnUriTarget(repos, clientInfo.Revision),
68- //client.DiffSummary(new SvnUriTarget(repos, clientInfo.Revision-1), local,
69- //client.DiffSummary(new SvnUriTarget(repos, clientInfo.Revision), new SvnPathTarget(local.TargetPath),
70- //client.DiffSummary(new SvnUriTarget(repos, clientInfo.Revision), new SvnPathTarget(local.TargetPath,SvnRevision.Working),
71- //client.DiffSummary(new SvnPathTarget(local.TargetPath, clientInfo.Revision), new SvnPathTarget(local.TargetPath, SvnRevision.Working),
65+//repos var location = new Uri("http://my.example/repos/trunk");
66+//client.DiffSummary(new SvnUriTarget(repos, 12), new SvnUriTarget(repos, SvnRevision.Head),
67+//client.DiffSummary(new SvnUriTarget(repos, clientInfo.Revision-10), new SvnUriTarget(repos, clientInfo.Revision),
68+//client.DiffSummary(new SvnUriTarget(repos, clientInfo.Revision-1), local,
69+//client.DiffSummary(new SvnUriTarget(repos, clientInfo.Revision), new SvnPathTarget(local.TargetPath),
70+//client.DiffSummary(new SvnUriTarget(repos, clientInfo.Revision), new SvnPathTarget(local.TargetPath,SvnRevision.Working),
71+//client.DiffSummary(new SvnPathTarget(local.TargetPath, clientInfo.Revision), new SvnPathTarget(local.TargetPath, SvnRevision.Working),
72+#if false
73+ var DiffSummaryList = new List<SvnDiffSummaryEventArgs>();
7274 client.DiffSummary(new SvnPathTarget(local.TargetPath, SvnRevision.Base), new SvnPathTarget(local.TargetPath, SvnRevision.Working),
7375 delegate (object sender, SvnDiffSummaryEventArgs e)
7476 {
75- //if (e.DiffKind == SvnDiffKind.Modified)
77+ if (e.DiffKind == SvnDiffKind.Modified)
7678 {
7779 // TODO: Handle result
7880 Console.WriteLine(" ");
@@ -80,11 +82,17 @@ namespace SvnRevert
8082 Console.WriteLine(e.PropertiesChanged);
8183 Console.WriteLine(e.FromUri);
8284 Console.WriteLine(e.DiffKind);
85+ DiffSummaryList.Add(e);
8386 }
84-
8587 });
8688
87- Console.WriteLine("----------");
89+ Console.WriteLine("--------------------------------------");
90+ Console.WriteLine(" ");
91+ Console.WriteLine(" ");
92+ Console.WriteLine(" ");
93+ Console.WriteLine(" ");
94+ Console.WriteLine(" ");
95+#endif
8896 #if false
8997 System.IO.MemoryStream diffResultStream = new System.IO.MemoryStream();
9098 //client.Diff(SvnTarget.FromString(local.TargetPath), new SvnRevisionRange(SvnRevision.Head, SvnRevision.Working), diffResultStream);
@@ -101,7 +109,26 @@ namespace SvnRevert
101109 client.Diff(local, new SvnRevisionRange(SvnRevision.Base, SvnRevision.Working), diffResultStream);
102110 Console.WriteLine(diffResultStream.Length);
103111 var strdiff = Encoding.UTF8.GetString(diffResultStream.ToArray());
104- Console.WriteLine(strdiff);
112+ //var strdiff = Encoding.GetEncoding("shift_jis").GetString(diffResultStream.ToArray());
113+ //Console.WriteLine(strdiff);
114+ Console.WriteLine(" ");
115+ Console.WriteLine(" ");
116+ Console.WriteLine(" ");
117+ Console.WriteLine(" ");
118+ Console.WriteLine(" ");
119+
120+ String[] delimiter = {"Index: "};
121+ var strdiffs = strdiff.Split(delimiter, StringSplitOptions.RemoveEmptyEntries);
122+ foreach(var x in strdiffs){
123+ Console.WriteLine(" ");
124+ Console.WriteLine(" ");
125+ Console.WriteLine(" ");
126+ Console.WriteLine("1");
127+ Console.WriteLine(x);
128+ }
129+
130+
131+
105132 Console.WriteLine("何かキーを押してください . . .");
106133 Console.ReadKey();
107134