/srv/irclogs.ubuntu.com/2012/06/05/#bzr.txt

ldurosI have a dev branch and a trunk branch00:46
ldurosfor some reason I did bzr pull ../trunk00:46
ldurosto the dev00:46
ldurosand now I'm on my trunk in the dev00:46
ldurossince it was checkout, the remote is just teh same00:46
lduroshow can I revert back00:46
mgrandii believe pull just pulls the revisions and sets the head, you might be able to set the head00:47
mgrandimaybe 'bzr heads'?00:47
lduros?00:47
ldurosbut there used to be 889 revisions to dev00:47
ldurosnow it's the 539 from the trunk00:47
ldurosI'm lost00:47
lduroshaha00:47
ldurosmost of the stuff in dev were merged in trunk thank god for that00:48
bob2throw it away and reclone00:48
mgrandithey are in the repository most likel;y00:48
ldurosbob2: but the remote is also 539 now00:48
bob2so ypu pushed it?00:48
bob2or did you unfortunately use a bound branch00:48
ldurosno but it was checked out00:48
ldurosor something00:48
ldurosyeh00:48
ldurosbound branch00:48
bob2sadness00:48
ldurosso there's nothing to do?00:49
ldurosit just gets replaced like that in an instant00:49
ldurosseems pretty crazy to me00:49
mgrandithere has to be a way to set the head00:49
ldurostook like half a second00:49
mgrandisince all the revisions are there00:49
lduroshere is the dev: http://bzr.savannah.gnu.org/lh/librejs/dev/changes00:49
mgrandidid you try bzr heads and see00:49
mgrandiif it listed the dev one?00:49
lduroshere is the trunk: http://bzr.savannah.gnu.org/lh/librejs/trunk/changes00:50
ldurosbzr heads doesn't seem to exist00:50
ldurosunknown command heads00:50
bob2it's easy00:50
ldurosit says00:50
mgrandisays its in the bzrtools plugin for me00:50
bob2repush the correct branch00:50
bob2and heads is a plugin00:50
ldurosbob2: but I don't have the correct branch anymore00:50
bob2get it then00:50
lduroswhere?00:50
bob2do you not know the old revision id?00:50
lduros889 I think00:51
mgrandithe full revision id00:51
mgrandithe one you get from testament i think00:51
ldurosfrom testament?00:51
ldurosI don't get it00:51
mgrandirevision-id: markgrandi@gmail.com-20120602005836-b3b0uowcgjql8epb00:51
mgrandilike that00:51
ldurosI use bzr but not in an advanced way00:52
lduroshow can I tell the revision id like that?00:52
bob2it's definitely possible to recover00:52
bob2maybe ask on the mailing list00:52
mgrandilook in bzr.log00:52
bob2ps bound branches are bad mmmkay00:52
lduroshaha00:52
mgrandiwhen you commit00:52
lduroswell i'm learning that now00:52
mgrandiit will tell you the revision id00:52
mgrandiso look for when you commited revision 889 or whatever00:52
ldurosbecause it's pretty easy to do a pull ../trunk instead of merge ../trunk00:52
ldurosbut that commit is gone00:53
ldurossince it's the other branch now00:53
ldurosdev is trunk00:53
ldurosno?00:53
mgrandiits still in teh repositiory00:53
mgrandiso you can recover it.00:53
ldurosoh yeh00:54
mgrandiso search the log file for 889 or whatever it was00:54
ldurosok00:54
mgrandiand bound branches arn't that bad, although it does seem silly that a pull will automatically push to the remote branch00:55
ldurosif you look at the branch changes: http://bzr.savannah.gnu.org/lh/librejs/dev/changes/541?start_revid=54100:55
ldurosit's only those for trunk00:55
ldurosthat are now in dev00:55
mgrandijust search for the 889 string in bzr log00:55
mgrandisee if you can get the revision-id00:56
ldurosok00:56
lduroslike that right: bzr log | grep "889"00:56
ldurosI can't see anything00:56
mgranditry 'commited'00:57
mgrandidid you commit the last revision on this computer?00:57
ldurosi don't think so00:57
ldurosah well, I'll just give up I guess00:58
lduroshaha00:58
ldurosIt's not the endo f the world, but it does suck00:58
lduroswhat if you are in charge of a huge project :-)00:58
ldurosand that happens00:58
mgrandiyou can get it back00:58
mgrandithe data is still there =P00:58
mgrandijust gotta find that number00:58
mgrandior ask on the mailing list, maybe there is an easier way00:58
ldurosit's still even in the remote repo?00:58
mgrandiyeah.00:59
mgrandii think this would happen in git / hg / whatever too =P00:59
lduroshehe01:00
ldurosok i'm writing to the mailing list01:00
fullermdIf pull didn't require --overwrite, then trunk _did_ have everything dev did.01:01
mgrandiyeah. you just have to reset what is the 'head' revision01:03
fullermdRight, I'm pointing at "<lduros> most of the stuff in dev were merged in trunk thank god for that"01:04
fullermdIt wasn't most, it was all, else the pull wouldn't have Just Worked.01:04
ldurosfullermd: really?01:04
ldurosit would have choked on it?01:04
fullermdbzr: ERROR: These branches have diverged. Use the missing command to see how.01:05
fullermdUnless you did a --overwrite or something, pull won't run if the remote isn't a superset of the local.01:05
fullermdOr less stiltedly, if the pull will mean your local branch no longer has something it had before.01:06
ldurosah ok01:07
ldurosso that's one good news01:07
ldurosI still posted that email on the mailing anyway01:07
ldurosjust curious :-)01:07
ldurosbut thanks it really makes me feel better now01:07
lduros541 seems less "important" than 889 though01:07
ldurosI thought I'd get to a 1000 commits all by myself and throw a party01:08
lduros:-P01:08
mgrandiheh01:08
fullermdOh, but it's more fun this way.  It means you can get to a thousand commits MULTIPLE times!01:08
lduroshaha01:09
fullermdThe real trick is spacing them out enough that you're in good enough shape for each party...01:09
ldurosit's funny how revision numbers really mean nothing in bzr01:09
mgrandithey do01:09
mgrandijust in the context of the branch01:09
lduroswell they do but only in a branch01:09
ldurosyeh01:09
mgrandiif you do a qlog then you see that all the merged ones are like 400.1 - 400.100 etc01:10
ldurosit's a completely different take than git01:10
ldurosi like the revision numbers though, easier to remember01:10
ldurosthat SHA1 hashes01:10
lduros:-P01:10
mgrandiits the same idea, kts just that bzr gives you numbers, yeah01:10
mgrandisha1 are the most unmemorable things ever01:10
fullermdIt 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
lduroshehe01:10
ldurosalso I have to stop running rm -rf dev/01:11
lduroseverytime there's a problem maybe :-)01:11
ldurosbetter to do mv dev dev-bck01:11
lduroshaha01:11
fullermdWell, doing it once or twice in / will cure you of that...01:11
lduroshha01:11
lduroseverytime there's a problem I tend to run rm never think to run mv01:12
fullermdFunnily enough, I needed to make a new FS for working on something last week.01:12
fullermdNeeded a name.  Well, it was just for development, so I can just call it /dev!01:12
fullermdHey, wait, why is bzr suddenly blowing up when I try to run it?01:12
fullermdHm, everything else is too.  What the he...   oh, no...01:13
lduroshehe01:13
ldurosthat reminds me I should make backups of my ssh and gpg keys01:14
lduroshaha01:14
fullermdAnyway, 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:14
lduroshmm01:15
ldurosso when you make a merge01:15
mgrandiyeah, thats what i suggested, i think lduros did it on another computer so01:15
ldurosall of those revisions are kept01:15
ldurosthose revisions from the other branch? they're not merge into one revisions in the new branch01:15
ldurosi guess i can't wrap my head around how things work01:16
ldurosyeh I do a lot of my gnu development during my work lunch break01:16
ldurosso some is probably at work01:16
ldurosI guess I'll keep working on trunk for the night01:17
mgrandithey are kept in the repo, it doesn't delete any revision01:18
mgrandijust creates new ones01:18
fullermdMerge makes a new rev to connect the merged revs in, but they're all still there individually.01:19
ldurosah01:19
ldurosFixed! :-)01:48
ldurosI guess that's what you all were talking about: https://lists.ubuntu.com/archives/bazaar/2012q2/074860.html01:49
ldurosthe reason I couldn't find revno 88901:50
ldurosis because it was 88601:50
lduroshaha01:50
fullermdWell, we can hardly be held responsible for you running around with your monitor upside-down   :p01:50
ldurosheh01:52
bob2ps unbind01:58
ldurosbob2: yes, definitely02:09
sbarcteamhi.11:27
sbarcteamI have revisions 121, 122, 123 the last revisions.11:28
sbarcteamI want to remove changes introduced by 12211:28
sbarcteamhow do I do this ?11:28
sbarcteambzr revert -r-3..-2 ?11:28
sbarcteamor bzr merge . -r-3..-2 ?11:29
=== yofel_ is now known as yofel
=== zyga is now known as zyga-food
matanyawhy do I get : bzr dh-make hello-2.7 hello-2.7.tar.gz  bzr: ERROR: command 'dh-make' requires argument TARBALL12:14
bob2bzr help dh-make12:14
matanyathan ks12:17
matanyabut how does that help?12:17
bob2because then you'll know how to use it12:18
matanyaI use the right syntax, don't I?12:20
matanyabob2: I didn't understand12:22
bob2ok12:22
bob2good luck12:22
matanya?12:22
matanyaanyone else?12:32
gthorslundmatanya: 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
matanya2.712:33
gthorslundso the name of your tar ball is used as version string instead.12:34
gthorslundyou've only got two strings as argument for dh-make12:34
gthorslund1) hello-2.7 2) hello-2.7.tar.gz12:34
matanyaso  bzr dh-make hello 2.7 hello-2.7.tar.gz12:34
gthorslund#2 should have been #312:34
gthorslundguess that would be more right12:34
matanyabzr: 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
matanyaok. rm hello-2.7 worked12:35
matanyathanks12:35
gthorslundyou're welcome. good luck.12:36
Merwin_hey13:10
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:11
=== zyga-food is now known as zyga
wgzMerwin_: to resolve that conflict, just delete the directory and vestigal pyc files then do `bzr resolve dir`13:21
wgzto avoid it in future there's a config setting that will move stuff like that to a seperate directory rather than causing conflicts13:22
wgzwhich I'm failing to find the name of, vila will know.13:26
vilabzr.transform.orphan_policy=move13:26
vilain either bazaar.conf or your branch.conf13:27
* vila thinks we should 1) rename it to something more sensible, 2) turn it on by default13:39
vilaI think we'll get less reports for people searching for their orphans than we get for the spurious conflicts13:40
Lo-lan-doHi allĀ :-)13:50
Lo-lan-doI'm wondering about checkouts (bound branches) and how a commit works there.13:50
Lo-lan-doI know that the revision is half-committed locally, then pushed, then fully committed locally if the push succeeds and rolled back otherwise.13:51
Lo-lan-doBut 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-doThis way we could keep a normal workflow of simply committing and not worrying :-)13:52
=== Quintasan_ is now known as Quintasan
Merwin_wgz, vila bzr resolve --action=take-other should work fine ?14:45
Merwin_Yeah but anyway, I'll still have the conflict :x14:45
Merwin_I'll try the bzr.transform.orphan_policy14:45
vilaMerwin_: yeah, the idea it to *avoid* the conflict14:46
Merwin_yep :D14:46
abentleyvila: 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:44
vilaabentley: I'm not sure I understand what you call a colocated branch's name15:46
vilaappendpath was only usable in locations.conf15:46
abentleyvila: the part that comes after the = in "file:///foo/bar,branch=name"15:47
abentleyvila: I would be fine with a solution that was  only usable in locations.conf.15:48
vilaabentley: 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:50
abentleyvila: I don't want to specify a section for the colocated branch, just the container.  e.g. "[/foo/bar]" for the previous example.15:51
abentleyvila: 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:52
vilaabentley: each colocated branch into its own launchpad branch ?15:54
abentleyvila: Yes.15:54
vilawell, I don't think push supports that :-/15:54
vilaand I never looked at how config behaves for colocated branches to be honest15:55
viladoes launchpad authorizes the additionnal paths used for colo branches ?15:56
abentleyvila: Sure push supports that.  It's not a colocated branch on Launchpad, just a regular branch.15:57
abentleyvila: I'm doing it manually all the time.15:57
vilaThat's not what I meant by supporting the additional paths used by colo branches :)15:57
abentleyvila: 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.15:58
=== beuno is now known as beuno-lunch
=== beuno-lunch is now known as beuno
=== zyga is now known as zyga-afk
=== alorente1 is now known as alorente
convergeI created a local branch and commited my code, how can I push it to remote branch ?17:52
convergeI created a local branch and commited my code, how can I push it to remote branch ?18:11
=== Noldorin_ is now known as Noldorin

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