Commit graph

389 commits

Author SHA1 Message Date
Adam Spiers
8960a4f1fb Add another test to join_paths.t 2011-11-26 15:10:28 +00:00
Adam Spiers
7bef0fb700 Clean up coding style in tests 2011-11-26 15:10:28 +00:00
Adam Spiers
a7262a98bc Avoid use of map in void context 2011-11-26 15:10:28 +00:00
Adam Spiers
1873e4b4ef Add a comment about a relative weakness of compat mode. 2011-11-26 15:10:28 +00:00
Adam Spiers
2244539b6b Test stow/unstow with stow dir / target dir as absolute paths. 2011-11-26 15:10:28 +00:00
Adam Spiers
4d45d3e0c7 Fix more inconsistencies in coding style. 2011-11-26 15:10:27 +00:00
Adam Spiers
b8942c9f79 Fix typos 2011-11-26 15:10:27 +00:00
Adam Spiers
1f9c5bed1a Fix/remove some outdated TODOs 2011-11-26 15:10:27 +00:00
Adam Spiers
59fa7ae4a6 Add build-time dependencies on Test::More and Test::Output. 2011-11-26 15:10:27 +00:00
Adam Spiers
f93796dce3 Add MYMETA.* to .gitignore 2011-11-26 15:10:27 +00:00
Adam Spiers
0cd971d3a1 Add .dirstamp and stamp-vti to .gitignore 2011-11-26 15:10:27 +00:00
Adam Spiers
a84ba4c16d Convert man page to POD format which is easier to maintain within stow.in. 2011-11-26 15:10:27 +00:00
Adam Spiers
58625800ee Reorganise more files into subdirectories and add CPAN support via Module::Build 2011-11-26 15:10:26 +00:00
Adam Spiers
382ad5c58d Add myself (Adam) to AUTHORS and THANKS ;-) 2011-11-24 18:08:15 +00:00
Adam Spiers
dc61da22d4 Major refactoring of code into separate Stow and Stow::Util Perl modules 2011-11-24 16:56:11 +00:00
Adam Spiers
1365c4c4f1 Fix indentation in Makefile.am 2011-11-24 16:55:55 +00:00
Adam Spiers
fbe547c132 Test unstowing when target contains a real file generates a conflict. 2011-11-24 16:55:55 +00:00
Adam Spiers
6e7ed071c1 Test unstowing stuff which doesn't exist in the target tree. 2011-11-24 16:55:55 +00:00
Adam Spiers
eda2b83355 Add a missing conflict if we tried to unstow a file in compat mode. 2011-11-24 16:55:55 +00:00
Adam Spiers
a1246072dd Remove setting of verbosity from tests 2011-11-24 16:55:55 +00:00
Adam Spiers
3418cadb8e Make 'verbose' option default to 0 in testmode. 2011-11-24 16:55:55 +00:00
Adam Spiers
80826b96e2 Add protection against stowing into stow dirs 2011-11-24 16:55:55 +00:00
Adam Spiers
89b7de8c04 Debug stow dir in stow/unstow contents routines 2011-11-24 16:55:55 +00:00
Adam Spiers
c26e62de43 Trace individual cases separately when skipping stow dirs during unstow. 2011-11-24 16:55:55 +00:00
Adam Spiers
5db0c0bbf7 Allow TEST_VERBOSE to control level of verbosity.
Defaults to 3.  'verbose' option now has precedence if set.
2011-11-24 16:55:55 +00:00
Adam Spiers
fdca9bd57a Debug when skipping over stow directories 2011-11-24 16:55:55 +00:00
Adam Spiers
b5c49db524 Add debug when target to be unstowed doesn't exist 2011-11-24 16:55:55 +00:00
Adam Spiers
0592daf3ef Add comments justifying is_a_node($target) check in unstow_contents(). 2011-11-24 16:55:54 +00:00
Adam Spiers
9012dd8aa8 Test unstowing an already unstowed package 2011-11-24 16:55:54 +00:00
Adam Spiers
bcddf67d73 Fix incorrect comments. 2011-11-24 16:55:54 +00:00
Adam Spiers
28dbad2933 Sync t/unstow_contents{,_orig}.t 2011-11-24 16:55:54 +00:00
Adam Spiers
c26236d93c Debug with maximum verbosity to STDOUT when running tests. 2011-11-24 16:55:54 +00:00
Adam Spiers
497f272c12 Refactored reset_state() into t/util.pm 2011-11-24 16:55:54 +00:00
Adam Spiers
aefaad37a4 Refactored is_a_{link,dir,node}() code. 2011-11-24 16:55:54 +00:00
Adam Spiers
7167eeb903 Improve tree splitting comments. 2011-11-24 16:55:54 +00:00
Adam Spiers
1d3f45580b Don't tolerate '' as value for $target parameter to (un)stow_contents 2011-11-24 16:55:54 +00:00
Adam Spiers
063331c34d Add debug tracing to helper routines 2011-11-24 16:55:54 +00:00
Adam Spiers
422a748724 Fix Parameters comments. 2011-11-24 16:55:54 +00:00
Adam Spiers
c23e314848 Improve debug output 2011-11-24 16:55:54 +00:00
Adam Spiers
da7255528e Clarify meaning of `--defer' in the manual. 2011-11-24 16:55:54 +00:00
Adam Spiers
cb86578b87 Finish "Deferred Operation" section in manual. 2011-11-24 16:55:54 +00:00
Adam Spiers
85f1f8619c Fix inconsistencies in coding style. 2011-11-24 16:55:53 +00:00
Adam Spiers
6ee8747c9b Set cperl-indent-level to 4 2011-11-24 16:55:53 +00:00
Adam Spiers
ba3c052c1f Simplify GetOptions() code 2011-11-24 16:55:53 +00:00
Adam Spiers
ca49579fa1 Refactor verbosity-controlled output to STDERR into debug() subroutine. 2011-11-24 16:55:53 +00:00
Adam Spiers
8da4e15fbf Fix broken 'make install' due to man page being duplicated in install-man8 target 2011-11-24 16:55:53 +00:00
Adam Spiers
090519496c Stow directory now defaults to STOW_DIR environment variable if set. 2011-11-24 16:55:53 +00:00
Adam Spiers
801446a5eb Use File::Spec->abs2rel() instead of home-grown relative_path
which actually gets some inputs wrong (e.g. "/" relative to "/")
2011-11-24 16:55:53 +00:00
Adam Spiers
8b5a0f5aa3 Add a bunch of stuff to the TODO 2011-11-24 16:55:53 +00:00
Adam Spiers
010877255a Add FIXME for Deferred Operation section in manual. 2011-11-24 16:55:53 +00:00