Re: bk equivalent for "cvs diff -rHEAD -N -u"??

Larry McVoy <[email protected]> Thu, 14 Oct 2004 07:13:50 -0700
Newsgroups gmane.comp.version-control.bitkeeper.user
Message-ID <[email protected]>
On Thu, Oct 14, 2004 at 08:59:14AM -0500, Rick Richardson wrote:
> 
> I need to generate a recursive context diff patchset of all files I 
> have changed or added to my tree.  The files are not committed yet,
> and I do not want to commit them yet.
> 
> Under CVS, this is as easy as:
>         cvs diff -rHEAD -N -u
> 
> Under bitkeeper, the best I've been able to do so far is get a 
> patchset of the files I have modified.  "bk diffs" doesn't allow the
> "-N" diff option for new files.

This is fixed in our internal tree, you can do a bk -xcr diffs -u and it 
does the right thing but that's not much help to you now.  This will 
get the job done:

	#!/bin/sh
	cd `bk root`
	bk -r diffs -up
	bk gfiles -x | while read x
	do	echo ==== New file $x ====
		diff -u /dev/null $x 
	done

You may want to fix up the headers on the new files, they won't patch -p1
properly.
-- 
---
Larry McVoy                lm at bitmover.com           http://www.bitkeeper.com
_______________________________________________
Bitkeeper-users mailing list
[email protected]
http://bitmover.com/mailman/listinfo/bitkeeper-users
To unsubscribe from this list, go to the above URL, follow instruction at the bottom of the web page.