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

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

[Monotone-commits-diffs] Revision 99c47b37f94873f2a9f579ead74c7ecfc7705c


From: monotone
Subject: [Monotone-commits-diffs] Revision 99c47b37f94873f2a9f579ead74c7ecfc7705c9d
Date: Tue, 22 Jan 2008 23:06:04 +0100

-----------------------------------------------------------------
Revision: 99c47b37f94873f2a9f579ead74c7ecfc7705c9d
Ancestor: 7204fe1f0dea80dfb18db56c794ba3991b9e9fbc
Author: address@hidden
Date: 2008-01-22T17:33:46
Branch: net.venge.monotone.experiment.encapsulation

Modified files:
        README.encapsulation asciik.cc automate.cc cmd.hh cmd_db.cc
        cmd_diff_log.cc cmd_files.cc cmd_key_cert.cc cmd_list.cc
        cmd_merging.cc cmd_netsync.cc cmd_ws_commit.cc commands.cc
        database.cc database.hh selectors.cc selectors.hh

ChangeLog: 

 * database.cc (database::complete): Kill the overload that takes selectors.
   (selector_to_certname): Delete this too.
   (database::hook_exists, database::hook_expand_selector)
   (database::hook_expand_date): And these.
   (database::select_parent, database::select_cert, database::select_date)
   (database::select_author_tag_or_branch): New methods.
 * database.hh: Update to match.  No need to include selectors.hh.
 * commands.cc: Move complete() overloads to selectors.cc.

 * selectors.cc: Include app_state.hh, globish.hh, cmd.hh, and <algorithm>.
   Kill the "selectors" namespace.  Declare selector_type here, and a
   convenience typedef selector_list.
   (decode_selector): Takes an app_state again.  Don't use database kluge
   wrappers.  Do the defaults for b: and h: here, and more of the
   preprocessing for d:
   (complete_one_selector): New function.
   (complete_selector): Use it.  Iterate over selector list here rather than
   making the database do it.
   (expand_selector, diagnose_ambiguous_expansion): New functions.
   (complete overloads): Remove the final "must_exist" argument and adjust to
   new APIs.
 * selectors.hh: Include vocab.hh; not vector.hh or <algorithm>.
   Declare expand_selector, diagnose_ambiguous_expansion, the complete
   overloads in selectors.cc, and nothing else.

 * cmd.hh: Include selectors.hh; don't declare complete().
 * cmd_db.cc, cmd_diff_log.cc, cmd_files.cc, cmd_key_cert.cc, cmd_list.cc
 * cmd_merging.cc, cmd_netsync.cc, cmd_ws_commit.cc: Update to match
   complete() changes.  In one case use expand_selector() instead.

 * asciik.cc: Use complete() instead of the lower-level selectors interface.
 * automate.cc: Use expand_selector() instead of ditto.
 * README.encapsulation: update.

Attachment: txt4KtYDbRUoV.txt
Description: Diff [7204fe1f0dea80dfb18db56c794ba3991b9e9fbc] -> [99c47b37f94873f2a9f579ead74c7ecfc7705c9d]


reply via email to

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