/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:46:42 UTC
  • Revision ID: tim@ed.am-20140418144642-kr3vmc8fgnxgkbza
implemented symlink substitution and ignore list in status walker (and added
some verbose messages)

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
 
99
99
 
100
100
        @staticmethod
101
 
        def generate_walk_list( rel_file = '', full_dir = the.repo.full_dir ):
 
101
        def generate_walk_list( full_dir, rel_file = '' ):
102
102
                """Returns a list of files and directories in full_dir, specified as relative
103
103
                files (relative to full_dir), breadth first.
104
104
                """
118
118
                        ret = [ rel_file ] if rel_file != '' else []
119
119
                        for file in os.listdir( full_file ):
120
120
                                ret.extend( Walker.generate_walk_list(
121
 
                                        os.path.join( rel_file, file ), full_dir ) )
 
121
                                        full_dir, os.path.join( rel_file, file ) ) )
122
122
                        return sorted( ret )
123
123
 
124
124
                # other kinds are invalid