Changeset 1603 in tailor


Ignore:
Timestamp:
06/02/08 16:45:59 (5 years ago)
Author:
lele@…
Hash name:
20080602144559-97f81-bbb277fd2961ff7984bb940a78475c8e76081df9
Message:

Document the 'overwrite-tags' for git
Also, emit a critical log indicating the possible source of the
problem, mentioning the option.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • README.rst

    r1568 r1603  
    964964  implementation misses many tags. 
    965965 
     966overwrite-tags : bool 
     967  By default the backend does *not* overwrite previous tag with a 
     968  newer by the same name, and stops with an error. This flag allows 
     969  you to force git to override preceeding tag with the same name. 
     970 
     971  *False* by default. 
     972 
    966973hg 
    967974%% 
  • vcpx/repository/git/target.py

    r1474 r1603  
    172172        args = ["tag", "-a",] 
    173173        if self.repository.overwrite_tags: 
    174                 args.append("-f") 
     174            args.append("-f") 
    175175 
    176176        # Escape the tag name for git 
     
    197197 
    198198        if c.exit_status: 
     199            if not self.repository.overwrite_tags: 
     200                self.log.critical("Couldn't set tag '%s': maybe it's a " 
     201                                  "conflict with a previous tag, and " 
     202                                  "overwrite-tags=True may help" % 
     203                                  tag_git) 
    199204            raise ChangesetApplicationFailure("%s returned status %d" % 
    200205                                              (str(c), c.exit_status)) 
Note: See TracChangeset for help on using the changeset viewer.