Skip to content

Commit 3ef9727

Browse files
committed
Add deprecation warning to Commit, alias for Hold
1 parent 993fa87 commit 3ef9727

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

main.tcl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,14 @@ proc Hold {args} {
217217
}
218218
}
219219

220+
proc Commit {args} {
221+
set this [uplevel {expr {[info exists this] ? $this : "<unknown>"}}]
222+
set w "Commit was deprecated in July 2024; use Hold instead"
223+
Claim $this has warning $w with info $w
224+
225+
uplevel [list Hold {*}$args]
226+
}
227+
220228
set ::stepCount 0
221229
set ::stepTime -1
222230
source "lib/peer.tcl"

0 commit comments

Comments
 (0)