From a7b68b628945747b51919d17b7f76b1cbd55cb46 Mon Sep 17 00:00:00 2001 From: Kai Tetzlaff Date: Wed, 11 Jan 2012 09:06:41 +0100 Subject: [PATCH] update dvc --- dvc/lisp/xhg-core.el | 7 ++++++- dvc/lisp/xhg-dvc.el | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/dvc/lisp/xhg-core.el b/dvc/lisp/xhg-core.el index 986a9ce..e1d98ce 100644 --- a/dvc/lisp/xhg-core.el +++ b/dvc/lisp/xhg-core.el @@ -1,6 +1,6 @@ ;;; xhg-core.el --- Common definitions for mercurial support in DVC -;; Copyright (C) 2005-2006 by all contributors +;; Copyright (C) 2005-2012 by all contributors ;; Author: Stefan Reichoer, @@ -61,5 +61,10 @@ mercurial managed tree (but return nil)." "Read a revision for the actual mercurial working copy." (read-string prompt (xhg-log-revision-at-point))) +(defun xhg-prepare-environment (env) + "Prepare the environment to run hg." + ;; DVC expects hg messages in the C locale + (cons "LC_MESSAGES=C" env)) + (provide 'xhg-core) ;;; xhg-core.el ends here diff --git a/dvc/lisp/xhg-dvc.el b/dvc/lisp/xhg-dvc.el index df7e8e9..8036dd5 100644 --- a/dvc/lisp/xhg-dvc.el +++ b/dvc/lisp/xhg-dvc.el @@ -1,6 +1,6 @@ ;;; xhg-dvc.el --- The dvc layer for xhg -;; Copyright (C) 2005-2008 by all contributors +;; Copyright (C) 2005-2012 by all contributors ;; Author: Stefan Reichoer, @@ -112,6 +112,8 @@ This is done via setting `xhg-dvc-commit-extra-parameters'." ARG is passed as prefix argument" (call-interactively 'xhg-log)) +(defalias 'xhg-dvc-prepare-environment 'xhg-prepare-environment) + ;; deactivated at them moment, use dvc-dvc-files-to-commit to allow selecting files to commit ;; (defun xhg-dvc-files-to-commit () ;; ;; -mar: modified+added+removed