/srv/irclogs.ubuntu.com/2012/10/12/#bzr.txt

mark06why the same branch is 7MB fresh new from Launchpad and 30MB in the copy where I've recommitted whole branch?04:56
mark06I thought uncommit mean it04:57
spivUncommit doesn't delete the commit from the repository04:58
spivIt just changes the branch to no longer refer to it.04:58
bob2did 'bzr gc' ever get implemented?04:58
mark06annoying04:58
mark06how to really uncommit it? or delete from repository if you prefer04:59
spivAlso, you will probably find 'bzr pack --clean-obsolete-packs' reduces the size of the bzr directory (note that bzr will do that housekeeping automatically from time to time without you needing to do it manually)04:59
mark06does it delete uncommitted commits?05:00
spivUntil someone implements the hypothetical 'bzr gc' command bob2 mentions, you have to do it manually: create a new repo, and branch into that (omitting any branches and thus revisions that you don't want).05:00
bob2no05:00
bob2you can reclone if you really care05:00
lifelessdidn't someone implement gc in a plugin ?05:01
spiv(If you only have one branch, then this is simply 'bzr branch original-dir new-dir')05:01
spiv(and are using standalone branches, I should add)05:01
mark06well I only create branches with bzr init, does that qualify?05:02
spivIf you never used bzr init-repo, sure.05:02
mark06so it's basically bzr branch $each $each.new && rm -r $each?05:04
mark06right I never used bzr init-repo05:05
mark06btw, I was thinking of gathering together some scripts of mine which currently have their own branches, but if I use a single branch I'll lose individualized history for each script05:08
spivRight.05:08
spivThere are ways to merge unrelated branches without losing history.05:08
mark06so I wondered if I could create some sort of "multi-branch", is that what repos are about?05:09
spivSearch the mailing list archives, IIRC the 'bzr merge-into' plugin may help05:09
spiv(Also "bzr merge -r0..-1 $unrelated_other" for simple cases)05:10
spivNo, shared repos are simply about efficiency.05:11
spiv(If you have N branches of a project, the vast majority of history will be exist in more than 1 branch, but if they share a repo each revision is only stored once.  This unsurprisingly saves a heap of disk space and makes things faster.)05:12
spivUgh, pardon the mangled grammar :)05:12
fullermdI think jam wrote a gc plugin.  A very long time ago.  Like pre-2a ago, if not earlier...05:12
mark06ok, but your suggestion will only work for past commits not new ones, right05:13
fullermdYou can merge multiple unrelated branches together; I do it all the time.  Can't work with them independently after that though.05:13
fullermd(well, you can, on the original unjoined bits, but post-join work is all somewhat irrevocably joined)05:14
mark06well, actually I can bzr [q]log filename, then I'll see individual histories separately05:15
fullermdYes, but I mean you can't turn that one joined branch back into N separate branches.05:16
mark06ok I mean about the whole idea of multi-branches, not needed at all... the only inconvenience is need to specify component in commit messages for global log not being confusing, but it's ok05:18
mark06either way, I think you can hack into uncommit and revert to unmerge separate branches... original commit dates could be kept with --commit-time in the new branch...05:20
mark06which I just found out after recommitting all my problematic branches :(05:21
fullermdOnly by backing up to before they're merged together (which kinda beats the dolphin).05:21
mark06btw I have recommitted some branches due to a bug between MSVCRT and MSYS, but in the meanwhile I found out what seems a bug with qlog...05:23
mark06commit times were being kept 1 hour forward (timezone -2) but even after fixing that (timezone -3) qlog seems to still be confused...05:24
mark06maybe still referencing replaced  commits? I haven't found a pattern to reproduce and file a bug though05:25
=== mark06 is now known as mark06-away
=== mark06-away is now known as mark06
=== mmrazik is now known as mmrazik|afk
=== mmrazik|afk is now known as mmrazik
* fullermd waves at vila.08:13
jelmermgz!08:18
mgzmorning08:18
mgzhow are you today jelmer?08:20
jelmerin need of coffee08:23
jelmermgz: how are you?08:23
mgznot quite arrived at coffee yet :)08:24
vilafullermd: \o08:26
vilahi jelmer, mgz ;)08:26
mgzhey vila!08:26
=== lifeless_ is now known as lifeless
vilalifeless: happy EOJ ;) Have fun !08:40
lifelessvila: thanks08:47
=== mmrazik is now known as mmrazik|lunch
=== mmrazik|lunch is now known as mmrazik
=== maxb_ is now known as Guest72551
=== carif_ is now known as carif
Limit_hi!16:02
Limit_I am unable to connect to launchpad using bzr16:02
Limit_It shows connection reset and I wanted to know if I could ask bzr to make requests at specific ports. Any help?16:03
Limit_SSH in my college is blocked. Can anyone suggest an alternative way to connect to Launchpad using bzr ?16:24
vilaLimit_: then no write access for you :-/ http should be fine to read though16:29
Limit_vila: so I would atleast be able to fetch code??17:10
mgzLimit_: yup, you need to remove your launchpad login from your config and ignore bzr telling you you've not logged into launchpad17:12
mgzthat means removing 'launchpad_username' from bazaar.conf and deleting the launchpad.net section of authentication.conf17:13
Limit_mgz: oh! that would atleast partly solve my problem! thanks :)17:13
mgzrunning `bzr version` will tell you where to find those17:14
mgzthen when you branch lp:PROJECT it'll use the http link (which your college probably don't filter)17:14
Limit_mgz: new doubt. When  I try to upload code the next time, I'll have to add the launchpad_username and add info in authentication.conf, right?17:15
mgzLimit_: just `bzr launchpad-login YOURLPNAME` would be enough, but if this is a laptop and you're going on and off networks with ssh support that would still get annoying17:20
mgzwhat I had for a long time, was a pristine copy of trunk that was linked to the http location of the branch on launchpad17:21
mgzbut then when I did feature branches that needed pushing rather than just pull, had my lp name in so push lp: used ssh17:22
Limit_mgz: yes i have a laptop and that was the reason I asked you :)17:24
vilainteresting use case, worth a bug, this screams: configure me !17:25
Limit_vila: I don't understand what configuration changes would be useful in this case17:25
vilaa way to switch from places with ssh and the others17:27
vila*ssh access17:27
viladid you try asking your admins to allow ssh access by the way ?17:28
Limit_Yes I did17:29
Limit_They simply denied.17:29
Limit_vila: about the configuration, we just need to write a script that swaps 2 configurations :) I have already created one for home and one for college. The script would name the required one as bazaar.conf or authentication.conf :)17:30
vilathey denied blocking ssh ?17:30
Limit_no, they denied unblocking SSH17:31
vilaoh, as in they refused (sorry, not a native) ?17:31
Limit_vila: Yes. we are not having SSH connection which stops me from pulling/pushing code.17:31
vilaLimit_: otherwise, you're right, a simple script can do. You'll have to remember modifying the two copies in sync though17:32
Limit_vila: yes17:32
fullermdWell, the usual solution to such blocking is "just tunnel it over ssh"...   ;>17:33
Limit_fullermd: I could tunnel SSH over HTTP but, I don't think launchpad would accept the code that is pushed over HTTP17:34
fullermdOh, well, you could just encode those as DNS TXT packets for the transfer.17:35
Limit_fullermd: I am sorry I didn't get you. Can you explain DNS TXT?17:38
* fullermd is being a little facetious ;p17:38
fullermdIsn't there a way you can make arbitrary location aliases on a branch?  There's also the bookmarks plugin.17:39
fullermd(you'd still have to spec the location when you're on whichever network you consider the special case, but it'd save you typing out the full deals)17:40
mgzjust having the http link as the parent worked suprisingly well for me17:42
mgzwasn't often I wanted to do more than pull trunk and hack locally17:43
Limit_mgz: yes it will let me work on my code. It's just that for the time I am in college I'll have to submit patches.17:43
=== deryck is now known as deryck[lunch]
=== deryck[lunch] is now known as deryck
janos__in bzr explorer, is there a way to remove the [Toolbox] somehow?21:31
janos__i mean permanently, with configuration or something21:32
janos__the thing is, every time i click refresh it comes back21:33
janos__maybe that's not clear enough21:34
janos__here's what i mean:21:34
janos__create a branch: bzr init tmpbranch21:35
janos__open bzr explorer on it: bzr explorer tmpbranch21:35
janos__the top-right part is the "Toolbox"21:35
janos__it's something you hardly ever use (me, never)21:35
janos__you can click the [x] button, it will go away, but only until you hit refresh21:36
janos__a workaround that helps a bit: snap the Toolbox out of the frame, and then snap it back in -> this creates some sort of tabbed window, with the Toolbox and the Working Tree as tabs. This is better, because I can just switch to the Working Tree tab, the Toolbox will not be visible that way, and this layout is preserved even if I refresh21:39
janos__but i have to do this every time i launch bzr explorer21:39
w7zjanos__: don't know off hand, but one way or another should be possible to remove it21:45
janos__w7z: so there is hope!21:49
w7zif nothing else, you can probably comment it out in the python21:50
=== yofel_ is now known as yofel
janos__w7z: probably21:52
janos__w7z: i need this for some non-programmer friends, it won't look very good if i have to tell them to go into the python code and comment out line X21:54
janos__well if there is no other way it's better than nothing21:55
w7zjanos__: try line 205 in explorer.py21:56
w7zhttp://bazaar.launchpad.net/~bzr-explorer-dev/bzr-explorer/trunk/view/head:/lib/explorer.py#L20521:57
w7zcomment out that in your local copy21:57
w7zor poke this function:21:57
w7zhttp://bazaar.launchpad.net/~bzr-explorer-dev/bzr-explorer/trunk/view/head:/lib/explorer.py#L70821:57
w7zthat looks like it has preferences you can set21:58
janos__ok hang on21:58
w7zso try setting those preferences to false21:58
janos__thanks w7z, this is gooood!22:00
w7zyou found the preferences and that did the right thing?22:01
janos__L205 just made the toolbox displayed popped out, the other one around L708 does what I want, I just set tbox_applicable = False ignoring all the ifs22:02
janos__w7z: i'm having the impression that i could set preferences somewhere, that way my friends don't have to edit python code22:06
janos__w7z: any ideas where that might be? maybe somewhere under ~/.bazaar ?22:07
janos__uhm, it's the DEFAULT_PREFERENCES['toolbox-on-status-view'] what i want to override to False, wonder if the setting is exposed somewhere in the UI or config file22:15
janos__w7z: got it! it's in ~/.bazaar/explorer/explorer.conf22:24
janos__i can set there the toolbox-on-* to false22:25
janos__thanks a lot w7z this is great!22:25
janos__gotta go now, bye all22:26

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