Changeset 12928 in josm for trunk/scripts


Ignore:
Timestamp:
2017-10-06T15:17:51+02:00 (7 years ago)
Author:
bastiK
Message:

see #15229 - do not copy the entire preferences list, just to set a custom server API in OAuth wizard

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/since_xxx.py

    r12789 r12928  
    66
    77Will retrieve the current revision number from the server. It runs over all
    8 modified and added .java files and replaces xxx in "@since xxx" by the revision
     8modified and added .java files and replaces xxx in "since xxx" by the revision
    99number that is to be expected for the next commit.
    1010"""
     
    2626        with open(path, 'r') as f:
    2727            filedata = f.read()
    28         filedata2 = re.sub("@since xxx", lambda _: "@since {}".format(get_revision()), filedata)
     28        filedata2 = re.sub("since xxx", lambda _: "since {}".format(get_revision()), filedata)
    2929        if filedata != filedata2:
    30             print("replacing '@since xxx' with '@since {}' in '{}'".format(get_revision(), path))
     30            print("replacing 'since xxx' with 'since {}' in '{}'".format(get_revision(), path))
    3131            with open(path, 'w') as f:
    3232                f.write(filedata2)
Note: See TracChangeset for help on using the changeset viewer.