How to branch from a head revision after accidentally deleting branch dir?
Matt Nordhoff
mnordhoff at mattnordhoff.com
Fri Aug 15 18:49:01 BST 2008
Nicholas Allen wrote:
> Hi,
>
> If I accidentally delete a branch directory from within a repository and
> want to restore that branch what is the best way to do that? If I run
> "bzr heads" I can see the revision of the branch that I need to restore.
> But bzr branch needs a branch location (which of course does not exist
> because I accidentally deleted the directory). Is there some special
> syntax I can use in the location specifier that makes it look at a
> revision in the repository instead of a directory?
>
> Cheers,
>
> Nick
I think the way to handle this is:
$ cd repo/some_other_branch
$ bzr branch -r revid:whatever . ../restored_branch
I guess you could use init/pull too, if you don't have any other branches.
--
More information about the bazaar
mailing list