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

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

[Monotone-commits-diffs] Revision 6a9f2d5183502f1c110c4209ef0cc87a5d2d7b


From: monotone
Subject: [Monotone-commits-diffs] Revision 6a9f2d5183502f1c110c4209ef0cc87a5d2d7b4d
Date: Sat, 15 May 2010 19:34:05 +0200

-----------------------------------------------------------------
Revision: 6a9f2d5183502f1c110c4209ef0cc87a5d2d7b4d
Ancestor: 475cd73855cd2fbf7d3d3771858283341bf8974c
Author: address@hidden
Date: 05/15/10 19:29:28
Branch: net.venge.monotone.restrictions.implicit-includes

Modified files:
        restrictions.cc restrictions.hh unit-tests/restrictions.cc

ChangeLog: 

update restrictions code to implicitly include required parents

 * restrictions.{cc,hh} (restricted_path): add more status values to track
   implicit parent includes
   (add_parents): two new functions to add parents of selected nodes and paths
   so they are implicitly but non-recursively included; these functions add
   parents as required when they have no explicit include/exclude or upgrade
   existing include/exclude status to include_required or exclude_required
   respectively
   (map_nodes): use map's operator[] rather than insert and make_pair
   (node_restriction, path_restriction): call add_parents from constructors
   after all selected nodes have been mapped
   (node_restriction::includes): unwrap lines that fit within 80 columns; add
   checks for new restricted_path status values to handle implicit parent
   includes
   (path_restriction::includes): add checks for new restricted_path status
   values to handle implicit parent includes

 * unit-tests/restrictions.cc: update tests for new semantics of implicit parent
   includes; these tests all pass

Attachment: txtB5uADVRkJx.txt
Description: Diff [475cd73855cd2fbf7d3d3771858283341bf8974c] -> [6a9f2d5183502f1c110c4209ef0cc87a5d2d7b4d]


reply via email to

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