You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Adrian Hoe <ma...@adrianhoe.com> on 2005/07/27 16:26:12 UTC
How to revert a commit?
Hi,
How can I revert a commit? Let say I have r26 and r27. I realized
that r27 was a mistake. How can I revert back to r26?
TIA.
--
"If you missed the rising sun and the morning dew, don't miss the
beautiful sunset." -- Adrian Hoe inspired by Michal Nowak, June 15 2004
http://adrianhoe.com
RE: How to revert a commit?
Posted by Lieven Govaerts <lg...@mobsol.be>.
Because Revision 1 indicates the state of the repository after your first
commit. If
you want to include that first commit in the repo-dump, you have to start
from the
state of the repository before the first commit, ie. r0 .
A commit brings the repository from state x ( rx ) to state x+1 ( rx+1 ). So
the number
you get at the end of the commit indicates the state your repository was
brought to
after the commit.
regards,
Lieven.
_____
From: Adrian Hoe [mailto:mailbox@adrianhoe.com]
Sent: donderdag 28 juli 2005 4:51
To: Subversion List
Subject: Re: How to revert a commit?
On Jul 28, 2005, at 9:57 AM, Branko Cibej wrote:
Adrian Hoe wrote:
On Jul 28, 2005, at 9:18 AM, Branko Čibej wrote:
svnadmin dump -r0:26 old-repo | svnadmin load --force-uuid new-repo
Why r0 and not r1? The initial import was r1.
--
"If you missed the rising sun and the morning dew, don't miss the beautiful
sunset." -- Adrian Hoe inspired by Michal Nowak, June 15 2004
HYPERLINK "http://adrianhoe.com"http://adrianhoe.com
--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.5/58 - Release Date: 25/07/2005
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.6/59 - Release Date: 27/07/2005
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: How to revert a commit?
Posted by Adrian Hoe <ma...@adrianhoe.com>.
On Jul 28, 2005, at 9:57 AM, Branko Čibej wrote:
> Adrian Hoe wrote:
>
>
>> On Jul 28, 2005, at 9:18 AM, Branko Čibej wrote:
>>
>>
>>>
>>> svnadmin dump -r0:26 old-repo | svnadmin load --force-uuid new-repo
>>>
Why r0 and not r1? The initial import was r1.
--
"If you missed the rising sun and the morning dew, don't miss the
beautiful sunset." -- Adrian Hoe inspired by Michal Nowak, June 15 2004
http://adrianhoe.com
Re: How to revert a commit?
Posted by Branko Čibej <br...@xbc.nu>.
Adrian Hoe wrote:
> On Jul 28, 2005, at 9:18 AM, Branko Čibej wrote:
>
>>
>> svnadmin dump -r0:26 old-repo | svnadmin load --force-uuid new-repo
>
>
> Can I, say, rename my-repo to old-repo by using "mv"?
Yes.
> Do I have to "svnadmin create new-repo" before issuing the above command?
Of course.
-- Brane
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: How to revert a commit?
Posted by Adrian Hoe <ma...@adrianhoe.com>.
On Jul 28, 2005, at 9:18 AM, Branko Čibej wrote:
>
> svnadmin dump -r0:26 old-repo | svnadmin load --force-uuid new-repo
Can I, say, rename my-repo to old-repo by using "mv"? Do I have to
"svnadmin create new-repo" before issuing the above command?
--
"If you missed the rising sun and the morning dew, don't miss the
beautiful sunset." -- Adrian Hoe inspired by Michal Nowak, June 15 2004
http://adrianhoe.com
Re: How to revert a commit?
Posted by Branko Čibej <br...@xbc.nu>.
Adrian Hoe wrote:
> On Jul 28, 2005, at 1:00 AM, Ben Collins-Sussman wrote:
>
>>
>> On Jul 27, 2005, at 11:26 AM, Adrian Hoe wrote:
>>
>>
>>> Hi,
>>>
>>> How can I revert a commit? Let say I have r26 and r27. I realized
>>> that r27 was a mistake. How can I revert back to r26?
>>>
>>
>> http://svnbook.red-bean.com/en/1.1/ch04s04.html#svn-ch-4-sect-4.2
>
>
>
> But svn merge will still store information of the merged revision (if
> I am correct). In my case, r27 is the last revision and is a total
> disaster/mistake that I do not wish to have. I want to completely
> remove it from the repository. But how?
svnadmin dump -r0:26 old-repo | svnadmin load --force-uuid new-repo
-- Brane
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: How to revert a commit?
Posted by Adrian Hoe <ma...@adrianhoe.com>.
On Jul 28, 2005, at 1:00 AM, Ben Collins-Sussman wrote:
>
> On Jul 27, 2005, at 11:26 AM, Adrian Hoe wrote:
>
>
>> Hi,
>>
>> How can I revert a commit? Let say I have r26 and r27. I realized
>> that r27 was a mistake. How can I revert back to r26?
>>
>
> http://svnbook.red-bean.com/en/1.1/ch04s04.html#svn-ch-4-sect-4.2
But svn merge will still store information of the merged revision (if
I am correct). In my case, r27 is the last revision and is a total
disaster/mistake that I do not wish to have. I want to completely
remove it from the repository. But how?
--
"If you missed the rising sun and the morning dew, don't miss the
beautiful sunset." -- Adrian Hoe inspired by Michal Nowak, June 15 2004
http://adrianhoe.com
Re: How to revert a commit?
Posted by Ben Collins-Sussman <su...@collab.net>.
On Jul 27, 2005, at 11:26 AM, Adrian Hoe wrote:
> Hi,
>
> How can I revert a commit? Let say I have r26 and r27. I realized
> that r27 was a mistake. How can I revert back to r26?
http://svnbook.red-bean.com/en/1.1/ch04s04.html#svn-ch-4-sect-4.2
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org