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

  • Committer: Tim Marston
  • Date: 2016-02-16 00:26:53 UTC
  • Revision ID: tim@ed.am-20160216002653-oa8dgponknyislg3
added home directory change reporting to CopyOutWalker; added --quiet option to
update, resolve, revert and init commands; replace use of re.match with
re.search for clarity (and fixed related bug in FileMatcher); added BzrVcs.run
command output when verbose >= 2

Show diffs side-by-side

added added

removed removed

29
29
        """
30
30
 
31
31
        @staticmethod
32
 
        def expand_files( files, recurse = True ):
 
32
        def expand_files( files ):
33
33
                """Returns a unique, sorted list of relative files, calculated from the list
34
34
                provided, which is made up from individual files and directories
35
35
                relative to the CWD (and which must be contained within the home
36
36
                directory, although the files need not actually exist in the home
37
 
                directory).  All files must exist in the repository.  Directories are
38
 
                recursed in to as required.
39
 
 
 
37
                directory).  All files must exist in the repository.  Any directories
 
38
                are recursed in to so that their content is also returned.
40
39
                """
41
40
 
42
 
                ret = set()
 
41
                ret = list()
43
42
                home_dir_prefix = os.path.realpath( the.full_home_dir ) + os.sep
44
43
 
45
44
                # iterate through file list
63
62
                                        'not managed by stdhome: %s' % rel_file )
64
63
 
65
64
                        # append the file or directory tree
66
 
                        ret.update( Walker.generate_walk_list(
67
 
                                the.repo.full_dir, rel_file, recurse ) )
 
65
                        ret.extend( Walker.generate_walk_list( rel_file ) )
68
66
 
69
67
                return sorted( set ( ret ) )