Пример #1
0
 internal static bool CanCopyURL(Source source)
 {
     if (source == null)
     {
         return false;
     }
     if (!source.IsURL && (source.GetInfo(false) == null))
     {
         return false;
     }
     return true;
 }
Пример #2
0
 public static List<long> GetRemoteRecommendedRevisions(Source source)
 {
     List<long> retList = new List<long>();
     using (SvnClient client = GetSvnClient(source))
     {
         SVNInfo info = source.GetInfo(true);
         if (info == null)
         {
             return null;
         }
         string value = string.Empty;
         string url = info.URL;
         client.GetRevisionProperty(new Uri(url), new SvnRevision(source.Revision), "svnmonitor:recommend", out value);
         if (value != null)
         {
             GetRevisionsFromString(value, retList);
         }
     }
     return retList;
 }