/Mercurial.Net/Gui/Clients/TortoiseHgPyGTKClient.cs

# · C# · 37 lines · 22 code · 3 blank · 12 comment · 0 complexity · 651b6c1f7a4e182e65902766787fb9da MD5 · raw file

  1. using System.Text;
  2. namespace Mercurial.Gui.Clients
  3. {
  4. /// <summary>
  5. /// This <see cref="TortoiseHgClient"/> descendant implements specific methods for the PyGTK (hgtk) version of TortoiseHg.
  6. /// </summary>
  7. internal class TortoiseHgPyGTKClient : TortoiseHgClient
  8. {
  9. /// <summary>
  10. /// This field is used to specify the encoding of the listfile.
  11. /// </summary>
  12. private static readonly Encoding _FileListEncoding = Encoding.GetEncoding("Windows-1252");
  13. /// <summary>
  14. /// Gets the option to pass to the TortoiseHg command line client to read in the file list.
  15. /// </summary>
  16. public override string FileListOption
  17. {
  18. get
  19. {
  20. return "--listfile";
  21. }
  22. }
  23. /// <summary>
  24. /// Gets the <see cref="Encoding"/> to use when saving the file list to disk.
  25. /// </summary>
  26. public override Encoding FileListEncoding
  27. {
  28. get
  29. {
  30. return _FileListEncoding;
  31. }
  32. }
  33. }
  34. }