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

Re: Unexpected output from "svn log"

From: Branko Čibej <brane_at_xbc.nu>
Date: 2003-11-06 06:33:01 CET

kfogel@collab.net wrote:

>Branko Čibej <brane@xbc.nu> writes:
>>Your '.' directory is probably at version 159. That's where 'svn log'
>>gets its version number, if you don't give it parameters.
>No, 'svn log' chooses a default path based on the current directory,
>but for revision it defaults to HEAD. Try it.
That's not how I read the following fragment from log-cmd.c:

  else if (opt_state->start_revision.kind == svn_opt_revision_unspecified)
      const char *target = APR_ARRAY_IDX (targets, 0, const char *);

      /* If the first target is a URL, then we default to HEAD:1.
         Otherwise, the default is BASE:1. */
      if (svn_path_is_url (target))
        opt_state->start_revision.kind = svn_opt_revision_head;
        opt_state->start_revision.kind = svn_opt_revision_base;

Defaulting to HEAD for targets in the WC would be broken, because you've
no gurantee that the path still exists in the repository.

Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Nov 6 06:33:38 2003

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.