Changeset 1163 in tailor for vcpx/git.py


Ignore:
Timestamp:
06/13/06 02:18:14 (7 years ago)
Author:
lele@…
Hash name:
20060613001814-97f81-ff228ae22d7af019cda76bacfd4d86521ed20935
Message:

M-x whitespace-cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/git.py

    r1162 r1163  
    126126            entries.append(e) 
    127127 
    128         # Brute-force tag search 
    129         from os.path import join, isdir 
    130         from os import listdir 
    131  
    132         tags = [] 
    133         tagdir = join(self.basedir, '.git', 'refs', 'tags') 
    134         try: 
     128        # Brute-force tag search 
     129        from os.path import join 
     130        from os import listdir 
     131 
     132        tags = [] 
     133        tagdir = join(self.basedir, '.git', 'refs', 'tags') 
     134        try: 
    135135            for tag in listdir(tagdir): 
    136136                # Consider caching stat info per tailor run 
     
    138138                if (tagrev == revision): 
    139139                    tags.append(tag) 
    140         except OSError: 
    141             # No tag dir 
    142             pass 
     140        except OSError: 
     141            # No tag dir 
     142            pass 
    143143 
    144144        return Changeset(revision, date, user, message, entries, tags=tags) 
     
    238238        (out, _) = c.execute(stdout=PIPE, env=env, input=logmessage) 
    239239        if c.exit_status: 
    240             failed = True 
    241             if out: 
    242                 for line in [x.strip() for x in out if x[0] != '#']: 
    243                     if line == 'nothing to commit': 
    244                         failed = False 
    245             if failed: 
     240            failed = True 
     241            if out: 
     242                for line in [x.strip() for x in out if x[0] != '#']: 
     243                    if line == 'nothing to commit': 
     244                        failed = False 
     245            if failed: 
    246246                raise ChangesetApplicationFailure("%s returned status %d" % 
    247247                                                  (str(c), c.exit_status)) 
Note: See TracChangeset for help on using the changeset viewer.