<span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">I'm not sure who wins in git vs. bzr ease of use... guess it depends on how quickly I get over this error:<div>
<br></div><div><div>$ bzr pull lp:swift/1.3</div><div><div>bzr: ERROR: Cannot lock LockDir(<a href="http://bazaar.launchpad.net/~swift/swift/omega-1.3.0-7/.bzr/branch/lock" target="_blank" style="color: rgb(0, 0, 204); ">http://bazaar.launchpad.net/~swift/swift/omega-1.3.0-7/.bzr/branch/lock</a>): Transport oper</div>
<div>ation not possible: http does not support mkdir()</div></div><div><br></div><div><br></div><div>any idea ?</div></div></span><br><div class="gmail_quote">On Wed, Apr 27, 2011 at 1:37 PM, Soren Hansen <span dir="ltr"><<a href="mailto:soren@linux2go.dk">soren@linux2go.dk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">2011/4/27 Thomas Goirand <<a href="mailto:thomas@goirand.fr">thomas@goirand.fr</a>>:<br>
<div class="im">> On 04/27/2011 11:26 PM, Soren Hansen wrote:<br>
>> To get working, yes. To be an expert, no.<br>
>><br>
>> bzr lp-login<br>
>> (bzr init-repo)<br>
>> bzr branch<br>
>> (bzr add)<br>
>> bzr commit<br>
>> bzr push<br>
>><br>
>> ..are sufficient to just get started.<br>
> No, I don't agree, it's not enough. See below.<br>
<br>
<br>
>>> and that's most of the time the issues with "using bzr for git users"<br>
>>> tutorials: they tend to think that you're ok with the most basics<br>
>>> command, and that you wont ever need more. Truth is you do, and<br>
>>> finding the relevant information for the thing you need takes time (a<br>
>>> big cost, to use your own words...).  If you find a "learning quickly<br>
>>> advanced bzr commands for git users" type of tutorial, I might change<br>
>>> my mind! :)<br>
>><br>
>> If you can explain what sort of stuff you've had a hard time finding, I<br>
>> can probably whip up something that will be helpful to others.<br>
</div>> - git reset --hard <sha256><br>
<br>
bzr uncommit -r <revisionspec><br>
<br>
that leaves the changes in the working directory, though. You can use<br>
"bzr revert" to remove the changes from the working directory.<br>
<div class="im"><br>
> - git commit -a --amend (to correct the latest commit)<br>
<br>
</div>bzr uncommit ; bzr commit<br>
<br>
> - git format-patch <sha256><br>
<br>
bzr log -c <revisionspec> -p<br>
<div class="im"><br>
> - or maybe instead: git diff -u -r <sha256> -r <sha256><br>
<br>
</div>bzr diff -r <revisionspec>..<revisionspec><br>
<div class="im"><br>
> - git push --force (you told me, but I forgot... is that bzr push<br>
> --overwrite?)<br>
<br>
</div>"bzr push --overwrite", but please don't use it. It's the same for<br>
git, really. Once you've pushed it somewhere, don't remove stuff from<br>
it, or rebase it or whatever. If anyone has pulled from it and based<br>
work on it, it's extremely awkward if they want to sync up with you.<br>
<br>
> - git cherry-pick -x<br>
<br>
bzr merge -c <revisionspec>, but its use is discouraged.<br>
<div class="im"><br>
> - git -r branch (does listing branches on the remote side even make<br>
> sense with bzr?)<br>
<br>
</div>No.<br>
<div class="im"><br>
> - git tag (to list tags, as bzr tag <tagname> seems working)<br>
<br>
</div>bzr tags<br>
<div class="im"><br>
> There must be more than I can't recall just now, in 5 minutes of deep<br>
> thoughts.<br>
<br>
</div>I still don't see how any of the above are *required* to start working, though.<br>
<div class="im"><br>
> Also, one thing I love with git, is that I can always do "man<br>
> git-command" if I want help with "command", and there's more than 100 of<br>
> them. Is this available somehow?<br>
<br>
</div>"bzr <subcommand> -h" shows the help for the subcommand.<br>
<br>
"bzr help <foo>" is roughly the same, but it provides help for a bunch<br>
of things other than commands.<br>
<br>
"bzr help commands" shows you (almost) all the available commands (bzr<br>
help hidden-commands shows a few extra commands that most people will<br>
never need)<br>
<br>
"bzr help topics" shows a bunch of topics that has more extensive explanations.<br>
<div class="im"><br>
<br>
--<br>
Soren Hansen        | <a href="http://linux2go.dk/" target="_blank">http://linux2go.dk/</a><br>
Ubuntu Developer    | <a href="http://www.ubuntu.com/" target="_blank">http://www.ubuntu.com/</a><br>
OpenStack Developer | <a href="http://www.openstack.org/" target="_blank">http://www.openstack.org/</a><br>
<br>
_______________________________________________<br>
</div><div><div></div><div class="h5">Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</div></div></blockquote></div><br>