Commit 857384a
committed
Server,Session(fix[version_guard,detach_scope]): raise on unsupported -b; scope detach-client to session
why: Warn-and-skip for -b would silently change semantics to blocking, hanging
the caller indefinitely. Session.detach_client() without -s was not actually
session-scoped, making it wrong on multi-session servers.
what:
- confirm_before / command_prompt: replace warnings.warn with LibTmuxException
when tmux < 3.3; -b is not optional, dropping it hangs the command queue
- Session.detach_client(): restructure arg building so no-target uses
-s self.session_id, target_client+all_clients uses -a -t, target_client
alone uses -t
- Update docstring: no-target now says "detaches all clients in this session"
- Update tests: test_detach_client and renamed test now assert 0 clients
remain (all session clients detached) rather than before-11 parent d7d1707 commit 857384a
3 files changed
+39
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
866 | 866 | | |
867 | 867 | | |
868 | 868 | | |
869 | | - | |
870 | | - | |
871 | 869 | | |
872 | 870 | | |
873 | | - | |
874 | | - | |
875 | | - | |
876 | | - | |
877 | | - | |
878 | | - | |
879 | | - | |
880 | | - | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
881 | 875 | | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
882 | 879 | | |
883 | 880 | | |
884 | 881 | | |
| |||
953 | 950 | | |
954 | 951 | | |
955 | 952 | | |
956 | | - | |
957 | | - | |
958 | 953 | | |
959 | 954 | | |
960 | | - | |
961 | | - | |
962 | | - | |
963 | | - | |
964 | | - | |
965 | | - | |
966 | | - | |
967 | | - | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
968 | 959 | | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
969 | 963 | | |
970 | 964 | | |
971 | 965 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
272 | | - | |
273 | | - | |
| 272 | + | |
| 273 | + | |
274 | 274 | | |
275 | | - | |
276 | | - | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
277 | 278 | | |
278 | 279 | | |
279 | 280 | | |
| |||
284 | 285 | | |
285 | 286 | | |
286 | 287 | | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | 288 | | |
291 | 289 | | |
292 | 290 | | |
293 | | - | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
294 | 295 | | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
295 | 300 | | |
296 | 301 | | |
297 | 302 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
589 | | - | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
590 | 593 | | |
591 | 594 | | |
592 | 595 | | |
593 | 596 | | |
594 | 597 | | |
595 | | - | |
| 598 | + | |
596 | 599 | | |
597 | 600 | | |
598 | | - | |
| 601 | + | |
599 | 602 | | |
600 | 603 | | |
601 | 604 | | |
602 | 605 | | |
603 | | - | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
604 | 611 | | |
605 | 612 | | |
606 | 613 | | |
607 | 614 | | |
608 | 615 | | |
609 | 616 | | |
610 | 617 | | |
611 | | - | |
612 | | - | |
| 618 | + | |
613 | 619 | | |
614 | 620 | | |
615 | 621 | | |
| |||
0 commit comments