PageRenderTime 34ms CodeModel.GetById 30ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 1ms

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

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