/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: 2014-04-05 22:27:09 UTC
  • Revision ID: tim@ed.am-20140405222709-4mp50aiu184blnf1
fixed file_matcher

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
20
 
21
21
 
22
 
import filecmp, os, shutil
 
22
import re
23
23
from copy_base import CopyBaseWalker
24
24
import stdhome.the as the
25
25
 
44
44
                                                 self.generate_walk_list( the.repo.full_dir )
45
45
 
46
46
 
47
 
        def print_cp( self, rel_file, src_type, dst_type, operation = '<' ):
48
 
                if( the.verbose <= 1 ): return
49
 
                print "  %s%s%s %s" % ( dst_type, operation, src_type, rel_file )
 
47
        def print_op( self, rel_file, operation ):
 
48
                operation = re.sub( r'(.)(.)(.)', r'\3\2\1', operation )
 
49
                operation = re.sub( r'\>', r'<', operation )
 
50
                print "  %s %s" % ( operation, rel_file )