Changeset 1634 in tailor


Ignore:
Timestamp:
06/11/08 00:09:07 (5 years ago)
Author:
lele@…
Hash name:
20080610220907-97f81-cbf41a2717375a4778edc502cc2873e88ac24632
Message:

Move additional entry info after the name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/changes.py

    r1630 r1634  
    4444 
    4545    def __str__(self): 
    46         s = self.name + '(' + self.action_kind 
     46        entry_kind = [] 
     47        if self.is_directory: 
     48            entry_kind.append('DIR') 
     49        if self.is_symlink: 
     50            entry_kind.append('SYMLINK') 
     51        if entry_kind: 
     52            kind = '[' + ','.join(entry_kind) + ']' 
     53        else: 
     54            kind = '' 
     55        s = self.name + kind + '(' + self.action_kind 
    4756        if self.action_kind == self.ADDED: 
    4857            if self.new_revision: 
     
    5867        else: 
    5968            s += '??' 
    60         if self.is_directory: 
    61             s += ', DIR' 
    62         if self.is_symlink: 
    63             s += ', SLNK' 
    6469        s += ')' 
    6570        if isinstance(s, unicode): 
Note: See TracChangeset for help on using the changeset viewer.