Changeset 1399 in tailor


Ignore:
Timestamp:
06/18/07 18:47:36 (6 years ago)
Author:
henry@…
Hash name:
20070618164736-2a76a-0d3833d8c66db35b9656bb6e7c89564ac4697c3a
Message:

[Tailor] patch-name-format empty was not working

Changeset [1359] has not fixed it.
Please don't add the revision number, if the user wand to leave empty it.

Examples for no patchname:

patch-name-format =
patch-name-format = ""

The empty string "" is more understandable as a blank space after the '='.

This example is more for internal interestings, it set default patchname:

patch-name-format = None

All other values, set user specifics.

Tested for Monotone and Subversion. All others have similar code style,
so that should work in all repositories.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • vcpx/tailor.py

    r1363 r1399  
    136136        pname_format = pconfig('patch-name-format', raw=True) 
    137137        if pname_format is not None: 
    138             SynchronizableTargetWorkingDir.PATCH_NAME_FORMAT = pname_format.strip() or '%(revision)s' 
     138            SynchronizableTargetWorkingDir.PATCH_NAME_FORMAT = pname_format.strip() 
    139139        SynchronizableTargetWorkingDir.REMOVE_FIRST_LOG_LINE = pconfig('remove-first-log-line') 
    140140        Changeset.REFILL_MESSAGE = pconfig('refill-changelogs') 
  • README

    r1398 r1399  
    518518 
    519519    [project] 
    520     patch-name-format = 
     520    patch-name-format = "" 
    521521 
    522522  tailor will keep the original changelog as is. 
Note: See TracChangeset for help on using the changeset viewer.