[Bitkeeper-users] excluding a changeset with removed files
Larry McVoy
lm at bitmover.com
Wed Nov 1 08:28:48 PST 2006
On Wed, Nov 01, 2006 at 12:34:52PM -0500, Tristan Van Berkom wrote:
> Andy Chittenden wrote:
> >if it's in the last ChangeSet you committed, bk undo -r+
> >
>
> Hi, thanks for the quick reply - but its not the last changeset...
> I'm now looking into the docs to see if I can get `bk undo` to
> do what I want...
Did you see the "unrm" command? It's a shell script in `bk bin`/bk.script
and reading that function should show you how to find your files. If there
are a lot there are ways to automate it, I can whip up a script.
--lm
bk unrm(4.0.1) BitKeeper User's Manual bk unrm(4.0.1)
NAME
bk unrm - resurrect a removed BitKeeper file
SYNOPSIS
bk unrm <file>
DESCRIPTION
Use bk unrm to resurrect a file that has been deleted using bk rm.
Please note that bk unrm cannot resurrect files that have been removed
from the source tree using bk gone.
If you know the path to the original file, for example src/Makefile,
then to resurrect:
cd ~/projects/myproject/src
bk unrm Makefile
If you do not know the directory run unrm from the root of the reposi-
tory:
cd ~/projects/myproject
bk unrm Makefile
There will be an interactive interface for choosing whether or not to
resurrect the file. Type "y" to resurrect the file, "n" to do nothing
or go to the next option, or "q" to quit. If there are more than one
files with the same name, choose "y" if the pathname shown is the one
you want, or choose "n" until the correct file is shown.
SEE ALSO
bk help gone, bk help rm, bk help rmdir
CATEGORY
Common
File
BitMover, Inc 2006/06/01 bk unrm(4.0.1)
--
---
Larry McVoy lm at bitmover.com http://www.bitkeeper.com
More information about the Bitkeeper-users
mailing list