emacs-devel
[Top][All Lists]
Advanced

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

Re: vc-annotate: vc-annotate-prev-revision does not work for renamed/mov


From: Dmitry Gutov
Subject: Re: vc-annotate: vc-annotate-prev-revision does not work for renamed/moved files (Git/HG)
Date: Sun, 20 Mar 2022 13:47:58 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

On 20.03.2022 09:47, Uwe Brauer wrote:
Hi

In some repositories I mv or rename files quite a bit, while vc-annotate
works fine for files that has not be moved or renamed, the same does not
hold for renamed files, in particular, vc-annotate-prev-revision fails.

Here are two short scripts to emphasise my point

First GIT:

git init
echo "First" > test.org
git add -A test.org
git commit -a -m "First"
echo "Second" >> test.org
git commit -a -m "Second"
echo "Third" >> test.org
git commit  -a -m "Third"
echo "Forth" >> test.org
git commit  -a -m "Forth"
mv test.org testnew.org
git add -A
git commit  -a -m "Renamed file test.org to testnew.org"

Then HG
hg init
echo "First" > test.org
hg add test.org
hg commit  -m "First"
echo "Second" >> test.org
hg commit  -m "Second"
echo "Third" >> test.org
hg commit  -m "Third"
echo "Forth" >> test.org
hg commit  -m "Forth"
hg mv test.org testnew.org
hg commit  -m "Renamed file test.org to testnew.org"


In both cases vc-annotate-prev-revision fails in the file testnew.org

Any change to get such a feature be implemented?

Sounds like bug#26345.



reply via email to

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