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

[TSVN] RE : [TSVN] Possible bug: with switched file

From: Jean-Noël Rouvignac <Jean-Noel.Rouvignac_at_sterci.com>
Date: 2005-08-09 10:59:06 CEST

Hello,

I changed the quoting text from your answer.

> SteveKing wrote:
>
> > It works fine. Now accessing to the same directory and file with
> > samba, I go to the directory directory/, right-click on
> file.txt and
> > choose "TortoiseSVN > Show log". I obtain an error window with the
> > folowing message: "File not found: revision 8, path
> '/process_args.c'"
> >
> > I am not sure, but it may be because TSVN does not look at the file
> > from the URL found with svn info (that can also be viewed
> via the file
> > properties in the Subversion tab) I think this is a bug.
>
> No, TSVN just fetches the log always starting from HEAD, while the CL
> client starts fetching it from WC. But as you may see if you
> browse the
> Subversion mailing list, fetching from WC confuses people a lot.
>
> If you want to get a log from a file which doesn't exist anymore in
> HEAD, you have to use the repobrowser, go back to that revision and
> choose "show log" from there.
>

OK I understand better why this is not the same behaviour.
I understand also why these commands does not produce the same results
(http://svnbook.red-bean.com/en/1.1/svn-book.html#svn-ch-7-sect-2b):
$ svn switch svn://my_server/src/my_repo/file1 file1 -r 1
At revision 1.
$ svn switch svn://my_server/src/my_repo/file1_at_1 file1
D file1
Updated to revision 2.

That is really weird and sound strange!

Anyway if you are interested, I reproduced the exact procedure which works fine for me.
See below.

> When I do an 'svn switch' with that file, I get an error that
> 'file.txt
> is not under version control'.
>

I forgot to mention the file was already versioned.
Try to follow the steps below starting from a fresh repository:

$ pwd
/src/my_wc/
$ svn checkout svn://my_server/src/my_repo .
Checked out revision 0.
$
$ echo This is the file one > file1
$ echo This is the file two > file2
$ cat file1
This is the file one
$ cat file2
This is the file two
$ mkdir dir
$ ls
dir file1 file2
$ svn add *
A dir
A file1
A file2
$ svn commit -m ""
Adding dir
Adding file1
Adding file2
Transmitting file data ..
Committed revision 1.
$
$
$
$ svn move file1 dir
A dir/file1
D file1
$ svn move file2 dir
A dir/file2
D file2
$ ls
dir
$ svn commit -m ""
Adding dir/file1
Adding dir/file2
Deleting file1
Deleting file2

Committed revision 2.
$
$
$
$ cd dir
$ pwd
/src/my_wc/dir
$ ls
file1 file2
$ svn log file1
s------------------------------------------------------------------------
r2 | (no author) | 2005-08-09 10:52:53 +0200 (Tue, 09 Aug 2005) | 1 line

------------------------------------------------------------------------
r1 | (no author) | 2005-08-09 10:52:30 +0200 (Tue, 09 Aug 2005) | 1 line

------------------------------------------------------------------------
$ vn log file2
------------------------------------------------------------------------
r2 | (no author) | 2005-08-09 10:52:53 +0200 (Tue, 09 Aug 2005) | 1 line

------------------------------------------------------------------------
r1 | (no author) | 2005-08-09 10:52:30 +0200 (Tue, 09 Aug 2005) | 1 line

------------------------------------------------------------------------
$ svn info file1
Path: file1
Name: file1
URL: svn://my_server/src/my_repo/dir/file1
Revision: 2
Node Kind: file
Schedule: normal
Last Changed Rev: 2
Last Changed Date: 2005-08-09 10:52:53 +0200 (Tue, 09 Aug 2005)
Text Last Updated: 2005-08-09 10:52:38 +0200 (Tue, 09 Aug 2005)
Checksum: 49d974929cc86679c0f33874ea944c54

$
$
$
$ svn switch svn://my_server/src/my_repo/file1 file1 -r 1
At revision 1.
$ svn log file 1
svn: When specifying working copy paths, only one target may be given
$ svn log file1
------------------------------------------------------------------------
r1 | (no author) | 2005-08-09 10:52:30 +0200 (Tue, 09 Aug 2005) | 1 line

------------------------------------------------------------------------
$ svn log file2
------------------------------------------------------------------------
r2 | (no author) | 2005-08-09 10:52:53 +0200 (Tue, 09 Aug 2005) | 1 line

------------------------------------------------------------------------
r1 | (no author) | 2005-08-09 10:52:30 +0200 (Tue, 09 Aug 2005) | 1 line

------------------------------------------------------------------------
$ svn info file1
Path: file1
Name: file1
URL: svn://my_server/src/my_repo/file1
Repository UUID: 841c976a-53bd-6846-b083-3a33ec572f96
Revision: 1
Node Kind: file
Schedule: normal
Last Changed Rev: 1
Last Changed Date: 2005-08-09 10:52:30 +0200 (Tue, 09 Aug 2005)
Text Last Updated: 2005-08-09 10:52:38 +0200 (Tue, 09 Aug 2005)
Properties Last Updated: 2005-08-09 10:53:55 +0200 (Tue, 09 Aug 2005)
Checksum: 49d974929cc86679c0f33874ea944c54

$
$

Then, using TSVN on the same file "file1" (via samba) displays this message:
"File not found: revision 8, path '/process_args.c'"

That's all.
Thanks,

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: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Tue Aug 9 11:29:45 2005

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