public virtual Snapshot queryMerges(Revision rev) { Snapshot sn = new Snapshot(); sn.add(rev); foreach (string parent in rev.Parents) { int id = int.Parse(parent); Revision p = _revsTbl.getRev(id); if (p != null) { _parentsTbl.load(ref p); sn.add(p); } } return(sn); }
public virtual Snapshot getBranch(string branch, ulong limit) { Snapshot sn = new Snapshot(); BranchRevisionResults query = new BranchRevisionResults(_revsTbl, _parentsTbl, branch, limit); query.ConnectionString = _connStr; foreach (Revision rev in query) { Revision fuckyouCS = rev; _parentsTbl.load(ref fuckyouCS); sn.add(fuckyouCS); } return(sn); }