Login | Register
My pages Projects Community openCollabNet

Discussions > users > updating single file to older revision

Project highlights: :. Download .: :. Support .: :. FAQ .: :. Translations .: :. Donate .: :. Report Bug .:

tortoisesvn
Discussion topic

Hide all messages in topic

All messages in topic

Re: updating single file to older revision

Author simonlarge
Full name Simon Large
Date 2009-01-29 02:44:29 PST
Message 2009/1/29 enomis <enomis at gmail dot com>:
> On Jan 29, 10:36 am, Simon Large <simon.tortoise..​.@googlemail.com>​
> wrote:
>
>>
>> You updated the file to an old revision, but you haven't made any
>> changes to it, so what is there to commit? And if you did change it
>> your commit would fail because you can only commit a file when
>> modifications are made against HEAD (or at least there have been no
>> repository changes between the revision you have and HEAD).
>>
>> Please read the manual page on "update to revision" as it is explained
>> there. I also suggest you read at least the basics chapter of the
>> subversion book to gain an understanding of how subversion works.
>>
>> Simon
>
> Thanx for your answer,
> you mean that if i update a single file to its older revision it's ok
> if i dont see graphical signal (green icon) that the file is not
> identical to the actual HEAD revision? You dont have a gray, or dusted
> icon to show this situation?

Correct. The TSVN displays the status that the subversion library
returns, which is that the file is 'normal'. Mixed revisions are
perfectly normal within a working copy. The fact that you have
manually backdated to an earlier revision is not stored in the working
copy data.

As you will note in the TSVN docs, we don't recommend updating
individual files to an old revision for this very reason.

Simon

--
: ___
: oo // \\ "De Chelonian Mobile"
: (_,\/ \_/ \ TortoiseSVN
: \ \_/_\_/> The coolest Interface to (Sub)Version Control
: /_/ \_\ http://tortoisesvn.net

Re: updating single file to older revision

Author enomis <enomis at gmail dot com>
Full name enomis <enomis at gmail dot com>
Date 2009-01-29 02:39:13 PST
Message On Jan 29, 10:36 am, Simon Large <simon.tortoise..​.@googlemail.com>​
wrote:

>
> You updated the file to an old revision, but you haven't made any
> changes to it, so what is there to commit? And if you did change it
> your commit would fail because you can only commit a file when
> modifications are made against HEAD (or at least there have been no
> repository changes between the revision you have and HEAD).
>
> Please read the manual page on "update to revision" as it is explained
> there. I also suggest you read at least the basics chapter of the
> subversion book to gain an understanding of how subversion works.
>
> Simon

Thanx for your answer,
you mean that if i update a single file to its older revision it's ok
if i dont see graphical signal (green icon) that the file is not
identical to the actual HEAD revision? You dont have a gray, or dusted
icon to show this situation?

Re: updating single file to older revision

Author simonlarge
Full name Simon Large
Date 2009-01-29 01:36:38 PST
Message 2009/1/29 enomis <enomis at gmail dot com>:
> Hello,
>
> here's the steps to reproduce the bug
>
> tortoise client on windows vista
>
> Update to latest revision (e. 222)
> Update a single file to an older revision (ex. 123)
> the file icon remains green
> not modifying that faile and committing it, tortoise says there's
> nothing to commit
> but my local file has 123 reivision, not 222

You updated the file to an old revision, but you haven't made any
changes to it, so what is there to commit? And if you did change it
your commit would fail because you can only commit a file when
modifications are made against HEAD (or at least there have been no
repository changes between the revision you have and HEAD).

Please read the manual page on "update to revision" as it is explained
there. I also suggest you read at least the basics chapter of the
subversion book to gain an understanding of how subversion works.

Simon

--
: ___
: oo // \\ "De Chelonian Mobile"
: (_,\/ \_/ \ TortoiseSVN
: \ \_/_\_/> The coolest Interface to (Sub)Version Control
: /_/ \_\ http://tortoisesvn.net

updating single file to older revision

Author enomis <enomis at gmail dot com>
Full name enomis <enomis at gmail dot com>
Date 2009-01-29 00:51:06 PST
Message Hello,

here's the steps to reproduce the bug

tortoise client on windows vista

Update to latest revision (e. 222)
Update a single file to an older revision (ex. 123)
the file icon remains green
not modifying that faile and committing it, tortoise says there's
nothing to commit
but my local file has 123 reivision, not 222

is this a bug or am i doing something wrong?
thanks bye :)
Messages per page: