36
36
Walker destination: home dir
37
37
Walker traversing: repo (or a provided file list, which may include stuff
38
38
that no longer exists in the repo
42
def __init__( self, walk_files = None ):
41
def __init__( self, walk_files = None, report = True ):
42
CopyBaseWalker.__init__( self )
43
43
self.src_dir = the.repo.full_dir
44
44
self.dst_dir = the.full_home_dir
45
45
self.walk_list = walk_files if walk_files is not None else \
46
46
self.generate_walk_list( the.repo.full_dir )
48
self.accept_list = FileMatcher( the.config_file, 'symlink' )
51
def print_op( self, rel_file, operation ):
52
operation = re.sub( r'(.)(.)(.)', r'\3\2\1', operation )
53
operation = re.sub( r'\>', r'<', operation )
54
print " %s %s" % ( operation, rel_file )
47
self.check_dst_symlinks = True
48
self.check_dst_ignores = True
52
def print_op( self, rel_file, src, op, dst ):
54
CopyBaseWalker.print_op( self, rel_file, src, op, dst )
58
if op == '*': op = '<'
59
print(" %s%s%s %s" % ( src, op, dst, rel_file ))