We're Moving to Mercurial
Scott Palmer
swpalmer at gmail.com
Tue Feb 21 13:07:13 UTC 2012
On 2012-02-21, at 4:31 AM, A. S. Budden wrote:
> On 21 February 2012 08:33, Angel Ezquerra Moreu
> <angel.ezquerra at gmail.com> wrote:
>> Also, what does "Bazaar's '--remember' option" do which you like so
>> much?
>
> On my own projects, I often work with copies of my projects on my home
> server. When I create a branch with Bazaar, I do something like this:
>
> bzr init-repo --no-trees bzr+ssh://server/path/to/repo
> bzr init .
> bzr push --remember bzr+ssh://server/path/to/repo/trunk
>
> (actually in this case, --remember is redundant, but the point is that
> in future I just type "bzr push"). As I understand it (and as I use
> it at present), the Mercurial equivalent is:
>
> hg init .
> hg clone . ssh://server/path/to/repo
> vim .hg/hgrc
> # Now add a [paths] section to make it remember the path
>
> It's the bit about having to fire up an editor to remember a path I've
> just typed that always feels a little unnecessary.
You don't need to use "hg init" before you "hg clone"
When you "hg clone" the paths section with the default filled in is automatically added for you.
There is however, no way to automatically update the paths when you do a push. At least none that I know.
>
>> I'm also interested on why you'd like to migrate out of git, as Arne
>> already asked.
>
> I don't have a very good answer for this ...
I do. The git ui+workflow is awkward. That's it. It's harder to use than it should be.
Scott
More information about the Mercurial
mailing list