[00:46] <lduros> I have a dev branch and a trunk branch
[00:46] <lduros> for some reason I did bzr pull ../trunk
[00:46] <lduros> to the dev
[00:46] <lduros> and now I'm on my trunk in the dev
[00:46] <lduros> since it was checkout, the remote is just teh same
[00:46] <lduros> how can I revert back
[00:47] <mgrandi> i believe pull just pulls the revisions and sets the head, you might be able to set the head
[00:47] <mgrandi> maybe 'bzr heads'?
[00:47] <lduros> ?
[00:47] <lduros> but there used to be 889 revisions to dev
[00:47] <lduros> now it's the 539 from the trunk
[00:47] <lduros> I'm lost
[00:47] <lduros> haha
[00:48] <lduros> most of the stuff in dev were merged in trunk thank god for that
[00:48] <bob2> throw it away and reclone
[00:48] <mgrandi> they are in the repository most likel;y
[00:48] <lduros> bob2: but the remote is also 539 now
[00:48] <bob2> so ypu pushed it?
[00:48] <bob2> or did you unfortunately use a bound branch
[00:48] <lduros> no but it was checked out
[00:48] <lduros> or something
[00:48] <lduros> yeh
[00:48] <lduros> bound branch
[00:48] <bob2> sadness
[00:49] <lduros> so there's nothing to do?
[00:49] <lduros> it just gets replaced like that in an instant
[00:49] <lduros> seems pretty crazy to me
[00:49] <mgrandi> there has to be a way to set the head
[00:49] <lduros> took like half a second
[00:49] <mgrandi> since all the revisions are there
[00:49] <lduros> here is the dev: http://bzr.savannah.gnu.org/lh/librejs/dev/changes
[00:49] <mgrandi> did you try bzr heads and see
[00:49] <mgrandi> if it listed the dev one?
[00:50] <lduros> here is the trunk: http://bzr.savannah.gnu.org/lh/librejs/trunk/changes
[00:50] <lduros> bzr heads doesn't seem to exist
[00:50] <lduros> unknown command heads
[00:50] <bob2> it's easy
[00:50] <lduros> it says
[00:50] <mgrandi> says its in the bzrtools plugin for me
[00:50] <bob2> repush the correct branch
[00:50] <bob2> and heads is a plugin
[00:50] <lduros> bob2: but I don't have the correct branch anymore
[00:50] <bob2> get it then
[00:50] <lduros> where?
[00:50] <bob2> do you not know the old revision id?
[00:51] <lduros> 889 I think
[00:51] <mgrandi> the full revision id
[00:51] <mgrandi> the one you get from testament i think
[00:51] <lduros> from testament?
[00:51] <lduros> I don't get it
[00:51] <mgrandi> revision-id: markgrandi@gmail.com-20120602005836-b3b0uowcgjql8epb
[00:51] <mgrandi> like that
[00:52] <lduros> I use bzr but not in an advanced way
[00:52] <lduros> how can I tell the revision id like that?
[00:52] <bob2> it's definitely possible to recover
[00:52] <bob2> maybe ask on the mailing list
[00:52] <mgrandi> look in bzr.log
[00:52] <bob2> ps bound branches are bad mmmkay
[00:52] <lduros> haha
[00:52] <mgrandi> when you commit
[00:52] <lduros> well i'm learning that now
[00:52] <mgrandi> it will tell you the revision id
[00:52] <mgrandi> so look for when you commited revision 889 or whatever
[00:52] <lduros> because it's pretty easy to do a pull ../trunk instead of merge ../trunk
[00:53] <lduros> but that commit is gone
[00:53] <lduros> since it's the other branch now
[00:53] <lduros> dev is trunk
[00:53] <lduros> no?
[00:53] <mgrandi> its still in teh repositiory
[00:53] <mgrandi> so you can recover it.
[00:54] <lduros> oh yeh
[00:54] <mgrandi> so search the log file for 889 or whatever it was
[00:54] <lduros> ok
[00:55] <mgrandi> and bound branches arn't that bad, although it does seem silly that a pull will automatically push to the remote branch
[00:55] <lduros> if you look at the branch changes: http://bzr.savannah.gnu.org/lh/librejs/dev/changes/541?start_revid=541
[00:55] <lduros> it's only those for trunk
[00:55] <lduros> that are now in dev
[00:55] <mgrandi> just search for the 889 string in bzr log
[00:56] <mgrandi> see if you can get the revision-id
[00:56] <lduros> ok
[00:56] <lduros> like that right: bzr log | grep "889"
[00:56] <lduros> I can't see anything
[00:57] <mgrandi> try 'commited'
[00:57] <mgrandi> did you commit the last revision on this computer?
[00:57] <lduros> i don't think so
[00:58] <lduros> ah well, I'll just give up I guess
[00:58] <lduros> haha
[00:58] <lduros> It's not the endo f the world, but it does suck
[00:58] <lduros> what if you are in charge of a huge project :-)
[00:58] <lduros> and that happens
[00:58] <mgrandi> you can get it back
[00:58] <mgrandi> the data is still there =P
[00:58] <mgrandi> just gotta find that number
[00:58] <mgrandi> or ask on the mailing list, maybe there is an easier way
[00:58] <lduros> it's still even in the remote repo?
[00:59] <mgrandi> yeah.
[00:59] <mgrandi> i think this would happen in git / hg / whatever too =P
[01:00] <lduros> hehe
[01:00] <lduros> ok i'm writing to the mailing list
[01:01] <fullermd> If pull didn't require --overwrite, then trunk _did_ have everything dev did.
[01:03] <mgrandi> yeah. you just have to reset what is the 'head' revision
[01:04] <fullermd> Right, I'm pointing at "<lduros> most of the stuff in dev were merged in trunk thank god for that"
[01:04] <fullermd> It wasn't most, it was all, else the pull wouldn't have Just Worked.
[01:04] <lduros> fullermd: really?
[01:04] <lduros> it would have choked on it?
[01:05] <fullermd> bzr: ERROR: These branches have diverged. Use the missing command to see how.
[01:05] <fullermd> Unless you did a --overwrite or something, pull won't run if the remote isn't a superset of the local.
[01:06] <fullermd> Or less stiltedly, if the pull will mean your local branch no longer has something it had before.
[01:07] <lduros> ah ok
[01:07] <lduros> so that's one good news
[01:07] <lduros> I still posted that email on the mailing anyway
[01:07] <lduros> just curious :-)
[01:07] <lduros> but thanks it really makes me feel better now
[01:07] <lduros> 541 seems less "important" than 889 though
[01:08] <lduros> I thought I'd get to a 1000 commits all by myself and throw a party
[01:08] <lduros> :-P
[01:08] <mgrandi> heh
[01:08] <fullermd> Oh, but it's more fun this way.  It means you can get to a thousand commits MULTIPLE times!
[01:09] <lduros> haha
[01:09] <fullermd> The real trick is spacing them out enough that you're in good enough shape for each party...
[01:09] <lduros> it's funny how revision numbers really mean nothing in bzr
[01:09] <mgrandi> they do
[01:09] <mgrandi> just in the context of the branch
[01:09] <lduros> well they do but only in a branch
[01:09] <lduros> yeh
[01:10] <mgrandi> if you do a qlog then you see that all the merged ones are like 400.1 - 400.100 etc
[01:10] <lduros> it's a completely different take than git
[01:10] <lduros> i like the revision numbers though, easier to remember
[01:10] <lduros> that SHA1 hashes
[01:10] <lduros> :-P
[01:10] <mgrandi> its the same idea, kts just that bzr gives you numbers, yeah
[01:10] <mgrandi> sha1 are the most unmemorable things ever
[01:10] <fullermd> It does have its downsides.  It means when you compose a clever little jingle from the revno in the commit message, years later nobody will get the joke   :|
[01:10] <lduros> hehe
[01:11] <lduros> also I have to stop running rm -rf dev/
[01:11] <lduros> everytime there's a problem maybe :-)
[01:11] <lduros> better to do mv dev dev-bck
[01:11] <lduros> haha
[01:11] <fullermd> Well, doing it once or twice in / will cure you of that...
[01:11] <lduros> hha
[01:12] <lduros> everytime there's a problem I tend to run rm never think to run mv
[01:12] <fullermd> Funnily enough, I needed to make a new FS for working on something last week.
[01:12] <fullermd> Needed a name.  Well, it was just for development, so I can just call it /dev!
[01:12] <fullermd> Hey, wait, why is bzr suddenly blowing up when I try to run it?
[01:13] <fullermd> Hm, everything else is too.  What the he...   oh, no...
[01:13] <lduros> hehe
[01:14] <lduros> that reminds me I should make backups of my ssh and gpg keys
[01:14] <lduros> haha
[01:14] <fullermd> Anyway, back a little less off-topic.  Probably, the last thing on the dev branch was part of a recent merge to trunk, so if you look back through log (paying especial attention the merges), you may be able to spot it that way to restore if you want to.
[01:15] <lduros> hmm
[01:15] <lduros> so when you make a merge
[01:15] <mgrandi> yeah, thats what i suggested, i think lduros did it on another computer so
[01:15] <lduros> all of those revisions are kept
[01:15] <lduros> those revisions from the other branch? they're not merge into one revisions in the new branch
[01:16] <lduros> i guess i can't wrap my head around how things work
[01:16] <lduros> yeh I do a lot of my gnu development during my work lunch break
[01:16] <lduros> so some is probably at work
[01:17] <lduros> I guess I'll keep working on trunk for the night
[01:18] <mgrandi> they are kept in the repo, it doesn't delete any revision
[01:18] <mgrandi> just creates new ones
[01:19] <fullermd> Merge makes a new rev to connect the merged revs in, but they're all still there individually.
[01:19] <lduros> ah
[01:48] <lduros> Fixed! :-)
[01:49] <lduros> I guess that's what you all were talking about: https://lists.ubuntu.com/archives/bazaar/2012q2/074860.html
[01:50] <lduros> the reason I couldn't find revno 889
[01:50] <lduros> is because it was 886
[01:50] <lduros> haha
[01:50] <fullermd> Well, we can hardly be held responsible for you running around with your monitor upside-down   :p
[01:52] <lduros> heh
[01:58] <bob2> ps unbind
[02:09] <lduros> bob2: yes, definitely
[11:27] <sbarcteam> hi.
[11:28] <sbarcteam> I have revisions 121, 122, 123 the last revisions.
[11:28] <sbarcteam> I want to remove changes introduced by 122
[11:28] <sbarcteam> how do I do this ?
[11:28] <sbarcteam> bzr revert -r-3..-2 ?
[11:29] <sbarcteam> or bzr merge . -r-3..-2 ?
[12:14] <matanya> why do I get : bzr dh-make hello-2.7 hello-2.7.tar.gz  bzr: ERROR: command 'dh-make' requires argument TARBALL
[12:14] <bob2> bzr help dh-make
[12:17] <matanya> than ks
[12:17] <matanya> but how does that help?
[12:18] <bob2> because then you'll know how to use it
[12:20] <matanya> I use the right syntax, don't I?
[12:22] <matanya> bob2: I didn't understand
[12:22] <bob2> ok
[12:22] <bob2> good luck
[12:22] <matanya> ?
[12:32] <matanya> anyone else?
[12:33] <gthorslund> matanya: I've not used it, but looking at http://doc.bazaar.canonical.com/plugins/en/builddeb-plugin.html#dh-make it appears you're missing a VERSION string.
[12:33] <matanya> 2.7
[12:34] <gthorslund> so the name of your tar ball is used as version string instead.
[12:34] <gthorslund> you've only got two strings as argument for dh-make
[12:34] <gthorslund> 1) hello-2.7 2) hello-2.7.tar.gz
[12:34] <matanya> so  bzr dh-make hello 2.7 hello-2.7.tar.gz
[12:34] <gthorslund> #2 should have been #3
[12:34] <gthorslund> guess that would be more right
[12:35] <matanya> bzr: ERROR: Either run the command from an existing branch of upstream, or move hello-2.7 aside and a new branch will be created there.
[12:35] <matanya> ok. rm hello-2.7 worked
[12:35] <matanya> thanks
[12:36] <gthorslund> you're welcome. good luck.
[13:10] <Merwin_> hey
[13:11] <Merwin_> I've got a question ! I use colo-switch to move between branch. The problem is that if I'm working on a new Python module, I always got a conflict because bzr does not remove *.pyc, *.pyo files from the new module's dir. So I got a "unable to remove directory : not empty" when switching back to my old branch.
[13:11] <Merwin_> That's just really annoying, how can I fix that ?
[13:21] <wgz> Merwin_: to resolve that conflict, just delete the directory and vestigal pyc files then do `bzr resolve dir`
[13:22] <wgz> to avoid it in future there's a config setting that will move stuff like that to a seperate directory rather than causing conflicts
[13:26] <wgz> which I'm failing to find the name of, vila will know.
[13:26] <vila> bzr.transform.orphan_policy=move
[13:27] <vila> in either bazaar.conf or your branch.conf
[13:39]  * vila thinks we should 1) rename it to something more sensible, 2) turn it on by default
[13:40] <vila> I think we'll get less reports for people searching for their orphans than we get for the spurious conflicts
[13:50] <Lo-lan-do> Hi all :-)
[13:50] <Lo-lan-do> I'm wondering about checkouts (bound branches) and how a commit works there.
[13:51] <Lo-lan-do> I know that the revision is half-committed locally, then pushed, then fully committed locally if the push succeeds and rolled back otherwise.
[13:52] <Lo-lan-do> But my question is: could that push be turned into a dpush if, for instance, the remote branch were stored in a git repository?
[13:52] <Lo-lan-do> This way we could keep a normal workflow of simply committing and not worrying :-)
[14:45] <Merwin_> wgz, vila bzr resolve --action=take-other should work fine ?
[14:45] <Merwin_> Yeah but anyway, I'll still have the conflict :x
[14:45] <Merwin_> I'll try the bzr.transform.orphan_policy
[14:46] <vila> Merwin_: yeah, the idea it to *avoid* the conflict
[14:46] <Merwin_> yep :D
[15:44] <abentley> vila: Is there any way to use a colocated branch's name in a config, the way I can use appendpath to add a branch's location?
[15:46] <vila> abentley: I'm not sure I understand what you call a colocated branch's name
[15:46] <vila> appendpath was only usable in locations.conf
[15:47] <abentley> vila: the part that comes after the = in "file:///foo/bar,branch=name"
[15:48] <abentley> vila: I would be fine with a solution that was  only usable in locations.conf.
[15:50] <vila> abentley: there are 'relpath' and 'basename' that replace what appendpath was providing but it's still unclear to me on how you would specify a section for a colocated branch (or if it will work)
[15:51] <abentley> vila: I don't want to specify a section for the colocated branch, just the container.  e.g. "[/foo/bar]" for the previous example.
[15:52] <abentley> vila: Say I have project bar, and I'm using colocated branches, and I want to push them to Launchpad without having to specify the push location.
[15:54] <vila> abentley: each colocated branch into its own launchpad branch ?
[15:54] <abentley> vila: Yes.
[15:54] <vila> well, I don't think push supports that :-/
[15:55] <vila> and I never looked at how config behaves for colocated branches to be honest
[15:56] <vila> does launchpad authorizes the additionnal paths used for colo branches ?
[15:57] <abentley> vila: Sure push supports that.  It's not a colocated branch on Launchpad, just a regular branch.
[15:57] <abentley> vila: I'm doing it manually all the time.
[15:57] <vila> That's not what I meant by supporting the additional paths used by colo branches :)
[15:58] <abentley> vila: I doubt launchpad authorizes the additional paths used by colo branches.  Since launchpad wouldn't recongnize colo branches if it did, that's for the best.
[17:52] <converge> I created a local branch and commited my code, how can I push it to remote branch ?
[18:11] <converge> I created a local branch and commited my code, how can I push it to remote branch ?