[PATCH 2 of 2] bookmarks: show details of difference between local and remote bookmarks

David M. Carr david at carrclan.us
Tue Sep 25 10:37:30 CDT 2012


On Tue, Sep 25, 2012 at 11:05 AM, FUJIWARA Katsunori
<foozy at lares.dti.ne.jp> wrote:
>
> At Mon, 24 Sep 2012 12:32:27 +0200,
> Laurens Holst wrote:
>>
>> Op 22-09-12 07:56, FUJIWARA Katsunori schreef:
>> > # HG changeset patch
>> > # User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
>> > # Date 1348293230 -32400
>> > # Node ID fb900c89f96b209486068ef2cdb4b9af43db1de6
>> > # Parent  750be2c38db4e86c3f09d0cae83e9af9d49795e7
>> > bookmarks: show details of difference between local and remote bookmarks
>> >
>> > Before this patch, "hg incoming"/"hg outgoing" with -B show only
>> > bookmarks newly added on the source repository.
>> >
>> > So, users can't know whether "hg push"/"hg pull" cause divergence or
>> > overwriting of specific bookmark or not, before execution of them.
>> >
>> > This patch shows not only newly added bookmarks, but also details of
>> > difference between local and remote bookmarks.
>> >
>> > For local bookmarks which are different from ones on remote, details
>> > of them are decided as below: each of "b at local" and "b at remote" are
>> > assumed to mean revisions referred by bookmarks on each sides.
>> >
>> >    - if "b at remote" is contained in the local:
>> >      - if "b at local" and "b at remote" are diverged, show as "(diverged)"
>> >      - if "b at local" < "b at remote", show as "(advanced on the remote)"
>> >      - otherwise("b at remoet" < "b at local"), show as "(advanced on the local)"
>> >    - otherwise:
>> >      - show as "(different from the remote)", because "b at local" is
>> >        different from "b at remote", but divergence of them can't be
>> >        examined with low cost
>>
>> Phrasing nit, you should leave out “the” in these sentences:
>>
>> - (advanced on remote)
>> - (advanced on local)
>> - (different from remote)
>>
>> Some other suggestions:
>>
>> - (advanced remotely)
>> - (remote advanced)
>> - (advanced locally)
>> - (local advanced)
>> - (remote changed)
>> - (remote diverged)
>>
>> I guess which is best depends on what the common phrasing style is in
>> Mercurial or Linux.
>
> Thank you for your comments, Laurens.
>
> "advanced remotely" and "advanced locally" can be shown appropriately,
> if users don't explicitly move bookmarks backward: IMHO, it is rare
> case and can be ignored.
>
> Then, is it natural for native speakers that "diverged remotely" (or
> "remote diverged") is shown even when bookmark is really moved locally ?
>
> ----------------------------------------------------------------------
> [FUJIWARA Katsunori]                             foozy at lares.dti.ne.jp
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel

> - otherwise("b at remoet" < "b at local"), show as "(advanced on the local)"

Typo here, s/remoet/remote/.

> Then, is it natural for native speakers that "diverged remotely" (or
> "remote diverged") is shown even when bookmark is really moved locally ?

Not in my opinion.  To me, "diverged" indicates that two things moved
in different directions from a common point.  If the remote bookmark
stayed the same but the local bookmark moved, I don't think this
should be called "diverged".  I'd prefer "changed" or "different".

-- 
David M. Carr
david at carrclan.us


More information about the Mercurial-devel mailing list