/srv/irclogs.ubuntu.com/2007/11/14/#bzr.txt

hughhi, any bzr gurus out there15:07
datohugh: it's better to just ask your question, and wait until somebody who knows is available to answer it15:08
hughok; I temporarily renamed a directory using mv (i.e. not using bzr), and then later I did a commit; bzr decided I intended to remove the dir15:11
hughdirectory15:11
hughso, I've tried to use revert to bring the directory back15:12
hughbut, I get an error message15:12
jmlhello15:12
hughbzr: ERROR: Path(s) are not versioned: py/coe/signalprocessing15:12
jmlI've recently been talking to people interested in using bazaar. One question they asked was whether it had a command to totally rebuild the working tree.15:12
jmlsomething like bzr revert, except that it removes all files not in version control, even ignored ones.15:13
hughso, how do I bring back a directory that bzr decide to remove15:13
jmlhugh: bzr revert perhaps?15:13
hughtwo of asking about revert at the same time!15:13
hughno, revert didn't work, said: bzr: ERROR: Path(s) are not versioned: py/coe/signalprocessing15:14
jmlhugh: oh, I've just read your full explanation.15:14
jmlhugh: one thing you could try is 'bzr uncommit' (if moving the directory was something you did in the most recent commit)15:15
datohugh: do this15:15
datohugh: let's say the commit where the directory was accidentally removed was 12315:15
datobzr merge -r 123..122 .15:15
jelmerjml: clean-tree ?15:16
jelmerthat can remove ignored files15:16
hughok data, thank, I thought that might be the recommended route15:16
hughI'll give it a try15:16
jmljelmer: awesome.15:16
datohugh: better mv out the directory first15:16
datohugh: bzr will restore it15:16
hughoh, I have the moved dir, I just want to restore it with its history rather than re-adding it; I'll be careful15:17
jmljelmer: I guess the exact thing they would want is 'bzr revert && bzr clean-tree --ignored --unknown --detritus15:19
=== bac_afk is now known as bac
=== bac_afk is now known as bac
quicksilverhugh: or, just branch locally15:23
quicksilverhugh: bzr branch foo foo-clean15:23
quicksilverhugh: foo-clean will have a rebuilt working tree, with no ignored files etc15:24
hughI think you mean jml15:24
jmlquicksilver: oh yeah, good point.15:26
datojml: you want "bzr revert; bzr clean-tree"15:26
dato(clean-tree is provided by bzrtools)15:26
datohugh: oh, you could run bzr uncommit indeed, if it was the last revision.15:26
dato(and it wasn't pushed anywhere)15:26
jmldato: clean-tree doesn't delete ignored files by default.15:26
quicksilverhugh: sorry.15:26
quicksilverjml: I did indeed mean jml :)15:27
datojml: well, delete-tree --ignored --unknown ?15:27
jmldato: :)15:28
mwhudsonhm, bzr branch would be the right answer if tree building was faster15:30
kaalooHi again, I just fixed a small bug in the bzr-email plugin when using smtp.gmail.com.  I published my branch on launchpad.  Is that enough to get my changes reviewed and hopefully going into trunk if there are no issues ?15:44
=== cprov-lunch is now known as cprov
mwhudsonkaaloo: probably best to mail the bazaar list i'd think15:53
kaaloook thanks, I just sent out an email to Robert, but I'll do so next time15:54
schierbeckjelmer: ping16:13
jelmerschierbeck, pong16:14
schierbeckjelmer: are you acquainted with the ancestry tree drawing code of the viz?16:15
jelmerschierbeck: no, not at all16:16
schierbeckdarn16:16
schierbecki'm investigating whether it's feasible to refresh the graph when new revisions are available, or if i have to redraw the entire widget...16:17
jelmergaryvdm is the person you'd want to talk to16:17
schierbeckyeah, but i haven't seen him on the channel recently16:17
schierbeckrefreshing the viz is crucial if we want to pull and push from within the viz16:18
schierbeckhell, the current compact-view-toggle is just a hack that forces destroys the treeview, then creates a new one16:19
schierbeck*-forces16:19
jelmerI think that's acceptable for now16:20
jelmereven when we start doing push/pull from viz16:20
lifelessjml: clean-tree can do it, combine the two is straight forward. Or you could write a plugin trivially.16:55
jmllifeless: thanks.16:57
lifelesswell back to bed for a bit17:08
lifelessmeh17:27
lifelessI'm awake17:27
lifelessabentley: ah, the summary is a link, and thats why I didn't notice it as something to copy n paste from17:29
lifelessjam-laptop: how goes dirstate-merge?17:33
jam-laptopok, i was benchmarking your patch after a merge of dev showed me just how slow things had gotten17:33
lifeless:)17:34
lifelessthe feedback that its radically faster for you is interesting17:34
lifelesshow many packs do you have?17:34
jam-laptop1117:35
lifelesscool17:35
jam-laptopsorry, 13 after testing17:35
ubotuNew bug: #162702 in bzr-email "Does not use bzrlib.smtp_connection" [Undecided,New] https://launchpad.net/bugs/16270218:21
=== mw is now known as mw|food
ubotuNew bug: #162707 in bzr "bzrsvn: permission denied on win32" [Undecided,New] https://launchpad.net/bugs/16270718:35
lifelessjam-laptop: ping; can we have a short skype chat ?18:37
jam-laptoplifeless: how about after 30 minutes?18:37
lifelessI'm spinning on reconcile designs18:37
jam-laptopk18:37
lifelessso essentially blocked until I validate an approach18:37
lifeless30 minutes is fine; earlier is better. (But I do mean short)18:38
jam-laptopI'll ping you as soon as I'm ready18:38
lifelessthanks!18:39
jam-laptopby the way, the discard_merge_parents is causing the 'b' directory to disappear18:41
jam-laptopI'm not sure why yet18:41
jam-laptopit is claimed to be present in this18:41
lifelessohkies18:41
lifelessthe b array, or the entry for b in the root array ?18:41
jam-laptopthe entry for b in the root array18:41
lifelessblech18:41
jam-laptopbefore: p [[(z[1][0][0],z[0][:2]) for z in a[1]] for a in self._dirblocks]18:41
jam-laptop[[('d', ('', ''))], [('a', ('', 'a')), ('d', ('', 'b')), ('a', ('', 'rootfile'))], [('r', ('a', 'b'))], [('f', ('b', 'b'))]]18:41
jam-laptopafter: p [[(z[1][0][0],z[0][:2]) for z in a[1]] for a in self._dirblocks]18:42
jam-laptop[[('d', ('', ''))], [], [], [('f', ('b', 'b'))]]18:42
lifeless'I shall not write untested helper functions' * 50018:42
jam-laptopIt is a bit hard to parse18:42
jam-laptopbut that is the status in this tree18:42
jam-laptopfollowed by the path18:42
jam-laptopfor each directory block18:42
jam-laptopand you can see that the root dirblock still exists, as does the 'a' and 'b' dirblocks18:43
jam-laptopbut the root dirblock is now empty18:43
jam-laptoplifeless: I'm logging into skype now19:04
=== mw|food is now known as mw
lifelessjam-laptop: thanks!20:03
jam-laptopnow we just need to figure out why you woke up at 3am :)20:03
jam-laptopif it was an issue of you already being awake, I think most of us would understand, but just waking up....?20:04
lifelessjam-laptop: 4am today :)20:05
lifelessjetlag20:05
lifelessveryt tired at 9pm20:05
lifelessso went to sleep20:05
lifeless7 hours later20:05
lifelesstada I'm awake :)20:05
jam-laptopI forgot about the daylight savings time switchover20:06
jam-laptoplifeless: found it... man is it weird20:08
jam-laptopyou have a call for20:09
jam-laptop                for pos, entry in enumerate(block[1]):20:09
jam-laptop...20:09
jam-laptop                    if len(deleted_positions) == len(block):20:09
jam-laptop                        del block[1][:]20:09
jam-laptopdo you see the bug?20:09
jam-laptop(len(deleted_positions) == len(block[1]))20:09
lifelessfark20:12
lifelessgreat catch20:12
jam-laptopso, what is a good way to test that20:12
lifelessdirstate specific test I think20:12
lifelesssetup a failure and call discard directly20:12
jam-laptopyeah, that is what I was thinking20:12
jam-laptopmaybe have a few permutations of tests for _discard_merge_parents20:13
lifeless05:42 < lifeless> 'I shall not write untested helper functions' * 50020:13
jam-laptoplifeless: speaking of which ['I shall not write untested helper functions'] * 500 is probably better20:13
jam-laptopor at least put a '\n' at the end20:13
lifelessrofl20:13
geekfishhello everyone20:28
geekfishI was wondering if there is anyone here who can help me with something20:29
lifelesstry asking the question :)20:30
geekfishI need version control for a project of mine, I'm working together with another person. We were searching for possible solutions and I found the "partner" workflow.20:31
geekfishI just can't figure out how one can practicaly make this work :/20:31
lifelesswell, what have you tried so far?20:32
geekfishwell, I haven't tried anything specific, I'm a little lost20:32
geekfishsorry if this sounds too general20:32
geekfish(and if my english isn't totaly correct)20:32
lifelessgot a url to whats confusing you?20:32
lifelessyour english is better than my french20:33
jam-laptopI'm pretty sure he is talking about http://bazaar-vcs.org/Workflows20:33
jam-laptopProbably explicitly: http://bazaar-vcs.org/Workflows#head-55f80fdd1cfe8503703241ae491839c94332700020:34
geekfishhm, yes, that's where I found it20:34
lifelesswow thats a confusing document20:34
lifelessI mean, I know this stuff but the pictures are hard to interpret20:35
geekfishmy problem is that I don't understand the way you can synchronize20:35
lifelesswe should like to the tutorials, or have more detail there.20:36
jam-laptoptime to reboot... :( bbiab20:36
lifelessgeekfish: bzr push to publish your work somewhere your other person can access, and they use bzr merge URL + bzr commit, to sync20:36
lifelesstime for some food, I'll be back in about 15; try reading the tutorials they will give you details on using bzr20:37
lifelessthe workflow is about organisation not specific commands20:37
geekfishhm, yes, I understand20:37
geekfishI suppose I'll have to search most of it by myself20:38
geekfishthanks :)20:38
igcmorning all20:42
lifelesshi20:43
lifelessigc: so I'm going to nag you about doing some code too21:10
igclifeless: I'm working on bug 6700 right now21:11
ubotuLaunchpad bug 6700 in bzr "bzr diff -r 10..20 http://foo" unsupported" [High,Confirmed] https://launchpad.net/bugs/670021:11
igchope to have a patch out today21:11
lifelessigc: woot!21:11
lifelessif you want to chat about it, I'd be delighted to21:11
igcthanks - I'm right so far. Made lots of progress yesterday21:12
=== cprov is now known as cprov-away
wamHi, I couldn't find the cvs-like workflow explained in commands. Is bzr commit; bzr push - and on the other end bzr pull the equivalent to cvs commit, cvs update?21:33
lifelesswam: if you want cvs workflow, just use the commands cvs has -21:34
lifelesscheckout; commit21:34
wamlifeless: ah - the commands are on the arrows ;) Ok - understood now. Thanks ;)21:34
wamI'm using it for a year now and meanwhile it's the only vcs I'm using. I even could encourage other peope to move to bzr. Right now I'm having to use other workflows due to customer's wishes. Thanks for that great software ;)21:37
wamWith which software did you create the graphics? Which iconsets are these? http://bazaar-vcs.org/Workflows21:43
lifelessprobably inkscape and tango21:45
lifelessjam-laptop: I think with a little horizontal extraction we could have just one lru class and two helpers21:53
lifelesswith less duplication21:53
jam-laptopprobably21:53
lifelessjam-laptop: anyhow, I've put it up, same fileids.21:53
lifelessit looked good enough to merge to me21:53
jam-laptopI was trying to make the check fairly fast21:53
lifelessso if you want to +1 I'll push it in.21:53
flacostehello, anyone can tell me how to resurrect a directory?21:56
flacosteseveral revisions ago, I incorrectly removed a directory while doing a merge21:56
flacosteso uncommit is impractical here21:57
flacostei want to say "please add back that directory as if I had never touched it"21:57
jam-laptopflacoste: bzr revert21:57
flacostejam-laptop: i thought that revert only removed changed in the working dir21:57
jam-laptopflacoste: 'bzr revert -r -10 directory'21:58
flacostehmm, the help says Revert files to a previous revision.21:58
jam-laptopshould do what you want21:58
flacosteright, thanks a lot!21:58
jam-laptopfor whatever -r before you removed it21:58
flacosteany quick thought on how I could find that out?21:58
* igc food21:59
flacostebzr log <path-to-removed-directory> tells me that the Path does not have any revision history22:00
=== phanatic_ is now known as phanatic
lifelesshgrep would help :)22:03
lifelessflacoste: bzr log -v | less22:03
lifelessflacoste: look for the path you want22:03
lifelessflacoste: or use bzr ls -r path and do bisection22:03
flacostelifeless: thanks bzr log -v worked22:06
abentleyquicksilver: Cart actually uses loggerhead as its source viewing library.  It's coming along quite nicely, I think.  Once I'm done with schema changes, I plan to release it.22:41
lifelessabentley: it's still taking most of your hacking time ?22:48
abentleylifeless: No, sadly.  I don't seem to get as much hacking time as I used to.23:00
abentleyWhat's the current schedule for the next version?  I'm trying to decide whether it's worth trying to implement rich-root, no-subtree formats.23:09
lifelesspoolie knows more than I23:10
lifelessI think though that as its 1.0 its better not to rush through to such a thing; 1.0 should be a matter of polish not of changing default formats23:11
abentleyIf I did it, it would be non-default, but at least the knit version would not be flagged experimental.23:12
lifelessI'd really like to get the patch from LarstiQ23:12
lifelessLarstiQ: btw, where is your branch; I don't care if its not finished at the moment noone else can collaborate on it23:13
lifelessAIUI subtrees are usable with that patch.23:13
abentleylifeless: Well, the last time I put it up for review, no one did.23:13
abentleyAnd it's quite a lot more involved than introducing a new format.23:13
lifelessabentley: yah, it was a bad time23:13
lifelessat least for me I was under a tad of pressure23:13
abentleyThe point being that, although it would be awesome to get it merged, it's a lot more work to get ready and to get merged.23:14
abentleyAnd pragmatically, we can't afford to keep making svn converts use an experimental format.23:15
lifelessI worry that we will have holes in our rich root no-subtrees stuff, because we only really test all or nothings23:19
abentleyWell, that's reasonable.  Obviously, I'll add it to the repository_implementation and interrepository_implementation tests.  Any suggestions what else I should do?23:24
fullermdI thought there was some discussion a while back about making subtree capability a branch flag or something, rather than a repo format.23:26
abentleyfullermd: Yeah, and the outcome was that we should make it be determined by the working tree.  I said I'd do that.  I didn't.  I'd rather mess with repo formats than dirstate.23:29
fullermdSounds like a good choice to me.  Dirstate likes jumping out at me and going "boogieboogieboogie", and I'm not even poking at its innards with a knife.23:30
lifelessabentley: I don't see that you'd have to touch dirstate23:40
tandersonDoes bazaar support any type of virtual accounts for authenticating users that are doing commits or must they be system accounts? (I'm a subversion user, but the bazaar project looks really interesting to me so I'm doing some research to see what I would do to convert my svn repos)23:40
abentleytanderson: Bazaar supports any authentication system that you can set up with ssh, ftp or (with a plugin) WebDAV.23:46
abentleyCertainly there are ftp and WebDAV servers that allow you to set up authentication that's not based on system accounts, and I believe there are SSH/SFTP servers that do the same.23:48
tandersonabentley: That is great.  I know that I can do virtual accounts with my FTP server but I've never looked into doing this with ssh/sftp23:50

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