Changeset 1326 in tailor


Ignore:
Timestamp:
03/05/07 23:14:37 (6 years ago)
Author:
John Goerzen <jgoerzen@…>
Hash name:
20070305221437-c2a52-88150f4d16b62ec14b6be49b4b0b23b3b659e35b
Message:

Add new parameter tags to _commit
This was necessary so that the committing process could tell the difference
between an empty changeset and a changeset that only added a tag

Location:
vcpx
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • vcpx/repository/cvsps.py

    r1301 r1326  
    702702 
    703703 
    704     def _commit(self, date, author, patchname, changelog=None, entries=None): 
     704    def _commit(self, date, author, patchname, changelog=None, entries=None, 
     705                tags = []): 
    705706        """ 
    706707        Commit the changeset. 
  • vcpx/target.py

    r1229 r1326  
    124124        try: 
    125125            self._commit(changeset.date, changeset.author, patchname, log, 
    126                          entries) 
     126                         entries, tags = changeset.tags) 
    127127            if changeset.tags: 
    128128                for tag in changeset.tags: 
     
    388388                                    for df in subdirs + files]) 
    389389 
    390     def _commit(self, date, author, patchname, changelog=None, entries=None): 
     390    def _commit(self, date, author, patchname, changelog=None, entries=None, 
     391                tags = []): 
    391392        """ 
    392393        Commit the changeset. 
  • vcpx/repository/svn.py

    r1315 r1326  
    519519        ExternalCommand(cwd=self.repository.basedir, command=cmd).execute(names) 
    520520 
    521     def _commit(self, date, author, patchname, changelog=None, entries=None): 
     521    def _commit(self, date, author, patchname, changelog=None, entries=None, 
     522                tags = []): 
    522523        """ 
    523524        Commit the changeset. 
  • vcpx/repository/monotone.py

    r1316 r1326  
    752752                                              (str(add),add.exit_status)) 
    753753 
    754     def _commit(self, date, author, patchname, changelog=None, entries=None): 
     754    def _commit(self, date, author, patchname, changelog=None, entries=None, 
     755                tags = []): 
    755756        """ 
    756757        Commit the changeset. 
  • vcpx/repository/cdv.py

    r1216 r1326  
    6868        ExternalCommand(cwd=self.repository.basedir, command=cmd).execute(names) 
    6969 
    70     def _commit(self, date, author, patchname, changelog=None, entries=None): 
     70    def _commit(self, date, author, patchname, changelog=None, entries=None, 
     71                tags = []): 
    7172        """ 
    7273        Commit the changeset. 
  • vcpx/repository/arx.py

    r1209 r1326  
    3939        ExternalCommand(cwd=self.repository.basedir, command=cmd).execute(names) 
    4040 
    41     def _commit(self, date, author, patchname, changelog=None, entries=None): 
     41    def _commit(self, date, author, patchname, changelog=None, entries=None, 
     42                tags = []): 
    4243        """ 
    4344        Commit the changeset. 
  • vcpx/repository/bzr.py

    r1282 r1326  
    245245            self._addPathnames(f) 
    246246 
    247     def _commit(self, date, author, patchname, changelog=None, entries=None): 
     247    def _commit(self, date, author, patchname, changelog=None, entries=None, 
     248                tags = []): 
    248249        """ 
    249250        Commit the changeset. 
  • vcpx/repository/cg.py

    r1216 r1326  
    8282        return (name, email) 
    8383 
    84     def _commit(self, date, author, patchname, changelog=None, entries=None): 
     84    def _commit(self, date, author, patchname, changelog=None, entries=None, 
     85                tags = []): 
    8586        """ 
    8687        Commit the changeset. 
  • vcpx/repository/hg.py

    r1325 r1326  
    257257            self._hg.add(notdirs) 
    258258 
    259     def _commit(self, date, author, patchname, changelog=None, names=[]): 
     259    def _commit(self, date, author, patchname, changelog=None, names=[], 
     260                tags = []): 
    260261        from calendar import timegm  # like mktime(), but returns UTC timestamp 
    261262        from os.path import exists, join, normpath 
  • vcpx/repository/darcs/target.py

    r1244 r1326  
    4949        ExternalCommand(cwd=self.repository.basedir, command=cmd).execute(subdir) 
    5050 
    51     def _commit(self, date, author, patchname, changelog=None, entries=None): 
     51    def _commit(self, date, author, patchname, changelog=None, entries=None, 
     52                tags = []): 
    5253        """ 
    5354        Commit the changeset. 
Note: See TracChangeset for help on using the changeset viewer.