[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-commits-nodiffs] Revision 6a9f2d5183502f1c110c4209ef0cc87a5d2d
From: |
monotone |
Subject: |
[Monotone-commits-nodiffs] Revision 6a9f2d5183502f1c110c4209ef0cc87a5d2d7b4d |
Date: |
Mon, 14 Jun 2010 20:19:32 +0200 |
-----------------------------------------------------------------
Revision: 6a9f2d5183502f1c110c4209ef0cc87a5d2d7b4d
Ancestor: 475cd73855cd2fbf7d3d3771858283341bf8974c
Author: address@hidden
Date: 2010-05-15 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
monotone --db={your.database} diff
--revision=475cd73855cd2fbf7d3d3771858283341bf8974c
--revision=6a9f2d5183502f1c110c4209ef0cc87a5d2d7b4d
----------------------------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Monotone-commits-nodiffs] Revision 6a9f2d5183502f1c110c4209ef0cc87a5d2d7b4d,
monotone <=