Hello,
First of all, thanks for Subversion, that is a great tool!
I use Subversion 1.2.1 on AIX.
Here is the history of my repository:
On its root, I added a file called main.c at revision 1.
At revision 8, I created a directory called trunk (located
in the repository's root), added it for revision control,
and moved the file main.c to it.
Now, I am at revision 19, with the same layout.
My problem is that I do not have exactly the behavior I expected
from svn blame whereas svn info has it. I made a little research
That, but did not mange to find nothing.
Here is what I did:
############
# SVN INFO #
############
# Accroding to the svn book, the following "svn info"'s behavior
# seems good to me.
$ svn info svn://hades/stelink/CVS/test_repos/trunk/main.c -r7
Path: main.c
Name: main.c
URL: svn://hades/stelink/CVS/test_repos/main.c
Repository Root: svn://hades/stelink/CVS/test_repos
Repository UUID: 666decbb-6afd-0310-8dab-ab39086f6d10
Revision: 7
Node Kind: file
Last Changed Author: jnro
Last Changed Rev: 6
Last Changed Date: 2005-08-03 14:33:48 +0200 (Wed, 03 Aug 2005)
$ svn info svn://hades/stelink/CVS/test_repos/trunk/main.c_at_7
svn: File not found: revision 7, path '/trunk/main.c'
$ svn info svn://hades/stelink/CVS/test_repos/main.c -r7
svn: File not found: revision 19, path '/main.c'
$ svn info svn://hades/stelink/CVS/test_repos/main.c_at_7
Path: main.c
Name: main.c
URL: svn://hades/stelink/CVS/test_repos/main.c
Repository Root: svn://hades/stelink/CVS/test_repos
Repository UUID: 666decbb-6afd-0310-8dab-ab39086f6d10
Revision: 7
Node Kind: file
Last Changed Author: jnro
Last Changed Rev: 6
Last Changed Date: 2005-08-03 14:33:48 +0200 (Wed, 03 Aug 2005)
#############
# SVN BLAME #
#############
$ svn blame svn://hades/stelink/CVS/test_repos/trunk/main.c -r7
6 jnro #include "process_args.h"
6 jnro
1 jnro int
6 jnro main(int argc, char *argv[]) {
6 jnro process_args(argc, argv);
5 akur return 0;
1 jnro }
$ svn blame svn://hades/stelink/CVS/test_repos/trunk/main.c_at_7
svn: File not found: revision 7, path '/trunk/main.c'
$ svn blame svn://hades/stelink/CVS/test_repos/main.c -r7
svn: File not found: revision 19, path '/main.c'
$ svn blame svn://hades/stelink/CVS/test_repos/main.c_at_7
svn: File not found: revision 19, path '/main.c'
# I have a problem there: I think that by default, the later command
# should display the content of the file main.c at the revision 7
# annotating all the lines between revision 1 and 7.
# In fact, that is exactly what the following command does:
$ svn blame svn://hades/stelink/CVS/test_repos/main.c_at_7 -r1:7
6 jnro #include "process_args.h"
6 jnro
1 jnro int
6 jnro main(int argc, char *argv[]) {
6 jnro process_args(argc, argv);
5 akur return 0;
1 jnro }
# when looking at the following command output, I guess that
# svn blame svn://hades/stelink/CVS/test_repos/main.c_at_7
# is a shorthand for
# svn blame svn://hades/stelink/CVS/test_repos/main.c_at_7 -r1:HEAD
# that is not what I expected.
$ svn blame svn://hades/stelink/CVS/test_repos/main.c_at_7 -r1:15
svn: File not found: revision 15, path '/main.c'
Am I right in the SVN behavior?
If yes, this is quite strange IMHO since I ask for main.c@7, it should
not look for revisions older than revision number 7. I am not
interested into them.
If no, can you explain me a bit more please?
What are your views on this?
Regards,
Jean-Noël Rouvignac
--------------------------------------------------------------------------------
This message and any attachments (the message) are intended solely for the addressees and are confidential. If you receive this message in error, please delete it and immediately notify the sender. Any use not in accord with this purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. The Internet can not guarantee the integrity of this message. STERCI SA shall (will) not therefore be liable for the message if modified
Ce message et toutes les pièces jointes (ci-après le message) sont établis à l'intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur, merci de le détruire et d'en avertir immédiatement l'expéditeur. Toute utilisation de ce message non conforme à sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. Internet ne permettant pas d'assurer l'intégrité de ce message, STERCI SA décline(nt) toute responsabilité au titre de ce message, dans l'hypothèse où il aurait été modifié.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Aug 22 18:09:46 2005