コード例 #1
0
 public ManualBranchResolver(ILogger log, ITagResolver fallbackResolver, ITagResolver tagResolver, RenameRule branchpointRule)
 {
     m_log             = log;
     m_fallback        = fallbackResolver;
     m_tagResolver     = tagResolver;
     m_branchpointRule = branchpointRule;
 }
コード例 #2
0
		public ManualBranchResolver(ILogger log, ITagResolver fallbackResolver, ITagResolver tagResolver, RenameRule branchpointRule)
		{
			m_log = log;
			m_fallback = fallbackResolver;
			m_tagResolver = tagResolver;
			m_branchpointRule = branchpointRule;
		}
コード例 #3
0
 private void AddRenameRule(Renamer renamer, string rule)
 {
     try
     {
         renamer.AddRule(RenameRule.Parse(rule));
     }
     catch (ArgumentException ae)
     {
         throw new CommandLineArgsException("Invalid rename rule: {0}", ae.Message);
     }
 }
コード例 #4
0
        public void ParseCommandLineSwitches(params string[] args)
        {
            m_switches.Parse(args);

            try
            {
                if (m_switches.BranchpointRule != null)
                {
                    BranchpointRule = RenameRule.Parse(m_switches.BranchpointRule);
                }
            }
            catch (ArgumentException ae)
            {
                throw new CommandLineArgsException("Invalid branchpoint rule: {0}", ae.Message);
            }
        }
コード例 #5
0
ファイル: Renamer.cs プロジェクト: runt18/CvsntGitImporter
		/// <summary>
		/// Adds a renaming rule.
		/// </summary>
		public void AddRule(RenameRule rule)
		{
			m_rules.Add(rule);
		}
コード例 #6
0
ファイル: Renamer.cs プロジェクト: Mattlk13/CvsntGitImporter
 /// <summary>
 /// Adds a renaming rule.
 /// </summary>
 public void AddRule(RenameRule rule)
 {
     m_rules.Add(rule);
 }