/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/walker.py

  • Committer: Tim Marston
  • Date: 2014-04-18 14:52:41 UTC
  • Revision ID: tim@ed.am-20140418145241-gldwc2ey6d2gjv96
defaulted Walker.generate_walk_list() to act on the.repo.full_dir

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
 
22
22
import os
23
 
import stdhome.the as the
24
23
 
25
24
 
26
25
class Walker:
99
98
 
100
99
 
101
100
        @staticmethod
102
 
        def generate_walk_list( rel_file = '', full_dir = None ):
 
101
        def generate_walk_list( rel_file = '', full_dir = the.repo.full_dir ):
103
102
                """Returns a list of files and directories in full_dir, specified as relative
104
103
                files (relative to full_dir), breadth first.
105
104
                """
106
105
 
107
 
                # default place to walk
108
 
                if full_dir is None: full_dir = the.repo.full_dir
109
 
 
110
106
                # ignore some files
111
107
                if rel_file in { '.bzr', '.bzrignore', '.stdhome', '.stdhomerc' }:
112
108
                        return list()