info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: tag doesn't always tag


From: Jacob Weber
Subject: RE: tag doesn't always tag
Date: Wed, 26 Oct 2005 16:14:46 -0400

Todd,

I spent a lot of time trying this with diff, and eventually gave up. The
problem was that diff (even with -N) would only show changes in a directory
if I already had that directory in my working copy. But it's possible that
the directory and all its files have been deleted. In this case, I still
want to see the files that were deleted, but diff won't do anything ("no
such directory").

My overall goal is pretty simple: I want to make a script where I can pass
in an arbitrary directory and tag, and it will restore that directory to the
version with the tag, and commit it. I also would like to preview the
changes, which is where diff/rdiff comes in. The result should be that the
new version of the directory should be exactly the same as it was when it
was tagged.

Harder than it sounds!
Jacob



-----Original Message-----
From: address@hidden [mailto:address@hidden
Behalf Of Todd Denniston
Sent: Wednesday, October 26, 2005 3:30 PM
To: Jacob Weber
Cc: Dave Korn; address@hidden
Subject: Re: tag doesn't always tag


Jacob Weber wrote:
>
>
> I'm trying to compare the current contents of a directory to its contents
> when I tagged it.  Some files may have been added, some files may have
been
> deleted, and some may have changed.
>
> Now, notwithstanding your point about CVS not knowing about versions of a
> directory, it IS usually able to do what I'm asking. If I do "rdiff -s -r
> tag1 -r HEAD module/dir", it gives me a nice little report, e.g.
>   File test/file1 is removed; tag1 revision 1.1
>   File test/file1 is new; HEAD revision 1.2
>
<SNIP>

Jacob,
would (in a checked out sandbox)
`cvs diff -N --brief -rtag1 -r HEAD dir`
do close enough to what you want?

rdiff apparently does not have the -N option, and diff does not do the same
thing with -s
--
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter







reply via email to

[Prev in Thread] Current Thread [Next in Thread]