/// <summary>
 /// Add a branch to a FileInfo.
 /// </summary>
 public static FileInfo WithBranch(this FileInfo file, string branchName, string revision)
 {
     Assert.IsTrue(((Revision)revision).IsBranch);
     file.AddBranchTag(branchName, revision);
     return(file);
 }