You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Steven Woody <na...@gmail.com> on 2008/11/12 23:55:02 UTC
after checked out an old revision...
the head is 100, and i checked out an old revision, say 95, and
finished many changes on the working copy. now, if i want to commit my
working copy as revision 101 and do not take care anything from r95 to
r100, what should i do?
thanks in advance.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: after checked out an old revision...
Posted by Steven Woody <na...@gmail.com>.
On Fri, Nov 14, 2008 at 3:57 PM, Lorenz <lo...@yahoo.com> wrote:
> Steven Woody wrote:
>>[...]
>>I am not clear with method, can you show me a detail instruction on
>>what command should I run in what step? Thanks a lot.
>
> ok, let say your wc is checked out from <repo url>/<path>@95,
> and HEAD = 100
>
>
>> If you don't want the removed changes to show up in the log, you
>> alternatively can delete the folder in the repository (-> 101) and
>> reinstate it as a copy off of your working copy. That creates 102 as a
>> copy of 95 including your local changes.
>
> 1) svn delete <repo url>/<path> -m "delete source folder"
> -> 101
>
> 2) svn copy . <repo url>/<path> -m "reinstate source from wc"
> -> 102
>
>> If you want the copy to show up without modifications, you can first
>> do the copy in the repo (-> 102), switch you working copy to that
>> revision and then commit your changes (-> 103).
>
> 1) svn delete <repo url>/<path>
> -> 101
>
> 2) svn copy <repo url>/<path>@95 <repo url>/<path>
> -> 102
>
> 3) svn switch <repo url>/<path> .
>
> 4) svn commit .
> -> 103
> --
>
> Lorenz
>
Thank all of you!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: after checked out an old revision...
Posted by Lorenz <lo...@yahoo.com>.
Steven Woody wrote:
>[...]
>I am not clear with method, can you show me a detail instruction on
>what command should I run in what step? Thanks a lot.
ok, let say your wc is checked out from <repo url>/<path>@95,
and HEAD = 100
> If you don't want the removed changes to show up in the log, you
> alternatively can delete the folder in the repository (-> 101) and
> reinstate it as a copy off of your working copy. That creates 102 as a
> copy of 95 including your local changes.
1) svn delete <repo url>/<path> -m "delete source folder"
-> 101
2) svn copy . <repo url>/<path> -m "reinstate source from wc"
-> 102
> If you want the copy to show up without modifications, you can first
> do the copy in the repo (-> 102), switch you working copy to that
> revision and then commit your changes (-> 103).
1) svn delete <repo url>/<path>
-> 101
2) svn copy <repo url>/<path>@95 <repo url>/<path>
-> 102
3) svn switch <repo url>/<path> .
4) svn commit .
-> 103
--
Lorenz
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: after checked out an old revision...
Posted by Steven Woody <na...@gmail.com>.
On Thu, Nov 13, 2008 at 3:27 PM, Lorenz <lo...@yahoo.com> wrote:
> Steven Woody wrote:
>>the head is 100, and i checked out an old revision, say 95, and
>>finished many changes on the working copy. now, if i want to commit my
>>working copy as revision 101 and do not take care anything from r95 to
>>r100, what should i do?
>
> depends how you want your history to look like.
>
> With the methode Ryan describes, the changes and the fact that you
> removed them again will show up in the log.
>
> If you don't want the removed changes to show up in the log, you
> alternatively can delete the folder in the repository (-> 101) and
> reinstate it as a copy off of your working copy. That creates 102 as a
> copy of 95 including your local changes.
> If you want the copy to show up without modifications, you can first
> do the copy in the repo (-> 102), switch you working copy to that
> revision and then commit your changes (-> 103).
> --
>
> Lorenz
>
Hi, Lorenz
I am not clear with method, can you show me a detail instruction on
what command should I run in what step? Thanks a lot.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: after checked out an old revision...
Posted by Lorenz <lo...@yahoo.com>.
Bob Archer wrote:
>Couldn't you also delete the folder in the repository then do a Copy in
>the repository of revision 95 to trunk. That will keep your history/log
>just like revisions 96-101 never existed.
of course, and I thought I said so too 8-)
>From: news [mailto:news@ger.gmane.org] On Behalf Of Lorenz
>[...]
>If you want the copy to show up without modifications, you can first
>do the copy in the repo (-> 102), switch you working copy to that
>revision and then commit your changes (-> 103).
--
Lorenz
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
RE: Re: after checked out an old revision...
Posted by Bob Archer <Bo...@amsi.com>.
Couldn't you also delete the folder in the repository then do a Copy in
the repository of revision 95 to trunk. That will keep your history/log
just like revisions 96-101 never existed.
BOb
-----Original Message-----
From: news [mailto:news@ger.gmane.org] On Behalf Of Lorenz
Sent: Thursday, November 13, 2008 2:28 AM
To: users@subversion.tigris.org
Subject: Re: after checked out an old revision...
Steven Woody wrote:
>the head is 100, and i checked out an old revision, say 95, and
>finished many changes on the working copy. now, if i want to commit my
>working copy as revision 101 and do not take care anything from r95 to
>r100, what should i do?
depends how you want your history to look like.
With the methode Ryan describes, the changes and the fact that you
removed them again will show up in the log.
If you don't want the removed changes to show up in the log, you
alternatively can delete the folder in the repository (-> 101) and
reinstate it as a copy off of your working copy. That creates 102 as a
copy of 95 including your local changes.
If you want the copy to show up without modifications, you can first
do the copy in the repo (-> 102), switch you working copy to that
revision and then commit your changes (-> 103).
--
Lorenz
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: after checked out an old revision...
Posted by Lorenz <lo...@yahoo.com>.
Steven Woody wrote:
>the head is 100, and i checked out an old revision, say 95, and
>finished many changes on the working copy. now, if i want to commit my
>working copy as revision 101 and do not take care anything from r95 to
>r100, what should i do?
depends how you want your history to look like.
With the methode Ryan describes, the changes and the fact that you
removed them again will show up in the log.
If you don't want the removed changes to show up in the log, you
alternatively can delete the folder in the repository (-> 101) and
reinstate it as a copy off of your working copy. That creates 102 as a
copy of 95 including your local changes.
If you want the copy to show up without modifications, you can first
do the copy in the repo (-> 102), switch you working copy to that
revision and then commit your changes (-> 103).
--
Lorenz
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: after checked out an old revision...
Posted by Ryan Schmidt <su...@ryandesign.com>.
svn di > patchfile
Then later to apply it to your fresh working copy, start with:
patch -p0 < patchfile
This assumes a Unix-like OS, of course. If you're on Windows I don't
know how you do this.
On Nov 13, 2008, at 18:09, Steven Woody wrote:
> thanks, bob. could you tell me, how to make the patch for mworking
> directory? that should compare with the BASE (95).
>
> thank you!
>
> On 11/13/08, Bob Archer <Bo...@amsi.com> wrote:
>> You may need to just make a patch with your current working
>> directory.
>> Then revert the revisions in your repository with a reverse merge
>> or a
>> copy to from revision. Once you have done that check out the HEAD and
>> apply your patch. This seems to me it would be the best method to
>> retain
>> the changes you have in your working dir. I'm sure someone will
>> correct
>> me if I've got this wrong.
>>
>> BOb
>>
>>
>> -----Original Message-----
>> From: Steven Woody [mailto:narkewoody@gmail.com]
>> Sent: Thursday, November 13, 2008 8:07 AM
>> To: Ryan Schmidt
>> Cc: users@subversion.tigris.org
>> Subject: Re: after checked out an old revision...
>>
>> On Thu, Nov 13, 2008 at 1:37 PM, Ryan Schmidt
>> <su...@ryandesign.com> wrote:
>>> On Nov 12, 2008, at 17:55, Steven Woody wrote:
>>>
>>>> the head is 100, and i checked out an old revision, say 95, and
>>>> finished many changes on the working copy. now, if i want to commit
>> my
>>>> working copy as revision 101 and do not take care anything from r95
>> to
>>>> r100, what should i do?
>>>>
>>>> thanks in advance.
>>>
>>> You're a bit backwards... Ideally you would *first* undo the changes
>> from
>>> 100 to 95, by doing a reverse merge:
>>>
>>> svn merge -r 100:95 url://to/repo/path/to/something .
>>>
>>> Then commit that:
>>>
>>> svn commit -m "Undoing revisions 96 through 100 because _______"
>>>
>>> Then make your new changes. Then commit those.
>>
>> But ... the 'new' changes had been already made, and these changes
>> are
>> in my current working directory, and the directory's BASE is 95 since
>> I checked out them using '-r95'.
>>
>> So I think, if you meant to say:
>>
>> 1. create a new local directory and 'cd' to it.
>> 2. under the new local directory, do the following:
>> svn merge -r 100:95 url://to/repo/path/to/something .
>> 3. do 'svn ci -m "Undoing revisions 96 through 100 because _______"
>> 4. cd to my old working directory that has a BASE of 95
>> 5. do 'svn ci -m "...."'
>>
>> But I don't sure if or not the step 5 will work because before I can
>> check it, subversion will found my revision is old than HEAD and it
>> may ask me to do 'svn update' first. Will that be a problem?
>>
>> Thanks.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
>> For additional commands, e-mail: users-help@subversion.tigris.org
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: after checked out an old revision...
Posted by Steven Woody <na...@gmail.com>.
thanks, bob. could you tell me, how to make the patch for mworking
directory? that should compare with the BASE (95).
thank you!
On 11/13/08, Bob Archer <Bo...@amsi.com> wrote:
> You may need to just make a patch with your current working directory.
> Then revert the revisions in your repository with a reverse merge or a
> copy to from revision. Once you have done that check out the HEAD and
> apply your patch. This seems to me it would be the best method to retain
> the changes you have in your working dir. I'm sure someone will correct
> me if I've got this wrong.
>
> BOb
>
>
> -----Original Message-----
> From: Steven Woody [mailto:narkewoody@gmail.com]
> Sent: Thursday, November 13, 2008 8:07 AM
> To: Ryan Schmidt
> Cc: users@subversion.tigris.org
> Subject: Re: after checked out an old revision...
>
> On Thu, Nov 13, 2008 at 1:37 PM, Ryan Schmidt
> <su...@ryandesign.com> wrote:
>> On Nov 12, 2008, at 17:55, Steven Woody wrote:
>>
>>> the head is 100, and i checked out an old revision, say 95, and
>>> finished many changes on the working copy. now, if i want to commit
> my
>>> working copy as revision 101 and do not take care anything from r95
> to
>>> r100, what should i do?
>>>
>>> thanks in advance.
>>
>> You're a bit backwards... Ideally you would *first* undo the changes
> from
>> 100 to 95, by doing a reverse merge:
>>
>> svn merge -r 100:95 url://to/repo/path/to/something .
>>
>> Then commit that:
>>
>> svn commit -m "Undoing revisions 96 through 100 because _______"
>>
>> Then make your new changes. Then commit those.
>
> But ... the 'new' changes had been already made, and these changes are
> in my current working directory, and the directory's BASE is 95 since
> I checked out them using '-r95'.
>
> So I think, if you meant to say:
>
> 1. create a new local directory and 'cd' to it.
> 2. under the new local directory, do the following:
> svn merge -r 100:95 url://to/repo/path/to/something .
> 3. do 'svn ci -m "Undoing revisions 96 through 100 because _______"
> 4. cd to my old working directory that has a BASE of 95
> 5. do 'svn ci -m "...."'
>
> But I don't sure if or not the step 5 will work because before I can
> check it, subversion will found my revision is old than HEAD and it
> may ask me to do 'svn update' first. Will that be a problem?
>
> Thanks.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
RE: Re: after checked out an old revision...
Posted by Bob Archer <Bo...@amsi.com>.
You may need to just make a patch with your current working directory.
Then revert the revisions in your repository with a reverse merge or a
copy to from revision. Once you have done that check out the HEAD and
apply your patch. This seems to me it would be the best method to retain
the changes you have in your working dir. I'm sure someone will correct
me if I've got this wrong.
BOb
-----Original Message-----
From: Steven Woody [mailto:narkewoody@gmail.com]
Sent: Thursday, November 13, 2008 8:07 AM
To: Ryan Schmidt
Cc: users@subversion.tigris.org
Subject: Re: after checked out an old revision...
On Thu, Nov 13, 2008 at 1:37 PM, Ryan Schmidt
<su...@ryandesign.com> wrote:
> On Nov 12, 2008, at 17:55, Steven Woody wrote:
>
>> the head is 100, and i checked out an old revision, say 95, and
>> finished many changes on the working copy. now, if i want to commit
my
>> working copy as revision 101 and do not take care anything from r95
to
>> r100, what should i do?
>>
>> thanks in advance.
>
> You're a bit backwards... Ideally you would *first* undo the changes
from
> 100 to 95, by doing a reverse merge:
>
> svn merge -r 100:95 url://to/repo/path/to/something .
>
> Then commit that:
>
> svn commit -m "Undoing revisions 96 through 100 because _______"
>
> Then make your new changes. Then commit those.
But ... the 'new' changes had been already made, and these changes are
in my current working directory, and the directory's BASE is 95 since
I checked out them using '-r95'.
So I think, if you meant to say:
1. create a new local directory and 'cd' to it.
2. under the new local directory, do the following:
svn merge -r 100:95 url://to/repo/path/to/something .
3. do 'svn ci -m "Undoing revisions 96 through 100 because _______"
4. cd to my old working directory that has a BASE of 95
5. do 'svn ci -m "...."'
But I don't sure if or not the step 5 will work because before I can
check it, subversion will found my revision is old than HEAD and it
may ask me to do 'svn update' first. Will that be a problem?
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: after checked out an old revision...
Posted by Steven Woody <na...@gmail.com>.
On Thu, Nov 13, 2008 at 1:37 PM, Ryan Schmidt
<su...@ryandesign.com> wrote:
> On Nov 12, 2008, at 17:55, Steven Woody wrote:
>
>> the head is 100, and i checked out an old revision, say 95, and
>> finished many changes on the working copy. now, if i want to commit my
>> working copy as revision 101 and do not take care anything from r95 to
>> r100, what should i do?
>>
>> thanks in advance.
>
> You're a bit backwards... Ideally you would *first* undo the changes from
> 100 to 95, by doing a reverse merge:
>
> svn merge -r 100:95 url://to/repo/path/to/something .
>
> Then commit that:
>
> svn commit -m "Undoing revisions 96 through 100 because _______"
>
> Then make your new changes. Then commit those.
But ... the 'new' changes had been already made, and these changes are
in my current working directory, and the directory's BASE is 95 since
I checked out them using '-r95'.
So I think, if you meant to say:
1. create a new local directory and 'cd' to it.
2. under the new local directory, do the following:
svn merge -r 100:95 url://to/repo/path/to/something .
3. do 'svn ci -m "Undoing revisions 96 through 100 because _______"
4. cd to my old working directory that has a BASE of 95
5. do 'svn ci -m "...."'
But I don't sure if or not the step 5 will work because before I can
check it, subversion will found my revision is old than HEAD and it
may ask me to do 'svn update' first. Will that be a problem?
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: after checked out an old revision...
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Nov 12, 2008, at 17:55, Steven Woody wrote:
> the head is 100, and i checked out an old revision, say 95, and
> finished many changes on the working copy. now, if i want to commit my
> working copy as revision 101 and do not take care anything from r95 to
> r100, what should i do?
>
> thanks in advance.
You're a bit backwards... Ideally you would *first* undo the changes
from 100 to 95, by doing a reverse merge:
svn merge -r 100:95 url://to/repo/path/to/something .
Then commit that:
svn commit -m "Undoing revisions 96 through 100 because _______"
Then make your new changes. Then commit those.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org