You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Greg Stein <gs...@lyra.org> on 2001/05/14 01:33:45 UTC
[lists@rowe-clan.net: Re: CVS rename?]
----- Forwarded message from "William A. Rowe, Jr." <li...@rowe-clan.net> -----
From: "William A. Rowe, Jr." <li...@rowe-clan.net>
Subject: Re: CVS rename?
To: "Greg Stein" <gs...@lyra.org>
Date: Sun, 13 May 2001 17:28:03 -0500
Reply-To: "William A. Rowe, Jr." <wr...@rowe-clan.net>
From: "Greg Stein" <gs...@lyra.org>
Sent: Sunday, May 13, 2001 4:07 PM
> On Sun, May 13, 2001 at 01:21:54PM +0100, David Reid wrote:
> > Can someone who knows tell me how to "correctly" rename the memory files in
> > CVS?
> >
> > That's why I haven't done it yet... :)
>
> We haven't done a release yet and we don't need the history of the files in
> their old locations. Just go into /home/cvs/... on dev.apache.org and 'mv'
> the files.
>
> Special precautions are only needed if we want to preserve history (in the
> old location) and/or we have tagged the files under their old names.
This is _wrong_.
As soon as one other person checks out a tree, you danged well better drop it in
the attic for their benefit. Otherwise, there is little wonder why two folks might
be building just fine, and everyone else later can't build.
You and that other person won't have your trees pruned, but the rest of the world
will. That's not appropriate.
Greg's right that we don't need the tags [there are none], so I'd argue that after
a week or so its more safe to blast them from the attic, but does anyone here have
a long list of trees they only update every month or so? Thought so.
Look, always delete things properly unless you are in a true sandbox repository,
once it's in the public cvs, it's our respsonsibility to clean up our droppings
when things go stale.
Bill
----- End forwarded message -----
--
Greg Stein, http://www.lyra.org/
Re: [lists@rowe-clan.net: Re: CVS rename?]
Posted by Luke Kenneth Casson Leighton <lk...@samba-tng.org>.
> Greg's right that we don't need the tags [there are none], so I'd argue that after
> a week or so its more safe to blast them from the attic, but does anyone here have
> a long list of trees they only update every month or so? Thought so.
uh... not that it is my... how-to-say... [place? responsibility?] to
advise on this, but i have to point this out:
you _are_ aware that by removing files from the attic you destroy
any means to return to a former development version of the work being
done?
what if you, or anyone, wish at some point, to use cvs to compare
what was being done 4 months ago, to what is currently being done?
luke
Re: [lists@rowe-clan.net: Re: CVS rename?]
Posted by Luke Kenneth Casson Leighton <lk...@samba-tng.org>.
On Mon, May 14, 2001 at 09:33:45AM -0500, William A. Rowe, Jr. wrote:
> From: "Luke Kenneth Casson Leighton" <lk...@samba-tng.org>
> Sent: Monday, May 14, 2001 9:06 AM
>
>
> > > We've moved files before, and I haven't heard of a problem.
> Hadn't considered the scenario, thanks for pointing it out Luke.
no problem. force of habit :)
Re: [lists@rowe-clan.net: Re: CVS rename?]
Posted by "William A. Rowe, Jr." <wr...@covalent.net>.
From: "Luke Kenneth Casson Leighton" <lk...@samba-tng.org>
Sent: Monday, May 14, 2001 9:06 AM
> > We've moved files before, and I haven't heard of a problem.
>
> what you are telling me is that no-one has attempted to do this:
>
> cvs co apr -D '8 months ago'
> ./buildconf
> make ...
This is a good point. I rarely checkout by 'date' but you are very,
very right. If the user is trying to reproduce that version that 'worked'
(sort of, perhaps) and compare it's behavior to what we might see today,
this is definately a problem.
Hadn't considered the scenario, thanks for pointing it out Luke.
Bill
Re: [lists@rowe-clan.net: Re: CVS rename?]
Posted by Luke Kenneth Casson Leighton <lk...@samba-tng.org>.
On Mon, May 14, 2001 at 02:11:13PM -0700, Greg Stein wrote:
> On Mon, May 14, 2001 at 04:06:26PM +0200, Luke Kenneth Casson Leighton wrote:
> > > We've moved files before, and I haven't heard of a problem.
> >
> > what you are telling me is that no-one has attempted to do this:
> >
> > cvs co apr -D '8 months ago'
> > ./buildconf
> > make ...
> >
> > etc.
>
>
> Luke: I said we don't need the history of those files existing at their
> "current" position. And your above scenario doesn't apply because we'd only
> do the move for cases where we don't care if those files appear "8 months
> ago" in their old spot.
okay. i noticed your comment about the history after i'd seen other
messages, which triggered my 'alarm bells' response: my inbox is sorted
latest-received first.
luke
Re: [lists@rowe-clan.net: Re: CVS rename?]
Posted by Greg Stein <gs...@lyra.org>.
On Mon, May 14, 2001 at 04:06:26PM +0200, Luke Kenneth Casson Leighton wrote:
> > We've moved files before, and I haven't heard of a problem.
>
> what you are telling me is that no-one has attempted to do this:
>
> cvs co apr -D '8 months ago'
> ./buildconf
> make ...
>
> etc.
Luke: I said we don't need the history of those files existing at their
"current" position. And your above scenario doesn't apply because we'd only
do the move for cases where we don't care if those files appear "8 months
ago" in their old spot.
-g
--
Greg Stein, http://www.lyra.org/
Re: [lists@rowe-clan.net: Re: CVS rename?]
Posted by Luke Kenneth Casson Leighton <lk...@samba-tng.org>.
> We've moved files before, and I haven't heard of a problem.
what you are telling me is that no-one has attempted to do this:
cvs co apr -D '8 months ago'
./buildconf
make ...
etc.
luke
Re: [lists@rowe-clan.net: Re: CVS rename?]
Posted by Greg Stein <gs...@lyra.org>.
On Mon, May 14, 2001 at 04:04:09PM +0200, Luke Kenneth Casson Leighton wrote:
> > > It is safe to move a file. That is all we're talking about.
> >
> > Safe? Well certainly inconsiderate.
> >
>
> no, it's not safe to move a file.
>
> what happens if you wish to compile an older version?
Please re-read my initial statement:
-------
We haven't done a release yet and we don't need the history of the files in
their old locations. Just go into /home/cvs/... on dev.apache.org and 'mv'
the files.
Special precautions are only needed if we want to preserve history (in the
old location) and/or we have tagged the files under their old names.
-------
> try this:
>
> cvs co ... -D '2 days ago'
>
> oh, whoops, why doesn't it compile? i don't understand, the Makefile
> says there's a file there, but where is the file?
Fuck it. We don't need it.
>...
> it's actually better to move directories around than it is to
> move individual files, but only if the directory and its
> subdirectories are self-contained and not referenced via any
> other Makefiles, scripts, includes, libs etc.
No. This isn't possible at all. The CVS client will see files disappear from
the repository and simply unhook them in the working copy. No harm, no foul.
But if you move a *directory*, then everything gets fucked. The client can't
recover. The user has to manually edit CVS/Entries to deal with the change.
Directory moves are *never* good.
File moves are fine, IFF you don't care about the history of that file.
> and yes, if someone starts moving directories, you're better
> off doing a total re-checkout.
It is edit CVS/Entries or a new checkout. But if you have changes, then you
have one option, and you better know a lot of CVS/Entries.
Cheers,
-g
--
Greg Stein, http://www.lyra.org/
Re: [lists@rowe-clan.net: Re: CVS rename?]
Posted by Luke Kenneth Casson Leighton <lk...@samba-tng.org>.
> > It is safe to move a file. That is all we're talking about.
>
> Safe? Well certainly inconsiderate.
>
no, it's not safe to move a file.
what happens if you wish to compile an older version?
try this:
cvs co ... -D '2 days ago'
oh, whoops, why doesn't it compile? i don't understand, the Makefile
says there's a file there, but where is the file?
_don't_ delete, or move, files, in cvs, if you possibly expect
to maintain the history, consistency of the repository and
the good-will of the people accessing the cvs repository.
_copy_ the file (the one in cvs) and then cvs delete the old
one.
it's actually better to move directories around than it is to
move individual files, but only if the directory and its
subdirectories are self-contained and not referenced via any
other Makefiles, scripts, includes, libs etc.
and yes, if someone starts moving directories, you're better
off doing a total re-checkout.
... you _can_ do this on an individual basis, as follows:
cvs co samba/source
or, cvs co apache/apr/aprutil - whatever.
[it will create the subdirs for you.]
luke
Re: [lists@rowe-clan.net: Re: CVS rename?]
Posted by "William A. Rowe, Jr." <ad...@rowe-clan.net>.
From: "Greg Stein" <gs...@lyra.org>
Sent: Sunday, May 13, 2001 6:44 PM
> > > Special precautions are only needed if we want to preserve history (in the
> > > old location) and/or we have tagged the files under their old names.
> >
> > This is _wrong_.
> >
> > As soon as one other person checks out a tree, you danged well better drop it in
> > the attic for their benefit. Otherwise, there is little wonder why two folks might
> > be building just fine, and everyone else later can't build.
>
> Huh?! If a *file* is moved in the repository, then the client properly
> handles it (with a comment noting the file is no longer in the rep.).
> Problems only occur when you move *directories*.
Yes, HUGE problems occur when you move directories. While [probably all]
CVS clients inform you 'file has disappeared', they do _not_ necessarily
delete it. While they do kill the tag from CVS/Entries.
I _never_ get a chance to read the update logs on occasion. I re-update
to note the conflicts (a much, much shorter list) and see what files I have
changed and not committed.
Since I would miss it the first time, and it's been yanked from my CVS/Entries
so the message isn't repeated, I miss the change entirely. My CVS 1.9.10 client
doesn't prune these files, it warns only once.
> It is safe to move a file. That is all we're talking about.
Safe? Well certainly inconsiderate.
Re: [lists@rowe-clan.net: Re: CVS rename?]
Posted by Greg Stein <gs...@lyra.org>.
> ----- Forwarded message from "William A. Rowe, Jr." <li...@rowe-clan.net> -----
>...
> > On Sun, May 13, 2001 at 01:21:54PM +0100, David Reid wrote:
> > > Can someone who knows tell me how to "correctly" rename the memory files in
> > > CVS?
> > >
> > > That's why I haven't done it yet... :)
> >
> > We haven't done a release yet and we don't need the history of the files in
> > their old locations. Just go into /home/cvs/... on dev.apache.org and 'mv'
> > the files.
> >
> > Special precautions are only needed if we want to preserve history (in the
> > old location) and/or we have tagged the files under their old names.
>
> This is _wrong_.
>
> As soon as one other person checks out a tree, you danged well better drop it in
> the attic for their benefit. Otherwise, there is little wonder why two folks might
> be building just fine, and everyone else later can't build.
>
> You and that other person won't have your trees pruned, but the rest of the world
> will. That's not appropriate.
Huh?! If a *file* is moved in the repository, then the client properly
handles it (with a comment noting the file is no longer in the rep.).
Problems only occur when you move *directories*.
We've moved files before, and I haven't heard of a problem. When we moved
directories: yes, there were big problems.
It is safe to move a file. That is all we're talking about.
Cheers,
-g
--
Greg Stein, http://www.lyra.org/