Changeset 1329 in tailor


Ignore:
Timestamp:
03/06/07 04:28:54 (6 years ago)
Author:
John Goerzen <jgoerzen@…>
Hash name:
20070306032854-c2a52-a48f6e04d9c114e4b2bd3f935c3a8c5b35eb75f8
Message:

New _commit option isinitialcommit
This lets a target VC better detect an empty changeset because filenames
are not passed on the very first commit

Location:
vcpx
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • vcpx/repository/cvsps.py

    r1326 r1329  
    703703 
    704704    def _commit(self, date, author, patchname, changelog=None, entries=None, 
    705                 tags = []): 
     705                tags = [], isinitialcommit = False): 
    706706        """ 
    707707        Commit the changeset. 
  • vcpx/target.py

    r1326 r1329  
    389389 
    390390    def _commit(self, date, author, patchname, changelog=None, entries=None, 
    391                 tags = []): 
     391                tags = [], isinitialcommit = False): 
    392392        """ 
    393393        Commit the changeset. 
     
    546546            patchname = BOOTSTRAP_PATCHNAME 
    547547            log = BOOTSTRAP_CHANGELOG % locals() 
    548         self._commit(changeset.date, author, patchname, log) 
     548        self._commit(changeset.date, author, patchname, log, 
     549                     isinitialcommit = True) 
    549550 
    550551        if changeset.tags: 
  • vcpx/repository/svn.py

    r1326 r1329  
    520520 
    521521    def _commit(self, date, author, patchname, changelog=None, entries=None, 
    522                 tags = []): 
     522                tags = [], isinitialcommit = False): 
    523523        """ 
    524524        Commit the changeset. 
  • vcpx/repository/monotone.py

    r1326 r1329  
    753753 
    754754    def _commit(self, date, author, patchname, changelog=None, entries=None, 
    755                 tags = []): 
     755                tags = [], isinitialcommit = False): 
    756756        """ 
    757757        Commit the changeset. 
  • vcpx/repository/cdv.py

    r1326 r1329  
    6969 
    7070    def _commit(self, date, author, patchname, changelog=None, entries=None, 
    71                 tags = []): 
     71                tags = [], isinitialcommit = False): 
    7272        """ 
    7373        Commit the changeset. 
  • vcpx/repository/arx.py

    r1326 r1329  
    4040 
    4141    def _commit(self, date, author, patchname, changelog=None, entries=None, 
    42                 tags = []): 
     42                tags = [], isinitialcommit = False): 
    4343        """ 
    4444        Commit the changeset. 
  • vcpx/repository/bzr.py

    r1326 r1329  
    246246 
    247247    def _commit(self, date, author, patchname, changelog=None, entries=None, 
    248                 tags = []): 
     248                tags = [], isinitialcommit = False): 
    249249        """ 
    250250        Commit the changeset. 
  • vcpx/repository/cg.py

    r1326 r1329  
    8383 
    8484    def _commit(self, date, author, patchname, changelog=None, entries=None, 
    85                 tags = []): 
     85                tags = [], isinitialcommit = False): 
    8686        """ 
    8787        Commit the changeset. 
  • vcpx/repository/hg.py

    r1328 r1329  
    258258 
    259259    def _commit(self, date, author, patchname, changelog=None, names=[], 
    260                 tags = []): 
     260                tags = [], isinitialcommit = False): 
    261261        from calendar import timegm  # like mktime(), but returns UTC timestamp 
    262262        from os.path import exists, join, normpath 
     
    284284        opts['date'] =  '%d %d' % (timestamp, -timezone) # note the minus sign! 
    285285        notdirs = self._removeDirs(names) 
    286         if len(notdirs) == 0 and (tags is None or len(tags) == 0): 
     286        if (not isinitialcommit) and len(notdirs) == 0 and \ 
     287               (tags is None or len(tags) == 0): 
    287288            # Empty changeset; make sure we still see it 
    288289            empty = open(join(self.repository.basedir, '.hgempty'), 'a') 
  • vcpx/repository/darcs/target.py

    r1326 r1329  
    5050 
    5151    def _commit(self, date, author, patchname, changelog=None, entries=None, 
    52                 tags = []): 
     52                tags = [], isinitialcommit = False): 
    5353        """ 
    5454        Commit the changeset. 
Note: See TracChangeset for help on using the changeset viewer.