Opened 10 years ago

Closed 10 years ago

Last modified 3 years ago

#9450 closed enhancement (fixed)

Git mirror: Replace svn info for revision detection by git log+perl

Reported by: simon04 Owned by: Don-vip
Priority: minor Milestone: 14.01
Component: Core Version:
Keywords: Cc:


From by

I didn't like that revision detection (hacked long ago in was trying to access (it made building impossible when offline) and revision number was not always correct (when working with older revisions).

I replaced svn info by git log + perl.
git log looks at the most recent commit message with git-svn-id, which is then processed by perl script that produces revision number and date, which are needed in build.xml.
In case perl is not found, the build doesn't fail, values fallback to UNKNOWN, as specified in build.xml.

Attachments (0)

Change History (7)

comment:1 by Don-vip, 10 years ago

Milestone: 14.01
Owner: changed from team to Don-vip
Status: newassigned

comment:2 by Don-vip, 10 years ago

Resolution: fixed
Status: assignedclosed

In 6540/josm:

fix #9450 - Allow to build JOSM from a git mirror clone with ant -Dgit_revision=true

comment:3 by simon04, 10 years ago

In 6545/josm:

see #9450 - JOSM build from a git mirror: remove need for perl script, automatically obtain revision from Git if SVN fails (removes need for git_revision=true)

comment:4 by Don-vip, 10 years ago

Better :) Thanks !

comment:5 by simon04, 10 years ago

Finally, using a git-svn-repository is fun. :)

comment:6 by simon04, 10 years ago

In 6585/josm:

fix #9501 see #9450 - JOSM build failed with SVN

comment:7 by Stereo, 3 years ago

I was wondering what 0c6e7542-c601-0410-84e7-c038aed88b3b means, and if the stability of that string can be relied on?

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Don-vip.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.