コード例 #1
0
 /// <returns>the configuration of this repository</returns>
 public override StoredConfig GetConfig()
 {
     if (systemConfig.IsOutdated())
     {
         try
         {
             LoadSystemConfig();
         }
         catch (IOException e)
         {
             throw new RuntimeException(e);
         }
     }
     if (userConfig.IsOutdated())
     {
         try
         {
             LoadUserConfig();
         }
         catch (IOException e)
         {
             throw new RuntimeException(e);
         }
     }
     if (repoConfig.IsOutdated())
     {
         try
         {
             LoadRepoConfig();
         }
         catch (IOException e)
         {
             throw new RuntimeException(e);
         }
     }
     return(repoConfig);
 }