Ejemplo n.º 1
0
        public IEnumerable <IMergeableChangeSet> GetMergeChangeSets(IFolderWithBranchingSupport targetFolder)
        {
            if (!this.Exists())
            {
                throw new InvalidOperationException($"You cannnot merge from a folder that doesn't exists: '{this.GetServerPath().AsString()}'");
            }

            return(ToSourceControlFolder().GetMergeChangeSets(targetFolder.GetServerPath()));
        }
Ejemplo n.º 2
0
        public void Branch(IFolderWithBranchingSupport targetFolder)
        {
            if (!this.Exists())
            {
                throw new InvalidOperationException($"You cannnot branch a folder that doesn't exists: '{this.GetServerPath().AsString()}'");
            }

            ToSourceControlFolder().Branch(targetFolder.GetServerPath());
        }