rollback a single subdirectory

Mike Marty <[email protected]> Tue, 23 Nov 2004 14:42:05 -0600
Newsgroups gmane.comp.version-control.bitkeeper.user
Message-ID <[email protected]>
I'd like to create a branch of our repository that rolls back some
developmental work in a particular subdirectory.  As an example, I have
subdirectories FOO and GOO in the same repository.  The current
changeset is 1.5 (example).  I want to create a branch/repository where
GOO is completely up-to-date to 1.5, but FOO rolls back to changeset 1.0
but then also applies changeset 1.3.  The subdirectories contain modules
that are quite independent (in retrospect, it probably would have been
better to use seperate BitKeeper repositories for these directories).  

This is my plan:

1.  clone the parent repository, creating B.  This will be my branched
repository

2.  bk export -r1.3 -tpatch > /tmp/patch1      

this will get the 1.3 changes I want

3.  bk clone -r1.0 B /tmp/C         

makes a temp repository that checks out the early version of the entire
repository
           
4.  diff -urN -X SCCS_files /tmp/C/FOO B/FOO > /tmp/patch2

gets a diff only on the subdirectory I'm interested in.  I can use this
patch to apply the rollback differences

5.  apply /tmp/patch1 and /tmp/patch2 to B and checkin changes.  Is
there a Bitkeeper command to automatically "edit" each file and apply
the patch?

Is there a better way?  

Thanks,
Mike

_______________________________________________
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.