Changeset 1327 in tailor


Ignore:
Timestamp:
03/05/07 23:52:25 (6 years ago)
Author:
John Goerzen <jgoerzen@…>
Hash name:
20070305225225-c2a52-f95bfa0f4baa51f74d633cab3144978c919be480
Message:

Make the Mercurial target aware of the new tags to improve intelligence of .hgempty

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/repository/hg.py

    r1326 r1327  
    284284        opts['date'] =  '%d %d' % (timestamp, -timezone) # note the minus sign! 
    285285        notdirs = self._removeDirs(names) 
    286         if len(notdirs) == 0:  # Empty changeset; make sure we still see it 
     286        if len(notdirs) == 0 and (tags is None or len(tags) == 0): 
     287            # Empty changeset; make sure we still see it 
    287288            empty = open(join(self.repository.basedir, '.hgempty'), 'a') 
    288289            empty.write("\nEmpty original changeset by %s:\n" % author) 
Note: See TracChangeset for help on using the changeset viewer.