Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
efa3639b
Commit
efa3639b
authored
Nov 18, 2009
by
Sam Steingold
Browse files
(vc-hg-diff): Fix last patch: do not change directory.
parent
e0620570
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
lisp/ChangeLog
lisp/ChangeLog
+4
-0
lisp/vc-hg.el
lisp/vc-hg.el
+1
-5
No files found.
lisp/ChangeLog
View file @
efa3639b
2009-11-18 Bernhard Herzog <bernhard.herzog@intevation.de>
* vc-hg.el (vc-hg-diff): Fix last patch: do not change directory.
2009-11-18 Juanma Barranquero <lekktu@gmail.com>
* font-setting.el (font-use-system-font): Declare for byte-compiler.
...
...
lisp/vc-hg.el
View file @
efa3639b
...
...
@@ -276,16 +276,12 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches."
(
defun
vc-hg-diff
(
files
&optional
oldvers
newvers
buffer
)
"Get a difference report using hg between two revisions of FILES."
(
let*
((
firstfile
(
car
files
))
(
cwd
(
if
firstfile
(
file-name-directory
firstfile
)
(
expand-file-name
default-directory
)))
(
working
(
and
firstfile
(
vc-working-revision
firstfile
))))
(
when
(
and
(
equal
oldvers
working
)
(
not
newvers
))
(
setq
oldvers
nil
))
(
when
(
and
(
not
oldvers
)
newvers
)
(
setq
oldvers
working
))
(
apply
#'
vc-hg-command
(
or
buffer
"*vc-diff*"
)
nil
(
mapcar
(
lambda
(
file
)
(
file-relative-name
file
cwd
))
files
)
"diff"
(
apply
#'
vc-hg-command
(
or
buffer
"*vc-diff*"
)
nil
files
"diff"
(
append
(
vc-switches
'hg
'diff
)
(
when
oldvers
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment