/srv/irclogs.ubuntu.com/2011/07/30/#bzr.txt

RenatoSilvaI think if it doesn't conflict with any further revision, there could be a way to do it, it's just reverting the diff (because of no conflicts, it'd be just like undoing the revision manually)00:00
Noldorin_explain what you mean first00:00
RenatoSilvaNoldorin_: I'm not NES. Non-last is one that is not the last, that is, one from 1..-200:01
RenatoSilvarevert is undoing the changes00:01
Noldorin_RenatoSilva, "revert a revision" is not well-defined though... we normally talk about "revert a working-tree" :-)00:01
RenatoSilvaNoldorin_: imagine revisions 1..23000:01
RenatoSilvaNoldorin_: the changes made by revision 222 need to be undone. I don't want to do this manually00:02
RenatoSilvaNoldorin_: that is, if the diff was -foo+bar, I need to -bar+foo, got it?00:02
Noldorin_RenatoSilva, ah i see00:02
Noldorin_RenatoSilva, so not "Revert" in ths bzr sense00:03
Noldorin_RenatoSilva, no that is not possible00:03
Noldorin_with any VCS i know00:03
RenatoSilvaNoldorin_: no, not $bzr revert00:03
fullermdA better term would be 'reverse'.00:03
Noldorin_it would require major changes to the way DVCS branches work.00:03
Noldorin_fullermd, indeed00:03
fullermdYou can do it with merge.00:03
fullermdYou can't _remove_ the rev.  But you can make a new rev that _reverses_ it.00:03
Noldorin_RenatoSilva, just commit the "un-diff" of that changeset00:04
Noldorin_fullermd, oh, with merge?00:04
RenatoSilvawhat's the diff between revert and reverse terms? Revert is rollback to a previous state, reverse is inverting/undoing?00:04
fullermdThe change you want to reverse is describable as "221..222" in this case.  So the reverse of it is "222..221"00:04
Noldorin_RenatoSilva, pretty much correct, yes00:04
fullermdSo a `bzr merge -r222..221 .`  (don't miss that last '.', to tell it 'merging from myself') would use the merge logic to reverse the changes, taking into account the stuff since then.00:04
RenatoSilvafullermd: I don't want to remove the rev, ok with new rev undoing it00:04
Noldorin_there's inverse, converse, reverse...it's a bit confusing even to a NES sometimes!00:05
fullermd(which may Just Work all shiny, or may have a giant pile of conflicts, depending on what all has happened since.  Luck of the draw.)00:05
RenatoSilvawhat if I miss the dot?00:05
Noldorin_fullermd, self-merging? and that simply modifies the working-tree?00:05
Noldorin_RenatoSilva, command won't run00:06
Noldorin_you need a merge source00:06
fullermdIt'll run, it'll just try to use the existing default merge source.  Which may not be what you want.00:06
Noldorin_oh, fair point00:06
Noldorin_but yeah, not appropiate.00:06
fullermdConceptually, it'll do the same thing as `bzr diff -r222..221 | patch`  (a.k.a, diff -r221..222 | patch -R; same thing).  So it leaves changes int he working tree.00:06
RenatoSilvaso "dot matters"00:07
Noldorin_yes00:07
Noldorin_it's crucial.00:07
fullermd(it's better than just diff | patch of course.  It'll take into account renames since then, for instance, and deal with lots of shifted-around lines.  But if the lines in question are themselves changed, it's gonna get ugly and rely on Natural Intelligence resolution methods)00:07
fullermdIt would still work right if, for instance, the default merge source were the parent branch, which was just an exact mirror.00:08
fullermdOr any time when 221 and 222 in whatever branch is resolves to are the same as the ones you have here.00:08
Noldorin_fullermd, to clarify: bzr merge -r -1..221 is equivalent to bzr revert -r 221 right?00:08
Noldorin_or bzr revert -r 220 perhaps00:08
fullermdBut it would take way longer to check if that was true than to just give it the .  ;)00:08
fullermdIt would be 221; remember that revs denote _states_, not _changes_.00:09
RenatoSilvaNatural Intelligence resolution methods => it will just point out conflicts to be solved manually right? or is it worse?00:09
fullermdI'd certainly call it 'roughly equivalent' at least.  I'd have to think a lot more to convince myself the end result would be exactly the same.00:09
fullermdIt'd certainly be slower anyway...   you could use merge (with --force) to have uncommitted changes kept around.00:09
Noldorin_fullermd, yeah...interesting. if there are differences, they must be subtle...00:10
fullermdRenatoSilva: Yah.  I was being a bit whimsical, compared to Artifical Intelligence.  Merges are just textual, and if they don't just resolve, it would take an entity understanding the code semantics (e.g., the programmer) to make it right.00:10
RenatoSilvafullermd: ok fullermd, big thanks. It's nice to think something could exist and it actually does :)00:12
Noldorin_anyone here got bzr-git working on Windows?00:14
RenatoSilvahere's the issue (three last comments): https://code.launchpad.net/~renatosilva/bzr-eclipse/cleanup/+merge/6862600:18
RenatoSilvadone, thanks all! https://code.launchpad.net/~renatosilva/bzr-eclipse/cleanup/+merge/6862600:36
Noldorin_jelmer, bug report at https://bugs.launchpad.net/bzr-git/+bug/818318.01:11
ubot5Ubuntu bug 818318 in Bazaar Git Plugin "Error using dpush" [Undecided,New]01:11
Noldorinhey jelmer06:51
bogglinwhen I run bzr branch bzr://bzr.savannah.gnu.org/emacs/trunk emacs I get the following error: bzr: ERROR: Connection closed: Unexpected end of message. Please check connectivity and permissions, and report a bug if problems persist.09:25
bogglinhow can i fix that?09:25
bogglinthis is bzr from macports on OS X09:26
=== yofel_ is now known as yofel
jelmerbogglin: hi10:26
jelmerdoes "bzr revno bzr://bzr.savannah.gnu.org/emacs/trunk" work?10:27
bogglinjelmer: thanks for your help - but I switched to git clone and that worked, so I guess this is a solved problem10:27
LekensteynIs it possible to ignore certain files when checking out, or even checkout a single directory without having to download the whole history? http://stackoverflow.com/q/6870801/42754510:56
jelmerLekensteyn: it's not possible to check out a single directory or anything like that10:59
jelmerLekensteyn: that said, it seems like a bug that it needs that much traffic11:00
LekensteynThis is a related bug: https://bugs.launchpad.net/loggerhead/+bug/24058011:01
ubot5Ubuntu bug 240580 in loggerhead "Ability to download a tarball for a revision" [Low,In progress]11:01
=== Lekensteyn is now known as Lekensteyn|away
kgoetzbzr does sometimes use bizzare amounts of bandwidth for stuff :/11:06
jelmer2.4 should be a lot better in that regard11:07
kgoetzwould hte server need to be 2.4 too?11:13
jelmerI'm not sure11:18
kgoetzok. i'll see next time i do 'stuff' with savannah :)11:19
kgoetzthanks11:19
jelmerkgoetz: oh, that reminds me11:36
jelmerI need to upload some bzr backports for squeeze11:37
=== Lekensteyn|away is now known as Lekensteyn
idnarwhy is bzr rebase telling me "No revisions to rebase"?14:54
idnarI think this has something to do with having merged from the target branch, but I'm not sure what to do now14:54
jelmeridnar: yeah, you can't rebase after merging because the changes are already present14:54
idnarso... I guess I don't understand rebasing then14:55
jelmeris there a particular reason you want to rebase?14:56
idnarI decided to extract some changes from this branch into another one, and now I want to rebase on that, so I thought the conflicts might be easier to deal with if I rebased on trunk first14:57
idnaranyway I guess I'll just do the other rebase directly14:59
idnar(maybe I should always rebase feature branches instead of merging from trunk)14:59
jelmeridnar: merging trunk should work better than rebase to prevent conflicts15:01
idnarwell, I managed to do this replay anyway, but I had some really weird conflicts15:05
idnarI guess that's mostly due to hand-cherry-picking stuff into the other branch to separate it out15:06
=== in3xes_ is now known as in3xes
=== in3xes_ is now known as in3xes
Noldorinhi jelmer20:28
Noldorinjelmer, hopefully you're around now..20:31
=== yofel_ is now known as yofel
Noldorinjelmer, ?21:20
jelmerNoldorin: hi21:57
jelmerNoldorin: just popping in for a minute or so, will be out for most of the night21:58
jelmerNoldorin: can you file a bug about the issue you saw? I can reproduce it here21:58
=== medberry is now known as med_out
Noldorin_jelmer, i already did :-P22:28
Noldorin_jelmer, i linked you to it22:28
Noldorin_jelmer, https://bugs.launchpad.net/bzr-git/+bug/81831822:29
ubot5Ubuntu bug 818318 in Bazaar Git Plugin "Error using dpush" [Undecided,New]22:29

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