New submission from Gian Piero Carrubba <[email protected]>: 5 patches for repository http://darcs.net/screened:
patch f44cc42e15f37b942e3cf2b07b0b4ea3feda1101 Author: Gian Piero Carrubba <[email protected]> Date: Sun Jul 19 18:39:02 CEST 2026 * unhide commands `status' and `check' This is so that they can be autocompleted by the shell. The criteria are: - they are not deprecated - they are not plain aliases to conventional commands (e.g.: they include non-default options) patch b4e12a7e4f6ead93841be4de0e86a72f7fce8359 Author: Gian Piero Carrubba <[email protected]> Date: Sun Jul 19 18:49:01 CEST 2026 * add fish completion The Fish shell ships its own completion for darcs, but it doesn't use darcs' facilities for shell completion. That means changes in darcs aren't automatically reflected in the shell completion and a certain amount of maintenance is required for keeping it in sync. This version of fish completion for darcs is less featureful but also requires virtually no maintenance. patch 246efb16e99bdfda0614279f4ac8b52ae605d951 Author: Gian Piero Carrubba <[email protected]> Date: Sun Jul 19 20:52:27 CEST 2026 * always include the option/command description in the output for shell completion Modify the shell completion files in contrib/ accordingly. patch 44c93a05f59981d3e1ac15e58b6b44122acac31a Author: Gian Piero Carrubba <[email protected]> Date: Sun Jul 19 20:56:15 CEST 2026 * remove the dependency on fgl It was a leftover from before the rewrite of show dependencies included in patch 3a8e57ef9fed776f62a3538f8842b6593546e368 patch 282a9313fbc9a5be66c395235c0adfedacd62e3f Author: Gian Piero Carrubba <[email protected]> Date: Sun Jul 19 21:16:13 CEST 2026 * accept issue2742: clone --no-working-dir doesn't correctly populate pristine dir ---------- files: patch-preview.txt, unhide-commands-_status_-and-_check_.dpatch messages: 24214 nosy: gpiero status: needs-screening title: unhide commands `status' and `check' (and 4 more) __________________________________ Darcs bug tracker <[email protected]> <https://bugs.darcs.net/patch2460> __________________________________
[unhide commands `status' and `check' Gian Piero Carrubba <[email protected]>**20260719163902 Ignore-this: 51dfa8ae5f88b1dbd22f172a6985f245bc61d370ecc2ae117819fd5fdc2f6cfe3ca4e78fa8a127b0 This is so that they can be autocompleted by the shell. The criteria are: - they are not deprecated - they are not plain aliases to conventional commands (e.g.: they include non-default options) ] hunk ./src/Darcs/UI/TheCommands.hs 63 - , normalCommand whatsnew, hiddenCommand status + , normalCommand whatsnew, normalCommand status hunk ./src/Darcs/UI/TheCommands.hs 97 - , normalCommand repair, hiddenCommand check + , normalCommand repair, normalCommand check [add fish completion Gian Piero Carrubba <[email protected]>**20260719164901 Ignore-this: e77587f24ae1131da4c7c16a93dd846d28626a2a023988c2fb6f0ced616abf5092e40db9bb785757 The Fish shell ships its own completion for darcs, but it doesn't use darcs' facilities for shell completion. That means changes in darcs aren't automatically reflected in the shell completion and a certain amount of maintenance is required for keeping it in sync. This version of fish completion for darcs is less featureful but also requires virtually no maintenance. ] addfile ./contrib/darcs.fish hunk ./contrib/darcs.fish 1 +function _darcs + set -l tokens (commandline -poc) + set -l length (count $tokens) + if test $length -eq 1 + command darcs --commands | string replace -r ';' '\t' + else + switch $tokens[2] + case '-*' + echo "" + case '*' + for i in (seq 1 $length) + switch $tokens[$i] + case '-*' + set tokens $tokens[1..(math $i - 1)] "--list-options" $tokens[$i..-1] + break + end + if test $i -eq $length + set -a tokens "--list-options" + end + end + command $tokens 2>/dev/null | string replace -r ';' '\t' + end + end +end + +complete -c darcs -f +complete -c darcs -a "(_darcs)" [always include the option/command description in the output for shell completion Gian Piero Carrubba <[email protected]>**20260719185227 Ignore-this: d8b77d952a1af535c0a51e219d78b63e55306538d5c396899948287abeeac309b229407c833dd898 Modify the shell completion files in contrib/ accordingly. ] hunk ./contrib/_darcs.zsh 10 - compadd -- $(darcs --commands) + local commands=(${${(f)"$(darcs --commands)"}/;/:}) + _describe '' commands hunk ./contrib/_darcs.zsh 49 - darcs_non_options=(${darcs_arguments:#-*}) - _multi_parts -i -S ' ' / darcs_non_options + darcs_non_options=(${${${darcs_arguments:#-*}//:/\\:}/;/:}) + _describe '' darcs_non_options hunk ./contrib/darcs_completion 15 - COMPREPLY=( $( darcs --commands | command grep "^$cur" ) ) + COMPREPLY=( $(darcs --commands | command grep "^$cur" | cut -d ';' -f 1) ) hunk ./src/Darcs/UI/Commands/Help.hs 195 - putStr $ unlines $ map (commandName . fst) $ - filter (isRight.snd) $ - zip (extractCommands commandControlList) is_valid - putStrLn "--help" - putStrLn "--version" - putStrLn "--exact-version" + mapM_ putCmdLn $ filter (isRight.snd) $ + zip (extractCommands commandControlList) is_valid + putStrLn "--commands;show list of available options and commands, for auto-completion" + putStrLn "--exact-version;show darcs version number" + putStrLn "--help;show a description of the command and its options" + putStrLn "--version;show a detailed darcs version" hunk ./src/Darcs/UI/Commands/Help.hs 203 + putCmdLn (c, _) = putStrLn $ (commandName c) ++ ";" ++ (commandDescription c) hunk ./src/Darcs/UI/Options/All.hs 394 - "show plain list of available options and commands, for auto-completion" + "show list of available options and commands, for auto-completion" hunk ./src/Darcs/UI/RunCommand.hs 50 + , commandDescription hunk ./src/Darcs/UI/RunCommand.hs 231 - putStrLn "--help" - mapM_ (putStrLn . commandName) (extractCommands $ getSubcommands super) + mapM_ putCmdLn (extractCommands $ getSubcommands super) + putStrLn "--disable;disable this command" + putStrLn "--help;show a description of the command and its options" + putStrLn "--list-options;show list of available options and commands, for auto-completion" + where putCmdLn c = putStrLn $ (commandName c) ++ ";" ++ (commandDescription c) hunk ./tests/disable.sh 8 -all_commands=$(darcs --commands | grep -v -- --) +all_commands=$(darcs --commands | grep -v -- -- | cut -d ';' -f 1) hunk ./tests/uniqueoptions.sh 10 -for i in `darcs --commands | grep -v -- -- | xargs echo`; do +for i in `darcs --commands | grep -v -- -- | cut -d ';' -f 1 | xargs echo`; do [remove the dependency on fgl Gian Piero Carrubba <[email protected]>**20260719185615 Ignore-this: 6bee88f1e986ea659989a919c28ce61fc775e81d578218a6fa7e8f5d605325da13954c4932cfb4b5 It was a leftover from before the rewrite of show dependencies included in patch 3a8e57ef9fed776f62a3538f8842b6593546e368 ] hunk ./darcs.cabal 425 - fgl >= 5.5.2.3 && < 5.9, [accept issue2742: clone --no-working-dir doesn't correctly populate pristine dir Gian Piero Carrubba <[email protected]>**20260719191613 Ignore-this: 33e156d477650a818730b6d92e16a6314687b9af338af510d0ed61b52eb62f6094e7135424856671 ] addfile ./tests/failing-issue2742-clone_no-working-dir.sh hunk ./tests/failing-issue2742-clone_no-working-dir.sh 1 +#!/usr/bin/env bash +## Test for issue2742 - When invoked with --no-working-dir option, +## clone does not create all the pristin.hashed/ files + +# every test script MUST source lib +. lib + +# every test script should remove directories before creating them +rm -rf R S +darcs init R + +cd R +# change the working tree +# The issue only appears wrt the content of files, so `touch f` would succeed +echo 'Example content.' > f +darcs record -lam 'Add file f' +cd .. + +darcs clone --no-working-dir R S +R_COUNT=$(ls -1 R/_darcs/pristine.hashed | wc -l) +S_COUNT=$(ls -1 S/_darcs/pristine.hashed | wc -l) +# The number of files in _darcs/pristine.hashed should be the same +test $R_COUNT -eq $S_COUNT
unhide-commands-_status_-and-_check_.dpatch
Description: application/darcs-patch
_______________________________________________ darcs-devel mailing list [email protected] https://lists.darcs.net/mailman/listinfo/darcs-devel
