GNU bug report logs - #4677
allow VC operations from dired

Previous Next

Package: emacs;

Reported by: Dan Nicolaescu <dann <at> ics.uci.edu>

Date: Thu, 8 Oct 2009 20:30:05 UTC

Severity: normal

Done: Dan Nicolaescu <dann <at> ics.uci.edu>

Bug is archived. No further changes may be made.

Full log


Message #24 received at 4677 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Juri Linkov <juri <at> jurta.org>
To: Dan Nicolaescu <dann <at> ics.uci.edu>
Cc: 4677 <at> debbugs.gnu.org
Subject: Re: bug#4677: allow VC operations from dired
Date: Wed, 14 Oct 2009 01:38:47 +0300
>   > >   > > This patch allows VC operations to be run from dired.
>   > >   > > State changing VC operations are not supported.
>   > >   > > (only the various variations of log and diff)
>   > >   >
>   > >   > Thanks, it works right except in one case: when called outside of
>   > >   > a repository controlled directory, it traverses all subdirectories
>   > >   > trying to find a repository (I think traversing subdirectories
>   > >   > makes no sense in this case) and later fails with:
>   > >   >
>   > >   >   Wrong type argument: stringp, nil
>   > >
>   > > Thanks.  Here's an updated patch.
>   >
>   > Hmm, now it fails with "Directory not under VC" in all directories
>   > even under version control since (vc-backend default-directory)
>   > always returns nil.
>
> Hmm, I should  have said "not really tested".
> I guess the first version will have to do then.

I see that (vc-backend default-directory) works for directories in CVS,
but always returns nil for git (is it because git is file-oriented?).

OTOH, (vc-call-backend 'git 'root default-directory) works for git,
but (vc-call-backend 'cvs 'root default-directory) fails with

  "Sorry, root is not implemented for cvs"

I can't find a generic function that would work for directories
in all backends.

-- 
Juri Linkov
http://www.jurta.org/emacs/



This bug report was last modified 15 years and 185 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.