Commit graph

75 commits

Author SHA1 Message Date
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
Adam Spiers 5a09c527b3 Fix indentation issues in NEWS 2011-11-24 16:55:53 +00:00
Adam Spiers ad28894a85 Switch NEWS and TODO to org-mode.
org-mode has been included in emacs by default for a long time and is
much more friendly than outline-mode.  No impact to non-emacs users.
2011-11-24 16:55:53 +00:00
Adam Spiers 8ce4d3be52 Stow now requires Perl 5.6.1 or newer, due to use of 'our'. 2011-11-24 16:55:53 +00:00
Adam Spiers 59b7835fd8 Troy is the maintainer now. 2011-11-24 16:55:52 +00:00
Adam Spiers d674d13a68 Fix typos 2011-11-24 16:55:52 +00:00
Adam Spiers 8de15394bb Catch warnings in tests when no outstanding operations to perform.
Tests now all pass completely cleanly.
2011-11-24 16:55:52 +00:00
Adam Spiers d74ae26f89 Fix %Options typo in several tests 2011-11-24 16:55:52 +00:00
Adam Spiers 4296500c94 Fix t/stow.t 2011-11-24 16:55:52 +00:00
Adam Spiers 8da2a43eb1 Fix chkstow.t 2011-11-24 16:55:52 +00:00
Adam Spiers 5fe30e9f1a Add #! header to t/util.pm for benefit of editor mode selection 2011-11-24 16:55:52 +00:00
Adam Spiers d6dbb932ac Fix chkstow.in for emacs users 2011-11-24 16:55:52 +00:00
Adam Spiers 8e14cb641f Support ./configure --disable-maintainer-mode
to optionally avoid auto-reconfiguring on make.
2011-11-24 16:55:52 +00:00
Adam Spiers 5d7f967ebd Run autoreconf with more recent GNU autotools. 2011-11-24 16:55:51 +00:00
Adam Spiers f5e6bfddc2 Add test target to Makefile 2011-11-24 16:55:51 +00:00