/srv/irclogs.ubuntu.com/2018/05/26/#bzr.txt

Lucifer_armathis is what I got when I ran it:00:00
Lucifer_arma$ bzr split src00:00
Lucifer_armabzr: ERROR: No WorkingTree exists for "file:///home/dave/Projects/dswc/src/.bzr/checkout/".00:00
fullermdWhere are you when you do that?00:00
Lucifer_armaalso, it's a 9 year old repository, so I had to upgrade the format to be able to do the split in the first place00:00
Lucifer_armaI'm in the project root00:01
Lucifer_armaso, home/dave/Projects/dswc00:01
fullermdWhat's bzr info tell you?00:01
Lucifer_armaUnshared repository with trees (format: pack-0.92)00:01
Lucifer_armaLocation:00:01
Lucifer_arma  repository: .00:01
fullermd'k, so you're not in a branch.00:01
fullermdGotta be in the branch/WT in question.00:02
Lucifer_armawait, that was inside src00:02
Lucifer_armabzr info in dswc says standalone tree and gives the expected information00:03
fullermdMmph.  So you've got a repo _underneath_ a branch?  That sounds like a recipe for surprises...00:04
Lucifer_armathat's what happened after I did the split, afaik00:04
fullermdMmm.  Well, that would be a little more expected...00:04
fullermdSounds like you've got some halfway stuff around.00:05
Lucifer_armahalfway stuff?  like uncommitted changes?00:05
fullermdMore like part of a split, or part of an init/init-repo, or whatnot...00:05
fullermdThough, actually, I'm not sure pack-0.92 is even rich root, so that might cause weird failure too.00:06
fullermdI'd make a fresh scratch branch nowhere near anything extant (in /tmp or the like, say), make sure it's 2a format, and try from scratch there.00:06
Lucifer_armaah, ok, I figured out what I did wrong :)00:06
Lucifer_armaI should have done "bzr split ." from inside src00:06
Lucifer_armaI did it all over again with that change and it appears to be working now00:07
Lucifer_armaso, am I guaranteed not to have the ability to access commits from the rest of the project now?00:07
Lucifer_armait's a website that's has private sources, but I'm spinning off the scripts I use to generate it so I can release those publicly00:07
fullermdPretty sure none of the content will be in the new branch, no.00:08
fullermdThe commit messages would be the same, so stuff touching both inside and out may have stuff in the logs you want to hide.  Or not, depending on your commit messages.00:08
Lucifer_armadon't care about that.  It's also not that big of a deal if old stuff gets out, but it's better to start with a fresh repo and no history than to have other people digging through my website sources ;)00:10
Lucifer_armaok, so I get something like this after the split (I'm only including a couple of lines of output)00:11
Lucifer_arma$ bzr status00:11
Lucifer_armaremoved:00:11
Lucifer_arma  .bzrignore00:11
Lucifer_arma  .dswc_data/00:11
Lucifer_armawhere .dswc_data is part of the original project, and there's a list of all the files that are gone now.00:12
Lucifer_armaok, last question.00:14
Lucifer_armaIs this the expected behavior if I try to revert to a revision number from before the split?00:15
Lucifer_arma$ bzr revert -r 25700:15
Lucifer_armabzr: ERROR: Key src-20090728034756-vx3lt2pqch83qh4t-1 is already present in map00:15
* fullermd frowns.00:15
fullermdWell.  I thought split made a new history, but I guess it doesn.t00:16
fullermdSo, let's agree I never said anything in the first place, so I look smarter.00:16
Lucifer_armawell, it didn't actually do the revert00:16
fullermdThat's pretty likely a bug, from the somewhat weird post-split state.00:17
fullermdApparently all split does is rm a bunch of stuff and pivot the root.  That root state is probably an edge case revert doesn't grok.00:17
fullermdMaybe there's someting in the rewrite plugin that'll do the job?  I don't really know it...00:21
Lucifer_armawell, the .bzr directory is 54MB, which is consistent with it actually having all the other files in it00:21
Lucifer_armaso, I guess I'll just export from bzr and start with a brand new repository?00:22
fullermdYeah, simplest.00:23
Lucifer_armawell, thanks for the help.  Have a good weekend.  ;)00:24

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!