how to un-add an added but uncommitted file?

2004-10-13 Thread marko
Hi,

say I 've added wrongly a file named FILE to a repository. I still haven't
done a commit on that one. If I do a

 cvs remove FILE

the files get's thrown away and doesn't belong any longer to the module.

If I simply delete the file and do an update on the module I get the
warning

 warning: new-born FILE  has disappeared

So far so good, both methods seem to remove the file from my repository,
well I know, actually the file is not there yet, but anyway...


BUT, I'd like to preserve the file itself! Is there a way of un-adding a
file which got by accident added without deleting it??

Marko


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/info-cvs


Re: how to un-add an added but uncommitted file?

2004-10-13 Thread Spiro Trikaliotis
Hello Marko,

* On Wed, Oct 13, 2004 at 01:23:15PM +0200 marko wrote:
 
 BUT, I'd like to preserve the file itself! Is there a way of un-adding a
 file which got by accident added without deleting it??

Rename the file, do what you have done above, and rename it back.

Regards,
   Spiro.

-- 
Spiro R. Trikaliotis
http://www.trikaliotis.net/
http://www.viceteam.org/


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/info-cvs


RE: how to un-add an added but uncommitted file?

2004-10-13 Thread marko
Hi Edwin,

 Maybe this is an obviously stupid suggestion but how about in your second
 method instead of deleting, you rename it... Then rename it back after you
 do the update?
OK, that would solve it, but yes, it doesn't really sound like a perfect
solution, because I'd have to rename, update and rename again... Strange!
:)

Marko


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/info-cvs


RE: how to un-add an added but uncommitted file?

2004-10-13 Thread Jim.Hyslop
marko wrote:
 Hi Edwin,
  Maybe this is an obviously stupid suggestion but how about 
 in your second
  method instead of deleting, you rename it... Then rename it 
 back after you
  do the update?
 OK, that would solve it, but yes, it doesn't really sound 
 like a perfect
 solution, because I'd have to rename, update and rename 
 again... Strange!

Strange is in the eye of the beholder. To me, it seems very strange that you
want to preserve a file, but not have it in CVS. Surely if it's that
important it should be under version control?

-- 
Jim Hyslop
Senior Software Designer
Leitch Technology International Inc. ( http://www.leitch.com )
Columnist, C/C++ Users Journal ( http://www.cuj.com/experts )



___
Info-cvs mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/info-cvs


RE: how to un-add an added but uncommitted file?

2004-10-13 Thread marko
Dear Jim and folks,

 Strange is in the eye of the beholder.
true! :)

 To me, it seems very strange that you want to preserve a file, but not
 have it in CVS. Surely if it's that important it should be under version
 control?
Well, say it's obj-file or an exe which you added just accidentally while
going through a bunch of files. You don't want to restart the compiler to
recreate them, perhaps... That would be my arguments! :)

OK, I see, I have to live with the renaming thing. :) Not that I am
totally against it, it's only that I thought there might have been a
cleaner way to achieve that! :|

Thanks for your responses!
Marko


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/info-cvs


Re: how to un-add an added but uncommitted file?

2004-10-13 Thread DIG
On Wed, 13 Oct 2004 13:23:15 +0200 (CEST), [EMAIL PROTECTED] wrote:

[...]
 BUT, I'd like to preserve the file itself! Is there a way of un-adding a
 file which got by accident added without deleting it??

I would remove file ``filename,t'' from CVS directory, and also
remove corresponding entry for the file CVS/Entries.


Best regards,

-- 
DIG (Dmitri I GOULIAEV)
Aahz's law: The best way to get information on usenet is 
not to ask a question, but to post the wrong information.
___
Info-cvs mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/info-cvs