monotone-commits-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-commits-diffs] Revision 79d2cfea9c9543e23c9f2e94cf0cbf6767f547


From: monotone
Subject: [Monotone-commits-diffs] Revision 79d2cfea9c9543e23c9f2e94cf0cbf6767f54702
Date: Sat, 23 Apr 2005 11:10:21 UT

-----------------------------------------------------------------
Revision: 79d2cfea9c9543e23c9f2e94cf0cbf6767f54702
Ancestor: 89984000c0e244738625a7d8099b1cc401edb36e
Author: address@hidden
Date: 2005-04-23T09:58:57
Branch: net.venge.monotone.command-specific-options

Added files:
        options.hh
Modified files:
        ChangeLog commands.cc commands.hh monotone.cc
        tests/t_automate_heads.at tests/t_sticky_branch.at
        tests/t_update_missing.at

ChangeLog: 

2005-04-23  Richard Levitte  <address@hidden>

        * monotone.cc, options.hh: Move the option numbers to options.hh,
        so they can be easily retrieved by other modules.
        * monotone.cc: split the options table in global options and
        command specific options.  The former are always understood, while
        the latter are only understood by the commands that declare it
        (see below).
        (my_poptStuffArgFile): There's no need to keep a copy of the
        stuffed argv.  This was really never a problem.
        (coption_string): New function to find the option string from an
        option number.
        (cpp_main): Keep track of which command-specific options were
        given, and check that the given command really uses them.  Make
        sure that when the help is written, only the appropriate command-
        specific options are shown.  We do this by hacking the command-
        specific options table.
        Throw away sub_argvs, as it's not needed any more (and realy never
        was).

        * commands.cc: Include options.hh to get the option numbers.
        (commands_ops): New structure to hold the option
        numbers used by a command.
        (commands): Use it.
        (command_options): Function to get the set of command-specific
        options for a specific command.
        (CMD): Changed to take a new parameter describing which command-
        specific options this command takes.  Note that for commands that
        do not take command-specific options, this new parameter must
        still be given, just left empty.
        Update all commands with this new parameter.
        * commands.hh: Declare command_options.

        * tests/t_automate_heads.at: 'automate heads' never used the value
        of --branch.
        * tests/t_sticky_branch.at: and neither did 'log'...
        * tests/t_update_missing.at: nor did 'add'...


Attachment: txtozzacFrOTS.txt
Description: Diff [89984000c0e244738625a7d8099b1cc401edb36e] -> [79d2cfea9c9543e23c9f2e94cf0cbf6767f54702]


reply via email to

[Prev in Thread] Current Thread [Next in Thread]