/stdhome

To get this branch, use:
bzr branch http://bzr.ed.am/stdhome

« back to all changes in this revision

Viewing changes to lib/stdhome/walker/copy_in.py

  • Committer: Tim Marston
  • Date: 2016-05-22 16:45:54 UTC
  • Revision ID: tim@ed.am-20160522164554-n5qhuibvnv0z4tk1
added general reporting to CopyBase and configured it via copy-in and copy-out
walkers (it is required in copy in, during add command); added -R (recursive)
flass to add command; allow vcs backends to augment statically ignored files
list; added detection of out of date working copy to bzr backend;
generate_walk_list() now takes a mandatory directory as the first argument;
don't copy entire subtree during copy of missing directory (as this makes
assumptions about what's in the walk-list)

Show diffs side-by-side

added added

removed removed

19
19
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
20
 
21
21
 
22
 
from .copy_base import CopyBaseWalker
 
22
from copy_base import CopyBaseWalker
23
23
import stdhome.the as the
24
24
from stdhome.file_matcher import FileMatcher
25
25
 
50
50
                # verbose reporting
51
51
                if the.verbose >= 2:
52
52
                        if op == '*': op = '>'
53
 
                        print("  %s%s%s %s" % ( src, op, dst, rel_file ))
 
53
                        print "  %s%s%s %s" % ( src, op, dst, rel_file )