AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Programmieren allgemein SVN Revision als Buildnummer nutzen in Delphi
Thema durchsuchen
Ansicht
Themen-Optionen

SVN Revision als Buildnummer nutzen in Delphi

Ein Thema von Daimonion · begonnen am 27. Aug 2009 · letzter Beitrag vom 8. Mai 2013
 
generic

Registriert seit: 24. Mär 2004
Ort: bei Hannover
2.416 Beiträge
 
Delphi XE5 Professional
 
#12

AW: SVN Revision als Buildnummer nutzen in Delphi

  Alt 6. Mai 2013, 10:13
Was ich damals vergessen habe zu erwähnen:
Die Keywords und deren Versionsnummern/Revisionen beziehen sich immer nur auf die entsprechende Datei und nicht auf das "letzten Update" bzw. dessen Revisionsnummer des Checkouts.

Für letzteres kann der CLI-Befehl "svnversion" genutzt werden.
Damit erhält man die Revisionsnummer des Arbeitsverzeichnis.

@Martin:
Für die Datei das Keyword aktiveren. Das geht via SVN-Property.
In der Datei dann an die entsprechende Stelle einfach das Keyword z.B. "$Revision$" einfügen.
Beim Commit wird dieses dann automatisch ersetzt.

http://svnbook.red-bean.com/en/1.7/s....keywords.html

Bitte den Abschnitt "Where's $GlobalRev$?" beachten!


Code:
usage: svnversion [OPTIONS] [WC_PATH [TRAIL_URL]]

  Produce a compact 'version number' for the working copy path
  WC_PATH. TRAIL_URL is the trailing portion of the URL used to
  determine if WC_PATH itself is switched (detection of switches
  within WC_PATH does not rely on TRAIL_URL). The version number
  is written to standard output. For example:

    $ svnversion . /repos/svn/trunk
    4168

  The version number will be a single number if the working
  copy is single revision, unmodified, not switched and with
  an URL that matches the TRAIL_URL argument. If the working
  copy is unusual the version number will be more complex:

   4123:4168     mixed revision working copy
   4168M        modified working copy
   4123S        switched working copy
   4123P        partial working copy, from a sparse checkout
   4123:4168MS  mixed revision, modified, switched working copy

  If WC_PATH is an unversioned path, the program will output
  'Unversioned directory' or 'Unversioned file'. If WC_PATH is
  an added or copied or moved path, the program will output
  'Uncommitted local addition, copy or move'.

  If invoked without arguments WC_PATH will be the current directory.

Valid options:
  -n [--no-newline]       : do not output the trailing newline
  -c [--committed]        : last changed rather than current revisions
  -h [--help]             : display this help
  --version               : show program version information
  -q [--quiet]            : no progress (only errors) to stderr
Coding BOTT - Video Tutorials rund um das Programmieren - https://www.youtube.com/@codingbott
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 06:37 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz