From thomas.nilsson at proceranetworks.com Thu Jun 19 09:42:02 2008 From: thomas.nilsson at proceranetworks.com (Thomas Nilsson) Date: Thu Jun 19 09:42:21 2008 Subject: [Bitkeeper-users] List changed/removed/added files in commit trigger. Message-ID: <485A8C5A.3000708@proceranetworks.com> I'm trying to create a list of changed, removed and added files during post-incoming. The closest I've come to my goal is an extreme kludge and I'm desperately searching for the CorrectWay How I currently do it is; (told you it's a kludge) while read CSET; do bk export -tpatch -h -du $CSET | diffstat -l done < $BK_CSETLIST | sort -u which does not always produce the correct output. Any ideas or pointers would be helpful. From lm at bitmover.com Thu Jun 19 14:08:08 2008 From: lm at bitmover.com (Larry McVoy) Date: Thu Jun 19 14:08:09 2008 Subject: [Bitkeeper-users] List changed/removed/added files in commit trigger. In-Reply-To: <485A8C5A.3000708@proceranetworks.com> References: <485A8C5A.3000708@proceranetworks.com> Message-ID: <20080619210808.GD5765@bitmover.com> On Thu, Jun 19, 2008 at 06:42:02PM +0200, Thomas Nilsson wrote: > I'm trying to create a list of changed, removed and added files during > post-incoming. > > The closest I've come to my goal is an extreme kludge and I'm > desperately searching for the CorrectWay > > How I currently do it is; > > (told you it's a kludge) > > while read CSET; do > bk export -tpatch -h -du $CSET | diffstat -l > done < $BK_CSETLIST | sort -u > > which does not always produce the correct output. Any ideas or pointers > would be helpful. bk changes -vnd'$unless(:CHANGESET:){:GFILE:}' - < $BK_CSETLIST should work. -- --- Larry McVoy lm at bitmover.com http://www.bitkeeper.com