/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_out.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

20
20
 
21
21
 
22
22
import re
23
 
from .copy_base import CopyBaseWalker
 
23
from copy_base import CopyBaseWalker
24
24
import stdhome.the as the
25
25
from stdhome.file_matcher import FileMatcher
26
26
 
56
56
                # verbose reporting
57
57
                if the.verbose >= 2:
58
58
                        if op == '*': op = '<'
59
 
                        print("  %s%s%s %s" % ( src, op, dst, rel_file ))
 
59
                        print "  %s%s%s %s" % ( src, op, dst, rel_file )