Re: undoing a rename (bk mv) before 'bk commit'

Larry McVoy <[email protected]>
Newsgroups gmane.comp.version-control.bitkeeper.user
Message-ID <[email protected]>
On Thu, Aug 19, 2004 at 04:04:29PM -0700, Chris Wedgwood wrote:
> I want to undo a 'bk mv' before making a changeset (ie. before doing
> 'bk commit').  Does anyone know how I might do this?  Renaming the
> file back just creates another 'pending item' as such (and trying to
> strip the from the ChangeSet didn't work).

cd `bk root`
bk sfiles -pC > LIST
$EDITOR LIST	# find the entry that matches your rm, delete everything ELSE
bk stripdel - < LIST
bk -r names
bk -r check -a

> For file changes in the pending state I can do 'bk pending' then 'bk
> stripdel' which is mostly good enough[1].
> 
> [1] actually it sucks sometimes but that's another problem.

Statements that something sucks without information about what it is that you
think sucks (a) will not get it to not suck and (b) don't endear your to 
friendly BitKeeper developers.  Just an FYI.
-- 
---
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.