summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: acb9108)
raw | patch | inline | side by side (parent: acb9108)
author | Heiko Voigt <hvoigt@hvoigt.net> | |
Fri, 4 Dec 2009 21:26:48 +0000 (22:26 +0100) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Sat, 5 Dec 2009 21:17:51 +0000 (13:17 -0800) |
We already do the same when locally deleting a branch.
Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
lib/remote_branch_delete.tcl | patch | blob | history |
index 31e09474880c8d22122334f649cfcc126bf2c82e..241642062e7d4b8ad267f10fc6123bab52dfc744 100644 (file)
method _write_check_head {args} { set checktype head }
method _write_head_list {args} {
+ global current_branch
+
$head_m delete 0 end
foreach abr $head_list {
$head_m insert end radiobutton \
-variable @check_head
}
if {[lsearch -exact -sorted $head_list $check_head] < 0} {
- set check_head {}
+ if {[lsearch -exact -sorted $head_list $current_branch] < 0} {
+ set check_head {}
+ } else {
+ set check_head $current_branch
+ }
}
}