Mercurial Issues

Giorgos Keramidas keramida at ceid.upatras.gr
Sun Feb 6 07:27:49 UTC 2011


On Sat, 5 Feb 2011 19:53:06 -0800, Greg Lindahl <greg at blekko.com> wrote:
>> The problem is that DevA is using a dumb editor (no names, but its initials
>> are "vi")
>
> As much as I like making fun of vi users, modern versions of vim
> detect this issue much like emacs does. Perhaps DevA can upgrade?
>
> | W13: Warning: File "foo2" has been created after editing started
> | [O]K, (L)oad File:

Another important point is that the entire workflow is 'risky'
regardless of which editor is being used:

  - user opens a file in an editor buffer
  - user pulls from other repository
  - user explicitly runs 'hg update' to merge with changes from other
    people
  - user discovers that the on disk copy of the edited file may have
    changed
  - user saves his stale buffer anyway

There are several steps in the workflow that beg for trouble.  One
solution would be to stop doing things that have a very high chance of
'hurting' the user, e.g. by committing all local changes before a pull
and update operation.




More information about the Mercurial mailing list