/srv/irclogs.ubuntu.com/2014/01/23/#bzr.txt

Wiz-KeeDhey guys07:24
Wiz-KeeDanyone around07:24
Wiz-KeeD?07:24
Wiz-KeeDhello jam07:26
Wiz-KeeDCan someone please tell me, when I make a push to a branch and it makes some automated merges leaving messages inside the actual files07:26
Wiz-KeeDHow do I detect those in the branch? it's messing up my code and I want to resolve it07:27
jamWiz-KeeD: we don't ever "automated merge" when doing push. Do you mean during "bzr merge" ? Or "bzr pull" ?07:27
bob2you shouldn't push to things with working copies07:27
jamgenerally, you use "bzr status"07:27
Wiz-KeeDbob2, i shouldn't?07:28
jamhmmm.. maybe we do with local push, that was a special case07:28
Wiz-KeeDThat's how I deploy my code to the server07:28
bob2it in fact refuses by default07:28
bob2Wiz-KeeD, that's a terrible idea07:28
Wiz-KeeDbob2 how so? what would be your suggestion?07:28
Wiz-KeeDto transfer the local code to the server07:28
bob2because of the above07:28
Wiz-KeeDi just use bzr push-and-update07:28
Wiz-KeeDthat's it07:28
bob2also the fact that you /edited things on the server/07:28
bob2then pushed upon it07:29
Wiz-KeeDhmm I might have done that but did revert --no-backup07:29
Wiz-KeeDThen what would be the ideal solution?07:29
bob2let me guess07:30
bob2php?07:30
Wiz-KeeDwrong guess :))07:30
Wiz-KeeDpython07:30
bob2deploying python via this method is absurd07:31
bob2since you're missing the './bin/python setup.py develop' or './bin/pip install -e .' step07:31
Wiz-KeeDI don't understand07:32
Wiz-KeeDI deploy personal code to a server regarding modules of a framework that get loaded by that framework on the server07:34
Wiz-KeeDAnd any changes I make and test locally I will eventually have to push onto the server for production07:34
Wiz-KeeDMight not be the best method but I don't see how that is absurd really, maybe I'm missing something07:35
=== _thumper_ is now known as thumper
achianghello. i have a large branch that i do not want to re-clone from launchpad. i made changes in this branch and pushed them to LP, then submitted a merge, and it was approved23:40
achiangnow, i want to start from a pristine trunk, and do a bzr merge from lp:~achiang/project/proposed-branch23:41
achiangand then push the merged trunk to lp:project23:41
achiangis there a way to get back to "trunk" using my local, modified branch?23:41
fullermdWas it branched off trunk in the first place?23:42
achiangyes23:42
fullermdTry pull.23:42
achiang?23:42
achiangso bzr pull lp:project ?23:43
achianginside the modified branch?23:43
fullermdJust bzr pull should be enough.23:43
achiangi get "no revisions or tags to pull"23:43
fullermdSee what bzr missing lp:project has to say.23:44
achiangsimply says that my local branch has 5 extra revisions, but trunk has not changed since i last cloned/pulled23:45
fullermdMmm.  OK, let me check this then.23:45
fullermdYou branched lp:project, then made 5 commits on top of it.  Pushed them to lp:~achiang[...].23:46
achiangi suppose i could just push to lp:project, but something weird in me wants to ensure that trunk gets a merge commit...23:46
fullermdNow you want to take a prisine lp:project, merge lp:~achiang[...] into it, commit the merge, then push that?23:46
achiangfullermd: yes you understand correctly. is that weird for me to want?23:47
fullermdEh.  Not particularly.  6.5 of one, half a baker's dozen of the other.23:47
achiangin git, it would resolve to the same thing anyway... what they call a fast forward merge (or whatever)23:48
fullermdThe q&d answer is probably do to a pull --overwrite to force your local branch back to pure trunk, then do the merge/ci/push.23:48
achiangbut i guess i'm used to seeing merge commit in bzr workflows23:48
achiangoh, nice. i'll do the --overwrite23:48
fullermdNaturally.  'cuz bzr may have smoked whatever git was on, but it didn't inhale   ;p23:48
achiangugh, that screwed up my tree23:50
achiangbecause i had stuff in a subdirectory that wasn't tracked by bzr23:50
fullermdIf it's gonna be a long-term repeated action, better solution would be to setup a local shared repo and keep one branch as pristine trunk, using additional locals for the work branches.23:50
achiangyah. that's what i'm about to do23:51
fullermdPrecious stuff?23:51
fullermdIf not, you can just do some rm and/or revert dancing.23:52
achiangi'm recovered now... rm -rf subdir/ ; bzr revert ; bzr status => clean :)23:52
fullermdI said it first!  That means I still get the credit!23:52
achiangi can show you my bash history timestamped to an ntp-synced machine :P23:53
* achiang now does cd .. ; mv local trunk ; bzr branch trunk local23:54
achiangfullermd: thanks for the help, much appreciated23:54
fullermdI'd setup the repo first, to save all the I/O on your poor disk.23:54
achiangit was ok. only took a few seconds for the local branch23:55
fullermdI blame the TAI/UTC offset for that vile attempt to snake the credit away from me.  Durn leap seconds.23:55
achiangthe reason the branch is huge is because of media files in the tree23:55
achiangi guess that was fast enough to clone locally23:55
achiangthat, plus PCIe SSD23:55
fullermdWell, it's doubling the repo space used.23:55
fullermd(since it's now storing the whole history twice)23:56
achiangoh, i see23:56
fullermdOne shared repo will stop that.  Plus make any future "branch lp:project/whatever"'s way faster, since they'd only need to grab revs you don't already have.23:56
achianggot it23:56
fullermdinit-repo to set it up, then reconfigure --use-shared in the branches to switch them over to using it.23:57

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