[Insight-users] CVS update problem (very strange)
Luis Ibanez
luis.ibanez at kitware.com
Wed, 25 Feb 2004 11:48:24 -0500
Hi Bing,
You probably had a tagged checkout of ITK.
This happens when you checkout or update
using commands like
cvs update -r ITK-1-6
or
cvs update -D "10/5/2003"
In those cases you get a snapshot of the
repository corresponding to that date or tag.
In order to override the tag you can use the
CVS option "-A"
So, in general your update command should be
cvs update -d -P -A
-d : creates new directories
-P : delete empty directories
-A : override sticky tags
You may find detailed explanations on
these issues on the CVS book
http://cvsbook.red-bean.com/
You can read it online, in HTML,
or download Postscripts for free.
You can also get in paper from
any technical bookstore.
Please let us know if you have
further questions,
Thanks
Luis
-----------------
Bing Jian wrote:
> Hi,
>
> Today I encountered a very strange problem regarding cvs.
> One of my labmates is developing program based on my code
> using ITK. Today he just got his ITK updated by using
> 'cvs update -d -P' (his os is linux mandrake, cvs version 1.11.5)
> then recompiled the program and found some errors due to
> recent changes made on vnl_matrix from resize() to
> set_size(), so he modified my program and let me know.
>
> After I checked out the version after his modification, I have to
> refresh my ITK to let my program get passed on my machine (also
> mandrake). But then the very strange thing happened. This time I CAN
> NOT get the latest ITK version by using 'cvs update -d -P'. Running
> of this cvs update command just said 'updating $directory' but not
> showing any single file being changed. And it really did not change
> anything to my local ITK copy. For example, those basic vnl files
> are still put in /Utilities/vxl/vnl without change instead of
> the new folder /Utilities/vxl/core/vnl. If I use 'cvs update -d',
> it will create an empty core directory with no files but some
> also empty subdirectories. That's very strange. Because I can
> check out correctly at same time from my windows xp using TortoiseCVS
> with same command 'cvs update -d -P'. And I rememebered that
> I did update correctly sometime before maybe at the end of last year
> from same linux machine with same command. (my cvs version is 1.11.6)
>
> I am wondering if anybody had same experience before. I dont
> like to erase the whole thing and check out again.
>
> Thanks in advance!
>
>