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

30
30
        def __init__( self ):
31
31
                self.symlinks = None
32
32
                self.ignores = None
 
33
                self.default_vcs = 'bzr'
33
34
                self.read_config( the.config_file )
34
35
 
35
 
 
36
36
        def read_config( self, config_file ):
37
37
 
38
38
                # read file
79
79
                # use config
80
80
                if 'stdhome.home-dir' in config:
81
81
                        the.home_dir = config[ 'stdhome.home-dir' ]
 
82
                if 'stdhome.default-vcs' in config:
 
83
                        self.default_vcs = config[ 'stdhome.default-vcs' ]
82
84
 
83
85
                # read file matcher lists
84
86
                self.symlinks = FileMatcher( config_file, 'symlink' )