/srv/irclogs.ubuntu.com/2014/04/08/#bzr.txt

=== r0bby_ is now known as robbyoconnor
=== SamB_ is now known as SamB
=== robbyoconnor is now known as robbyoconnorVi
=== robbyoconnorVi is now known as robbyoconnor
Laneyhello #bzr13:39
LaneyI got sent here from #ubuntu-devel to ask if there's an equivalent of `git reset --hard origin' in bzr13:40
LeoNerdMaybe. How about explaining what it does, for the majority of us who don't know it13:42
LaneyOk, thanks for the welcome. It resets your working state to the remote repository's. So if you were doing it separately: uncommit -r <last common revision>, revert, then pull.13:46
LeoNerdAh.. hmm....13:47
fullermdI think it's more like a pull --overwrite, followed by a revert.  Except pull --overwrite already does the revert-ish stuff anyway.13:48
LaneyIn git you'd have fetched the state already so it doesn't explicitly pull, but you don't have that in bzr.13:48
LeoNerdBut if you are simply ahead of upstream,  pull  will do nothing surely?13:48
LaneySomeone did tell me about pull --overwrite, but I wasn't sure if that did the expected thing or not.13:48
LaneyLike if you are ju, yeah that13:48
fullermd('s only important in other modes like --soft, where the pull --overwrite would has squirreled you)13:48
zygaLaney: bzr revert13:49
LeoNerdpull --overwrite will replace diverged history, but if you just have more commits on top of upstream it'll just say it has nothing to do13:49
zygaer13:49
zygaorigin you say13:49
fullermdNo it won't.  It makes the upstream state always win.13:49
LeoNerdHuhreally?13:49
zygaLaney: bzr pull --force :parent maybe13:49
fullermdNo, it's --overwrite.  pull doesn't have a --force.13:50
Laneyzyga: --overwrite, but yeah, that's what they're saying (I think :parent is implied)13:50
zygaLaney: :parent may not be implied :pull is implied13:50
Laney  If you want to replace your local changes and just want your branch to13:51
Laney  match the remote one, use pull --overwrite. This will work even if the two13:51
Laney  branches have diverged.13:51
zygaLaney: just use git-lp13:51
Laneyseems like the thing13:51
zygaLaney: much much less hassle13:51
fullermdI don't think there _is_ a :pull.  Pull uses :parent.13:51
mvozyga: is that a package?13:51
zygamvo: no, it's not a package, just one script to add to path13:52
zygahttp://zyga.github.io/git-lp/13:52
* mvo looks13:52
fullermdI guess maybe you could make one yourself; the location aliases might be dynamic enough for that, I don't remember.13:52
zygastrings attached but we use it daily and it really works13:52
zygastrings == only one workflow tested13:52
=== SamB_ is now known as SamB
=== WebbyIT is now known as rpadovani
=== tinoco is now known as tinoco-away

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