unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Setting the value of `emacs-bzr-version' also from a git checkout (was: Emacs trunk binary on Dropbox)
@ 2013-10-01 16:45 Dani Moncayo
  2013-10-01 17:04 ` Setting the value of `emacs-bzr-version' also from a git checkout Óscar Fuentes
  2013-10-01 17:45 ` Andreas Schwab
  0 siblings, 2 replies; 32+ messages in thread
From: Dani Moncayo @ 2013-10-01 16:45 UTC (permalink / raw)
  To: Andreas Schwab
  Cc: Sebastien Vauban, Eli Zaretskii, Lennart Borgman,
	Emacs-Devel devel

On Tue, Oct 1, 2013 at 6:36 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> Lennart Borgman <lennart.borgman@gmail.com> writes:
>
>> Must not that revision number be available somewhere in the mirror?
>
> $ git notes show d079fb16c40905c3ebb5a53483dc17eb85d1577b
> monnier@iro.umontreal.ca-20131001155253-f13ed73lrl2p8utj

That would be even better, yes: figure out the value of
"emacs-bzr-version" not only when building from a bzr branch, but also
when building from the savannah's git repo.

But FWIW, if I try Andreas' command on my git repo I get an error:

  $ git log -1 | head -n1
  commit 2c691e3566392fb2d234892cf379b58886e98361

  $ git notes show 2c691e3566392fb2d234892cf379b58886e98361
  error: No note found for object 2c691e3566392fb2d234892cf379b58886e98361.


-- 
Dani Moncayo



^ permalink raw reply	[flat|nested] 32+ messages in thread
* Re: Setting the value of `emacs-bzr-version' also from a git checkout
@ 2013-10-01 20:23 Dani Moncayo
  0 siblings, 0 replies; 32+ messages in thread
From: Dani Moncayo @ 2013-10-01 20:23 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Sebastien Vauban, Emacs development discussions

>> 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 "rgm@gnu.org-20130925101746-8kz06nvtpjms0hy3")
       ;; `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



^ permalink raw reply related	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2013-10-14  6:38 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-01 16:45 Setting the value of `emacs-bzr-version' also from a git checkout (was: Emacs trunk binary on Dropbox) Dani Moncayo
2013-10-01 17:04 ` Setting the value of `emacs-bzr-version' also from a git checkout Óscar Fuentes
2013-10-01 17:45 ` Andreas Schwab
2013-10-01 18:37   ` Dani Moncayo
2013-10-01 18:46     ` Óscar Fuentes
2013-10-01 21:15       ` Dani Moncayo
2013-10-02  0:22         ` Stefan Monnier
2013-10-02 14:36           ` Josh
2013-10-12 10:22           ` Dani Moncayo
2013-10-12 10:33             ` Eli Zaretskii
2013-10-12 10:42               ` Dani Moncayo
2013-10-12 10:51                 ` Óscar Fuentes
2013-10-12 10:58                   ` Dani Moncayo
2013-10-12 11:16                   ` Dani Moncayo
2013-10-12 11:40                     ` Eli Zaretskii
2013-10-12 12:04                       ` Dani Moncayo
2013-10-12 19:04                     ` Óscar Fuentes
2013-10-12 20:36                       ` Juanma Barranquero
2013-10-12 20:51                         ` Óscar Fuentes
2013-10-12 20:57                           ` Juanma Barranquero
2013-10-12 21:16                             ` Óscar Fuentes
2013-10-12 21:33                               ` Juanma Barranquero
2013-10-12 20:56                       ` Stefan Monnier
2013-10-12 21:25                       ` Dani Moncayo
2013-10-12 21:38                         ` Óscar Fuentes
2013-10-12 10:58                 ` Eli Zaretskii
2013-10-12 11:06                   ` Dani Moncayo
2013-10-12 11:37                     ` Eli Zaretskii
2013-10-13 20:49             ` Dani Moncayo
2013-10-13 22:16               ` Glenn Morris
2013-10-14  6:38                 ` Dani Moncayo
  -- strict thread matches above, loose matches on Subject: below --
2013-10-01 20:23 Dani Moncayo

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).