emacs-devel
[Top][All Lists]
Advanced

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

Re: Setting the value of `emacs-bzr-version' also from a git checkout


From: Dani Moncayo
Subject: Re: Setting the value of `emacs-bzr-version' also from a git checkout
Date: Tue, 1 Oct 2013 22:23:58 +0200

>> It would be nice if I could specify the bzr revno manually, for
>> example as a parameter to "configure" or "make", because having to
>> keep using bzr just for this little thing would also be too bad.
>
> You need to set the value of emacs-bzr-version (a string) during
> dumping.

I see.  As a temporary solution, I guess I could set that value
hard-coded, like this:

--------------------------------
diff --git a/lisp/loadup.el b/lisp/loadup.el
index c32bd00..5c1daab 100644
--- a/lisp/loadup.el
+++ b/lisp/loadup.el
@@ -299,8 +299,7 @@
                                (string-to-number
                                 (substring name (length base) exelen))))
                             files)))
-      (setq emacs-bzr-version (condition-case nil (emacs-bzr-get-version)
-                              (error nil)))
+      (setq emacs-bzr-version "address@hidden")
       ;; `emacs-version' is a constant, so we shouldn't change it with `setq'.
       (defconst emacs-version
        (format "%s.%d"
--------------------------------

But I hope that `emacs-bzr-get-version' could be adapted to try a
second method when the primary one (the current one) fails.

That second method would assume a git repo instead of a bzr one
(Andreas showed how to get the bzr revid from a git repo).

-- 
Dani Moncayo



reply via email to

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