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

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

[Monotone-commits-diffs] Revision 5e778e34bed57e0f7dcefb521b92b7fcf1187a


From: monotone
Subject: [Monotone-commits-diffs] Revision 5e778e34bed57e0f7dcefb521b92b7fcf1187a73
Date: Tue, 10 Jul 2007 22:06:39 +0200

-----------------------------------------------------------------
Revision: 5e778e34bed57e0f7dcefb521b92b7fcf1187a73
Ancestor: 48a058e71ea50fd9ff00c2550e1c518d6c33dcbb
Author: address@hidden
Date: 2007-07-10T19:35:56
Branch: net.venge.monotone

Modified files:
        cmd_netsync.cc file_io.cc key_store.cc paths.cc paths.hh
        platform.hh unix/fs.cc win32/fs.cc work.cc

ChangeLog: 

* paths.hh (any_path): Add operator / and dirname.  Add private
short-cut constructor.
(system_path, bookkeeping_path): Add private short-cut constructor.  operator/
now takes either a path_component or a char *; not a string.
* paths.cc: Implement new interfaces.
(system_path::system_path, const_system_path): Adjust path construction a bit.
(paths:bookkeeping unit test: Word wrap a bit and clarify logic.
* platform.hh (do_mkdir): New function.
* unix/fs.cc, unix/win32.cc: Implement do_mkdir.  Fix off-by-one in
make_temp_file. Handle the empty path correctly in do_read_directory.
* file_io.cc: Don't include any boost::filesystem headers.  Delete
boost::filesystem setup block at top of file.  Now using
std::logic_error not std::runtime_error.
(mkdir): Delete.
(struct fill_pc_vec): Move above first user.
(struct file_deleter): New dirent_consumer implementation.
(do_remove_recursive, safe_compose): New helper functions.
(mkdir_p, make_dir_for, delete_dir_recursive, walk_tree_recursive, walk_tree):
Rewrite in terms of new platform.hh / paths.hh APIs.
(read_directory): Remove unnecessary conversion through system_path.
* key_store.cc (key_store::read_key_dir): Remove unnecessary
conversion of path_component to string.
(get_filename): Fold into...
(key_store::get_key_name): ...here.  Simplify loop.
* cmd_netsync.cc (ws_internal_db_file_name): Make a char constant.
* work.cc (inodeprints_file_name, local_dump_file_name, options_file_name)
(user_log_file_name, revision_file_name): Make char constants.
(get_options_path): Use bookkeeping_root_component.
(path_for_detached_nid): Convert result of lexical_cast to path_component.
(editable_working_tree::detach_node, editable_working_tree::attach_node):
Remove unnecessary conversions of path_component to string.

Attachment: txts87W9awDlB.txt
Description: Diff [48a058e71ea50fd9ff00c2550e1c518d6c33dcbb] -> [5e778e34bed57e0f7dcefb521b92b7fcf1187a73]


reply via email to

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