protected virtual void OnButtonSetDefaultBranchClicked(object sender, System.EventArgs e) { TreeIter it; if (!listBranches.Selection.GetSelected(out it)) { return; } Branch b = (Branch)storeBranches.GetValue(it, 0); MercurialService.SwitchToBranch(repo, b.Name); FillBranches(); }
protected override void Run(object dataItem) { MercurialService.SwitchToBranch(Repository, (string)dataItem); }