Changeset 298 in tailor


Ignore:
Timestamp:
05/12/05 19:08:40 (8 years ago)
Author:
lele@…
Hash name:
20050512170840-97f81-c92367fc1001dffbc08b44713fa27c34ad5a7112
Message:

Properly pass the timestamp to 'cdv commit'
Ross Cohen integrated my patch into Codeville yesterday, so this needs
his in-development sources, but hopefully the next release won't take
a long time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/cdv.py

    r291 r298  
    1616 
    1717class CdvCommit(SystemCommand): 
    18     COMMAND = "cdv -u %(user)s commit -m %(comment)s %(entries)s" 
     18    COMMAND = "cdv -u %(user)s commit -m %(comment)s -D '%(time)s' %(entries)s" 
    1919 
    2020    def __call__(self, output=None, dry_run=False, **kwargs): 
     
    2323        author = kwargs.get('author') 
    2424        kwargs['user'] = shrepr(author) 
     25        kwargs['time'] = kwargs.get('date').strftime('%Y/%m/%d %H:%M:%S UTC') 
    2526         
    2627        return SystemCommand.__call__(self, output=output, 
     
    4748        c = CdvCommit(working_dir=root) 
    4849         
    49         logmessage = "%s\nOriginal date: %s" % (remark, date) 
    5050        if changelog: 
    51             logmessage = logmessage + '\n\n' + changelog 
     51            logmessage = remark + '\n\n' + changelog 
     52        else: 
     53            logmessage = remark 
    5254             
    5355        if entries: 
     
    5658            entries = '.' 
    5759             
    58         c(author=author, logmessage=logmessage, entries=entries) 
     60        c(author=author, logmessage=logmessage, date=date, entries=entries) 
    5961         
    6062    def _removePathnames(self, root, names): 
Note: See TracChangeset for help on using the changeset viewer.