/// <summary>
        /// Initializes a new instance of the <see cref="VSSParser" /> class.
        /// </summary>
        /// <param name="entry">The entry.</param>
        /// <param name="locale">The locale.</param>
        /// <remarks></remarks>
        protected VSSParser(string entry, IVssLocale locale)
        {
            this.entry  = entry.Replace(Convert.ToChar(160).ToString(CultureInfo.CurrentCulture), string.Empty);
            this.locale = locale;
            string regex = string.Format(CultureInfo.CurrentCulture, @"{0}:(.+){1}:(.+){2}:(.+)$", locale.UserKeyword, locale.DateKeyword, locale.TimeKeyword);

            REGEX_USER_DATE_LINE = new Regex(regex, RegexOptions.Multiline);
            this.locale          = locale;
        }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Vss" /> class.
 /// </summary>
 /// <param name="locale">The locale.</param>
 /// <param name="historyParser">The history parser.</param>
 /// <param name="executor">The executor.</param>
 /// <param name="registry">The registry.</param>
 /// <remarks></remarks>
 public Vss(IVssLocale locale, IHistoryParser historyParser, ProcessExecutor executor, IRegistry registry) : base(historyParser, executor)
 {
     this.registry        = registry;
     this.locale          = locale;
     this.Project         = DefaultProject;
     this.ApplyLabel      = false;
     this.AutoGetSource   = true;
     this.AlwaysGetLatest = false;
     this.CleanCopy       = true;
 }
예제 #3
0
        public VSSParser(string entry, IVssLocale locale)
        {
            this.entry  = entry.Replace(Convert.ToChar(160).ToString(), "");
            this.entry  = entry.Replace(Environment.NewLine, "");
            this.locale = locale;
            string regex = string.Format(@"{0}:(.+){1}:(.+){2}:(.+)$", locale.UserKeyword, locale.DateKeyword, locale.TimeKeyword);

            REGEX_USER_DATE_LINE = new Regex(regex, RegexOptions.Multiline);
            this.locale          = locale;
        }
예제 #4
0
        public static VSSParser CreateParser(string entry, IVssLocale locale)
        {
            string vssKeyworkdLine = ReadVSSKeywordLine(entry);

            if (vssKeyworkdLine.IndexOf(locale.CheckedInKeyword) > -1)
            {
                return(new CheckInParser(entry, locale));
            }
            else if (vssKeyworkdLine.IndexOf(locale.AddedKeyword) > -1)
            {
                return(new AddedParser(entry, locale));
            }
            else if (vssKeyworkdLine.IndexOf(locale.DeletedKeyword) > -1)
            {
                return(new DeletedParser(entry, locale));
            }
            else if (vssKeyworkdLine.IndexOf(locale.DestroyedKeyword) > -1)
            {
                return(new DestroyedParser(entry, locale));
            }

            return(new NullParser(entry, locale));
        }
예제 #5
0
 public VSSParser(string entry, IVssLocale locale)
 {
     this.entry = entry.Replace(Convert.ToChar(160).ToString(), "");
     this.entry = entry.Replace(Environment.NewLine, "");
     this.locale = locale;
     string regex = string.Format(@"{0}:(.+){1}:(.+){2}:(.+)$", locale.UserKeyword, locale.DateKeyword, locale.TimeKeyword);
     REGEX_USER_DATE_LINE = new Regex(regex, RegexOptions.Multiline);
     this.locale = locale;
 }
예제 #6
0
        public static VSSParser CreateParser(string entry, IVssLocale locale)
        {
            string vssKeyworkdLine = ReadVSSKeywordLine(entry);
            if (vssKeyworkdLine.IndexOf(locale.CheckedInKeyword) > -1)
            {
                return new CheckInParser(entry, locale);
            }
            else if (vssKeyworkdLine.IndexOf(locale.AddedKeyword) > -1)
            {
                return new AddedParser(entry, locale);
            }
            else if (vssKeyworkdLine.IndexOf(locale.DeletedKeyword) > -1)
                return new DeletedParser(entry, locale);
            else if (vssKeyworkdLine.IndexOf(locale.DestroyedKeyword) > -1)
                return new DestroyedParser(entry, locale);

            return new NullParser(entry, locale);
        }
예제 #7
0
 public NullParser(string entry, IVssLocale locale)
     : base(entry, locale)
 {
 }
예제 #8
0
 public VssHistoryParser(IVssLocale locale)
 {
     this.locale = locale;
 }
예제 #9
0
 public Vss(IVssLocale locale, IHistoryParser historyParser, ProcessExecutor executor, IRegistry registry)
     : base(historyParser, executor)
 {
     this.registry = registry;
     this.locale = locale;
 }
예제 #10
0
 private Vss(IVssLocale locale)
     : this(locale, new VssHistoryParser(locale), new ProcessExecutor(), new Registry())
 {
 }
예제 #11
0
 public Vss(IVssLocale locale, IHistoryParser historyParser, ProcessExecutor executor, IRegistry registry) : base(historyParser, executor)
 {
     this.registry = registry;
     this.locale   = locale;
 }
예제 #12
0
        /// <summary>
        /// Initializes a new instance of the <see cref="VSSParser" /> class.	
        /// </summary>
        /// <param name="entry">The entry.</param>
        /// <param name="locale">The locale.</param>
        /// <remarks></remarks>
	    protected VSSParser(string entry, IVssLocale locale)
		{
			this.entry = entry.Replace(Convert.ToChar(160).ToString(CultureInfo.CurrentCulture),string.Empty);
			this.locale = locale;
			string regex = string.Format(CultureInfo.CurrentCulture, @"{0}:(.+){1}:(.+){2}:(.+)$", locale.UserKeyword, locale.DateKeyword, locale.TimeKeyword);
			REGEX_USER_DATE_LINE = new Regex(regex, RegexOptions.Multiline);
			this.locale = locale;
		}
예제 #13
0
 public CheckInParser(string entry, IVssLocale locale)
     : base(entry, locale)
 {
 }
예제 #14
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Vss" /> class.	
        /// </summary>
        /// <param name="locale">The locale.</param>
        /// <param name="historyParser">The history parser.</param>
        /// <param name="executor">The executor.</param>
        /// <param name="registry">The registry.</param>
        /// <remarks></remarks>
		public Vss(IVssLocale locale, IHistoryParser historyParser, ProcessExecutor executor, IRegistry registry) : base(historyParser, executor)
		{
			this.registry = registry;
			this.locale = locale;
            this.Project = DefaultProject;
            this.ApplyLabel = false;
            this.AutoGetSource = true;
            this.AlwaysGetLatest = false;
            this.CleanCopy = true;
		}
예제 #15
0
 public NullParser(string entry, IVssLocale locale) : base(entry, locale)
 {
 }
예제 #16
0
 public DestroyedParser(string entry, IVssLocale locale) : base(entry, locale)
 {
 }
예제 #17
0
 public AddedParser(string entry, IVssLocale locale) : base(entry, locale)
 {
 }
예제 #18
0
 public CheckInParser(string entry, IVssLocale locale) : base(entry, locale)
 {
 }
예제 #19
0
 public VssHistoryParser(IVssLocale locale)
 {
     this.locale = locale;
 }
예제 #20
0
 public DeletedParser(string entry, IVssLocale locale)
     : base(entry, locale)
 {
 }
예제 #21
0
 private Vss(IVssLocale locale) : this(locale, new VssHistoryParser(locale), new ProcessExecutor(), new Registry())
 {
 }