* ediff-revision doesn't recognize Mercurial-managed source
@ 2011-03-07 3:23 Skip Montanaro
2011-03-07 6:51 ` Thierry Volpiatto
0 siblings, 1 reply; 7+ messages in thread
From: Skip Montanaro @ 2011-03-07 3:23 UTC (permalink / raw)
To: help-gnu-emacs
The core Python development team just switched from Subversion to Mercurial,
so I'm trying to get my tool chain back into working order. I have been
using vc and ediff-revision from within XEmacs, but its Mercurial support
seemed lacking, so I thought I would try making the switch to GNU Emacs.
While it appears that the version of GNU Emacs (23.1) I downloaded from
http://emacsformacosx.com/
has a vc-hg.el.gz file, executing vc-next-action (C-x v v) on a
Mercurial-managed file seems to have tried to register the file with bzr!
Trying to execute ediff-revision results in a "blah is not under version
control" message.
Do I need to sprinkle some sort of magic ~/.emacs magic pixie dust to get vc
to work?
Thanks,
Skip Montanaro
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ediff-revision doesn't recognize Mercurial-managed source
2011-03-07 3:23 Skip Montanaro
@ 2011-03-07 6:51 ` Thierry Volpiatto
0 siblings, 0 replies; 7+ messages in thread
From: Thierry Volpiatto @ 2011-03-07 6:51 UTC (permalink / raw)
To: help-gnu-emacs
Skip Montanaro <skip@pobox.com> writes:
> The core Python development team just switched from Subversion to Mercurial,
> so I'm trying to get my tool chain back into working order. I have been
> using vc and ediff-revision from within XEmacs, but its Mercurial support
> seemed lacking, so I thought I would try making the switch to GNU Emacs.
>
> While it appears that the version of GNU Emacs (23.1) I downloaded from
>
> http://emacsformacosx.com/
>
> has a vc-hg.el.gz file, executing vc-next-action (C-x v v) on a
> Mercurial-managed file seems to have tried to register the file with bzr!
> Trying to execute ediff-revision results in a "blah is not under version
> control" message.
>
> Do I need to sprinkle some sort of magic ~/.emacs magic pixie dust to get vc
> to work?
You should try DVC http://www.xsteve.at/prg/emacs_dvc/dvc.html
which have a very good support for hg.
It works fine since emacs22.
--
A+ Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ediff-revision doesn't recognize Mercurial-managed source
[not found] <mailman.2.1299468253.29721.help-gnu-emacs@gnu.org>
@ 2011-03-07 12:17 ` rusi
2011-03-08 2:46 ` Skip Montanaro
2011-03-07 22:19 ` Glenn Morris
1 sibling, 1 reply; 7+ messages in thread
From: rusi @ 2011-03-07 12:17 UTC (permalink / raw)
To: help-gnu-emacs
On Mar 7, 8:23 am, Skip Montanaro <s...@pobox.com> wrote:
> The core Python development team just switched from Subversion to Mercurial,
> so I'm trying to get my tool chain back into working order. I have been
> using vc and ediff-revision from within XEmacs, but its Mercurial support
> seemed lacking, so I thought I would try making the switch to GNU Emacs.
>
> While it appears that the version of GNU Emacs (23.1) I downloaded from
>
> http://emacsformacosx.com/
>
> has a vc-hg.el.gz file, executing vc-next-action (C-x v v) on a
> Mercurial-managed file seems to have tried to register the file with bzr!
> Trying to execute ediff-revision results in a "blah is not under version
> control" message.
>
> Do I need to sprinkle some sort of magic ~/.emacs magic pixie dust to get vc
> to work?
>
> Thanks,
>
> Skip Montanaro
What happens if you set vc-handled-backends to the singleton list
(hg) ?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ediff-revision doesn't recognize Mercurial-managed source
[not found] <mailman.2.1299468253.29721.help-gnu-emacs@gnu.org>
2011-03-07 12:17 ` ediff-revision doesn't recognize Mercurial-managed source rusi
@ 2011-03-07 22:19 ` Glenn Morris
2011-03-08 1:25 ` Skip Montanaro
1 sibling, 1 reply; 7+ messages in thread
From: Glenn Morris @ 2011-03-07 22:19 UTC (permalink / raw)
To: help-gnu-emacs
Skip Montanaro wrote:
> While it appears that the version of GNU Emacs (23.1) I downloaded from
>
> http://emacsformacosx.com/
>
> has a vc-hg.el.gz file, executing vc-next-action (C-x v v) on a
> Mercurial-managed file seems to have tried to register the file with bzr!
> Trying to execute ediff-revision results in a "blah is not under version
> control" message.
>
> Do I need to sprinkle some sort of magic ~/.emacs magic pixie dust to get vc
> to work?
It should Just Work (though I'm not familiar with emacsformacosx.com).
On GNU/Linux, I tried:
hg clone http://www.selenic.com/repo/hello my-hello
emacs-23.1 -Q my-hello/hello.c
Making changes to the file and trying vc-next-action worked fine for me.
ediff-revision also seemed to work (normally I use C-x v =).
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ediff-revision doesn't recognize Mercurial-managed source
2011-03-07 22:19 ` Glenn Morris
@ 2011-03-08 1:25 ` Skip Montanaro
2011-03-08 2:14 ` Skip Montanaro
0 siblings, 1 reply; 7+ messages in thread
From: Skip Montanaro @ 2011-03-08 1:25 UTC (permalink / raw)
To: help-gnu-emacs
> > Do I need to sprinkle some sort of magic ~/.emacs magic pixie dust to get vc
> > to work?
>
> It should Just Work (though I'm not familiar with emacsformacosx.com).
Thanks. I'll keep messing around with it.
Skip
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ediff-revision doesn't recognize Mercurial-managed source
2011-03-08 1:25 ` Skip Montanaro
@ 2011-03-08 2:14 ` Skip Montanaro
0 siblings, 0 replies; 7+ messages in thread
From: Skip Montanaro @ 2011-03-08 2:14 UTC (permalink / raw)
To: help-gnu-emacs
> > > Do I need to sprinkle some sort of magic ~/.emacs magic pixie dust to
> > > get vc to work?
> >
> > It should Just Work (though I'm not familiar with emacsformacosx.com).
>
> Thanks. I'll keep messing around with it.
Okay, I figured out what's wrong. The code to determine which vc backend is
in control often just travels up the directory tree looking for a key file
or directory. For bzr it looks for a file named ".bzr", for hg, ".hg", etc.
The search is depth- (or rather height-) first. My directory tree is broken
(obviously my fault), but managed to work for Subversion and CVS, the two
predominant version control systems in my coding past. They happen to be
searched for earlier in the list of candidate backends.
Mercurial, alas, appears after Bazaar in the list of candidate backends. Up
my directory tree (higher than my Mercurial repositories) lies a .bzr
directory dating from some long forgotten experiment with it in 2008. The
search finds that and thinks that my Mercurial repository is actually part
of a Bazaar repo.
So, problem solved. I need to do some house cleaning and probably a bit of
directory restructuring, but I should be able to get things squared away
without too much trouble.
For the vc maintainers: breadth-first search up the directory tree might be
something to consider.
Skip Montanaro
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ediff-revision doesn't recognize Mercurial-managed source
2011-03-07 12:17 ` ediff-revision doesn't recognize Mercurial-managed source rusi
@ 2011-03-08 2:46 ` Skip Montanaro
0 siblings, 0 replies; 7+ messages in thread
From: Skip Montanaro @ 2011-03-08 2:46 UTC (permalink / raw)
To: help-gnu-emacs
> What happens if you set vc-handled-backends to the singleton list
> (hg) ?
Sorry, didn't see this before. Given the fact that it found .bzr before .hg
I'm sure your suggestion would have worked, given my borked directory
structure.
S
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-03-08 2:46 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.2.1299468253.29721.help-gnu-emacs@gnu.org>
2011-03-07 12:17 ` ediff-revision doesn't recognize Mercurial-managed source rusi
2011-03-08 2:46 ` Skip Montanaro
2011-03-07 22:19 ` Glenn Morris
2011-03-08 1:25 ` Skip Montanaro
2011-03-08 2:14 ` Skip Montanaro
2011-03-07 3:23 Skip Montanaro
2011-03-07 6:51 ` Thierry Volpiatto
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.