[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Subversion checked with a M suffix

From: Stefan Sperling <stsp_at_elego.de>
Date: Mon, 22 Jun 2009 16:34:36 +0100

On Mon, Jun 22, 2009 at 07:50:13AM -0700, Sui Tam wrote:
> Hi,
>
> I have an automated script that checks out the head of a trunk every night.
> Somehow for some of the nightly checkout, the checked out version was
> Suffixed with a 'M'. i.e. instead of 3345, the number was 3345M.
>
> I cannot see the existence of such a version in the repository and actually
> This version was missing something and hence caused compilation error.
>
> Please let me know where the M version came from such that I can avoid it.

See the output of svnversion --help below.
Maybe the script uses svnversion and the working copy was somehow
modified?

Stefan

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 invoked on a directory that is not a working copy, an
  exported directory say, the program will output 'exported'.

  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
Received on 2009-06-22 17:35:46 CEST

This is an archived mail posted to the Subversion Users mailing list.