Changeset 179


Ignore:
Timestamp:
14-04-07 22:27:14 (6 years ago)
Author:
thomas
Message:
  • moap/command/cl.py (Prepare.do): Don't use ctags on files that got deleted.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r177 r179  
     12007-04-14  Thomas Vander Stichele  <thomas at apestaart dot org> 
     2 
     3        * moap/command/cl.py (Prepare.do): 
     4          Don't use ctags on files that got deleted. 
     5 
    162007-04-14  Thomas Vander Stichele  <thomas at apestaart dot org> 
    27 
  • trunk/moap/command/cl.py

    r170 r179  
    217217        files.sort() 
    218218 
     219        # run ctags only on files that aren't deleted 
     220        ctagsFiles = files[:] 
     221        for f in files: 
     222            if not os.path.exists(f): 
     223                ctagsFiles.remove(f) 
     224 
    219225        # get the tags for all the files we're looking at 
    220226        ct = ctags.CTags() 
     
    230236        else: 
    231237            self.stdout.write('Extracting affected tags from source.\n') 
    232             command = "%s -u --fields=+nlS -f - %s" % (binary, " ".join(files)) 
     238            command = "%s -u --fields=+nlS -f - %s" % ( 
     239                binary, " ".join(ctagsFiles)) 
    233240            self.debug('Running command %s' % command) 
    234241            output = commands.getoutput(command) 
Note: See TracChangeset for help on using the changeset viewer.