emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#33129: closed (26.1; `vc-hg-find-file-hook' can ne


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#33129: closed (26.1; `vc-hg-find-file-hook' can never detect files with conflicts)
Date: Sat, 03 Nov 2018 08:39:02 +0000

Your message dated Sat, 03 Nov 2018 10:37:52 +0200
with message-id <address@hidden>
and subject line Re: bug#33129: Acknowledgement (26.1; `vc-hg-find-file-hook' 
can never detect files with conflicts)
has caused the debbugs.gnu.org bug report #33129,
regarding 26.1; `vc-hg-find-file-hook' can never detect files with conflicts
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
33129: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=33129
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 26.1; `vc-hg-find-file-hook' can never detect files with conflicts Date: Tue, 23 Oct 2018 12:03:36 -0400
The `vc-hg-find-file-hook' tries to automatically invoke `smerge-mode'
when a file with conflicts is visited.  Unfortunately, due to incorrect
assumptions, it rarely -- possibly never -- actually manages to detect
the files.

There are two incorrect assumptions in the code that prevent this:

First, that `vc-state' will already be cached by the backend, which is
not true in at least the cases of visiting the file, reverting the file,
or using `vc-refresh-state'.

It is certainly possible that in some case or other the hook works, this
assumption means that it is almost never going to behave as intended.

Second, it assumes that a ".orig" backup file is created by Mercurial
next to the current file, which is only true by default: these files can
be redirected to an alternate path, or disabled entirely, by the user.

This is especially common when working on a network file-system, since
additional file operations can slow down the Mercurial merge process, or
when users have some other mechanism to handle the failure case.

--- End Message ---
--- Begin Message --- Subject: Re: bug#33129: Acknowledgement (26.1; `vc-hg-find-file-hook' can never detect files with conflicts) Date: Sat, 03 Nov 2018 10:37:52 +0200
> From: Daniel Pittman <address@hidden>
> Date: Tue, 23 Oct 2018 12:10:35 -0400
> 
> Please find attached a patch fixing both the issues identified in this bug:

Thanks, pushed to the master branch.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]