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

Re: svnversion on a file

From: David Glasser <glasser_at_mit.edu>
Date: 2006-08-05 03:56:35 CEST

On 8/4/06, Daniel Rall <dlr@collab.net> wrote:
> It's clearly wrong for 'svnversion' to say that your versioned "beep"
> file isn't versioned. A quick fix would be to check to see whether
> 'svnversion' was passed a file argument on the command-line for
> WC_PATH, and use its parent instead for that case.

Hmm. To me, that sounds even more confusing -- which your patch,
svnversion can tell you that a single file has at mixed revisions.
How about the following:

[[[
Fix 'svnversion' from claiming that versioned files are not versioned.

* subversion/svnversion/main.c
  (main): Check if parent dir is versioned (but still report version of
   file itself) if a file argument is passed on the command-line for WC_PATH.

* subversion/tests/cmdline/svnversion_tests.py
  (svnversion_test): Add tests for svnversion on a file.

Patch by: dlr
          David Glasser <glasser@mit.edu>
]]]

-- 
David Glasser | glasser_at_mit.edu | http://www.davidglasser.net/


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Sat Aug 5 03:57:00 2006

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.