unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ttn@gnuvola.org
To: emacs-devel@gnu.org
Subject: Re: Connection to emacs CVS broken ?
Date: Fri, 16 Mar 2007 07:58:14 -0400	[thread overview]
Message-ID: <E1HSB4Y-0008Lv-10@mail.agora-net.com> (raw)
In-Reply-To: <E1HS4sl-0003gE-0G@fencepost.gnu.org> (message from Richard Stallman on Fri, 16 Mar 2007 01:21:39 -0400)

   From: Richard Stallman <rms@gnu.org>
   Date: Fri, 16 Mar 2007 01:21:39 -0400

   It is important to commit each change with its specific change log
   entry.  Don't do a mass commit!

below is some elisp that does ,v file "unparsing".  it was omitted from
vc-rcs.el changes related to vc-annotate support for RCS since i didn't
think it would be useful.  however, in this case, we can use it to write
new ,v files directly, after a "tree append" operation.  something like:

 (let* ((old (vc-rcs-parse (find-file "OLD,v")))
        (new (vc-rcs-parse (find-file "NEW,v")))
        (merged (APPEND-NEW-ENTRIES old new)))
   (set-buffer (generate-new-buffer "GEN,v"))
   (erase-buffer)
   (comma-v-unparse merged)
   (write-file "GEN,v"))

someone would have to write APPEND-NEW-ENTRIES, of course, but at least
that can be done more at the semantic level...

note that verification by a human will still be needed, in any case.

thi

____________________________________________________________
(defun comma-v-unparse (tree &optional buffer)
  "Insert TREE into current buffer in RCS-style masterfile format.
Optional second arg BUFFER specifies another buffer to insert into.
You can use `comma-v-parse' to get TREE."
  (setq buffer (get-buffer (or buffer (current-buffer))))
  (let ((standard-output buffer)
        (headers (cdr (assq 'headers tree)))
        (revisions (cdr (assq 'revisions tree))))
    (flet ((spew! (look name finish &optional proc)
                  (princ name)
                  (let ((v (funcall (or proc 'identity)
                                    (funcall look name))))
                    (unless (string= "" v)
                      (unless proc
                        (princ "\t"))
                      (princ v)))
                  (princ ";") (princ finish)))
      (flet ((hspew (name finish &optional proc)
                    (spew! (lambda (name) (cdr (assq name headers)))
                           name finish proc)))
        (hspew 'head "\n")
        (when (assq 'branch headers)
          (hspew 'branch "\n"))
        (hspew 'access "\n")
        (hspew 'symbols "\n" (lambda (ls)
                               (apply 'concat
                                      (mapcar (lambda (x)
                                                (format "\n\t%s:%s"
                                                        (car x) (cdr x)))
                                              ls))))
        (hspew 'locks " ")
        (hspew 'strict "\n")
        (hspew 'comment "\n\n\n" (lambda (s) (format "\t@%s@" s))))
      (dolist (rev revisions)
        (princ (car rev))
        (princ "\n")
        (flet ((rlook (name) (cdr (assq name (cdr rev))))
               (rspew (name finish &optional proc)
                      (spew! 'rlook name finish proc)))
          (rspew 'date "\t" (lambda (v)
                              (format-time-string "\t%Y.%m.%d.%H.%M.%S" v)))
          (rspew 'author "\t" (lambda (v) (concat " " v)))
          (rspew 'state "\n" (lambda (v) (concat " " v)))
          (rspew 'branches "\n")
          (rspew 'next "\n\n"))))
    (princ "\n")
    (flet ((spew! (look name finish &optional proc)
                  (princ name)
                  (princ "\n@")
                  (princ (with-temp-buffer
                           (insert (funcall (or proc 'identity)
                                            (funcall look name)))
                           (while (search-backward "@" (point-min) t)
                             (insert "@") (forward-char -1))
                           (buffer-string)))
                  (princ "@\n") (princ finish)))
      (spew! (lambda (name) (cdr (assq name headers))) 'desc "")
      (dolist (rev revisions)
        (princ "\n\n") (princ (car rev)) (princ "\n")
        (flet ((rlook (name) (cdr (assq name (cdr rev)))))
          (spew! 'rlook 'log "")
          (spew! (if (assq :insn (cdr rev))
                     (let ((s (with-temp-buffer
                                (dolist (cmd (nreverse (rlook :insn)))
                                  (case (cadr cmd)
                                    (k (insert (format "d%d %d\n"
                                                       (car cmd)
                                                       (caddr cmd))))
                                    (i (insert (format "a%d "
                                                       (1- (car cmd))))
                                       (save-excursion
                                         (insert (caddr cmd)))
                                       (insert (format "%d\n"
                                                       (count-lines
                                                        (point) (point-max))))
                                       (goto-char (point-max)))))
                                (buffer-string))))
                       `(lambda (x) ,s))
                   'rlook)
                 'text ""))))))

  reply	other threads:[~2007-03-16 11:58 UTC|newest]

Thread overview: 147+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-16  9:29 On the rebasing problem of Emacs on Cygwin Angelo Graziosi
2006-12-16 14:01 ` Eli Zaretskii
2006-12-26  9:43   ` WARNING from config.status " Angelo Graziosi
2006-12-26 11:38     ` Andreas Schwab
2007-01-15  9:02   ` Problems building recent Emacs-CVS " Angelo Graziosi
2007-02-23 13:07   ` cygwin succesfull straight build Angelo Graziosi
2007-02-23 18:15     ` Eli Zaretskii
2007-03-07  1:26       ` Pretest? Angelo Graziosi
2007-03-08 19:40         ` Pretest? Chong Yidong
2007-03-09 13:59           ` Pretest? Giorgos Keramidas
2007-03-09 14:44             ` Pretest? Chong Yidong
2007-03-09 17:07               ` Pretest? Christian Faulhammer
2007-03-09 17:35                 ` Pretest? Juanma Barranquero
2007-03-09 18:33                   ` Pretest? Chong Yidong
2007-03-09 17:49               ` Pretest? Eli Zaretskii
2007-03-09 18:07                 ` Pretest? Giorgos Keramidas
2007-03-09 21:26               ` Pretest? Richard Stallman
2007-03-12 10:39               ` Pretest? Juanma Barranquero
2007-03-12 10:42                 ` Pretest? David Kastrup
2007-03-12 11:46                   ` Pretest? Juanma Barranquero
2007-03-12 14:53                 ` Pretest? Stefan Monnier
2007-03-12 15:46                   ` Pretest? Juanma Barranquero
2007-03-12 15:53                     ` Pretest? David Kastrup
2007-03-12 20:55                 ` Pretest? Chong Yidong
2007-03-12 21:32                   ` Pretest? Juanma Barranquero
2007-03-13  1:03                     ` Pretest? Chong Yidong
2007-03-13  9:37                       ` Pretest? Juanma Barranquero
2007-03-13  2:43                 ` Pretest? Richard Stallman
2007-03-13  9:43                   ` Pretest? Juanma Barranquero
2007-03-13  9:52                     ` Pretest? Andreas Schwab
2007-03-13 10:09                       ` Pretest? David Kastrup
2007-03-13 10:23                       ` Pretest? Juanma Barranquero
2007-03-19  5:15                         ` Pretest? Richard Stallman
2007-03-14  3:24                     ` Pretest? Richard Stallman
2007-03-14  7:10                       ` Pretest? David Kastrup
2007-03-14 13:39                         ` Pretest? Stefan Monnier
2007-03-14 14:04                           ` Pretest? David Kastrup
2007-03-14 14:19                             ` Pretest? Stefan Monnier
2007-03-14  9:18                       ` Pretest? Juanma Barranquero
2007-03-14  9:32                         ` Pretest? David Kastrup
2007-03-14  9:44                           ` Pretest? Juanma Barranquero
2007-03-14 10:07                             ` Pretest? David Kastrup
2007-03-14 10:17                               ` Pretest? Juanma Barranquero
2007-03-14 13:56                       ` Pretest? Chong Yidong
2007-03-14 14:24                         ` Pretest? Stefan Monnier
2007-03-15  1:38                         ` Pretest? Richard Stallman
2007-03-15 10:04                           ` Pretest? Juanma Barranquero
2007-03-16  5:20                             ` Pretest? Richard Stallman
2007-03-15 15:44                           ` Pretest? Chong Yidong
2007-03-16  5:21                             ` Pretest? Richard Stallman
2007-03-16  7:36                               ` Pretest? David Kastrup
2007-03-07 13:37       ` Help: build emacs in cygwin Angelo Graziosi
2007-03-09  1:06       ` Killing buffers with mouse Angelo Graziosi
2007-03-09 14:56         ` Chong Yidong
2007-03-09 15:15           ` Jan Djärv
2007-03-09 15:55             ` Stefan Monnier
2007-03-09 17:43               ` Jan Djärv
2007-03-09 23:19               ` Kim F. Storm
2007-03-10  9:35                 ` Jan Djärv
2007-03-13 14:24                   ` Emacs and GTK Angelo Graziosi
2007-03-13 14:41                     ` David Kastrup
2007-03-14  1:21                       ` Angelo Graziosi
2007-03-13 14:45                     ` Tassilo Horn
2007-03-10 16:00                 ` Killing buffers with mouse Stefan Monnier
2007-03-10 23:07                   ` Kim F. Storm
2007-03-11  1:32                     ` Stefan Monnier
2007-03-09 15:41         ` Eli Zaretskii
2007-03-09 16:46           ` Angelo Graziosi
2007-03-09 17:46             ` Eli Zaretskii
2007-03-14  9:02               ` Connection to emacs CVS broken ? Angelo Graziosi
2007-03-14  9:09                 ` David Kastrup
2007-03-14 17:42                   ` Glenn Morris
2007-03-15 15:17                     ` Kim F. Storm
2007-03-15 17:34                       ` Glenn Morris
2007-03-15 20:00                         ` Glenn Morris
2007-03-15 20:18                           ` Eli Zaretskii
2007-03-16  3:28                             ` Giorgos Keramidas
2007-03-16  5:21                             ` Richard Stallman
2007-03-16 11:58                               ` ttn [this message]
2007-03-16 15:07                             ` James Cloos
2007-03-15 20:27                           ` Chong Yidong
2007-03-15 20:49                             ` Nick Roberts
2007-03-15 22:17                               ` Jason Rumney
2007-03-15 23:15                                 ` Miles Bader
2007-03-15 23:34                                   ` NIIMI Satoshi
2007-03-16  4:55                                     ` Vinicius Jose Latorre
2007-03-16  5:25                                       ` Miles Bader
2007-03-16  5:47                                       ` Kenichi Handa
2007-03-16  6:28                                         ` Herbert Euler
2007-03-15 23:47                                   ` [DIFFS] " Kim F. Storm
2007-03-16  0:41                                     ` Nick Roberts
2007-03-16  1:14                                       ` Miles Bader
2007-03-16  1:52                                         ` Glenn Morris
2007-03-16  2:47                                           ` Miles Bader
2007-03-16 17:31                                             ` Richard Stallman
2007-03-16  2:56                                           ` NIIMI Satoshi
2007-03-16 17:31                                             ` Richard Stallman
2007-03-16 19:24                                               ` NIIMI Satoshi
2007-03-16  4:08                                           ` Chong Yidong
2007-03-16  9:38                                             ` Juanma Barranquero
2007-03-16  9:51                                               ` Juanma Barranquero
2007-03-16 10:08                                                 ` Kim F. Storm
2007-03-16 15:48                                                   ` Chong Yidong
2007-03-16 16:14                                                     ` Kim F. Storm
2007-03-16 18:54                                                       ` Chong Yidong
2007-03-16 19:22                                                         ` Glenn Morris
2007-03-17  1:32                                                           ` Herbert Euler
2007-03-17  2:19                                                             ` Glenn Morris
2007-03-17  6:28                                                               ` Leo
2007-03-16 16:56                                                     ` Jason Rumney
2007-03-17  2:44                                               ` Glenn Morris
2007-03-17 17:26                                                 ` Chong Yidong
2007-03-17 19:31                                                   ` Chong Yidong
2007-03-17 23:08                                                     ` Miles Bader
2007-03-17 23:52                                                     ` Kim F. Storm
2007-03-18  0:01                                                       ` Andreas Schwab
2007-03-18  0:25                                                         ` Kim F. Storm
2007-03-18  0:14                                                       ` Lennart Borgman (gmail)
2007-03-18  1:16                                                       ` Chong Yidong
2007-03-18  2:11                                                         ` Lennart Borgman (gmail)
2007-03-18  8:30                                                         ` martin rudalics
2007-03-19 15:45                                                           ` Chong Yidong
2007-03-18 15:56                                                       ` Richard Stallman
2007-03-18 12:19                                                     ` Richard Stallman
2007-03-19 18:28                                                     ` Glenn Morris
2007-03-19 19:46                                                       ` Stefan Monnier
2007-03-16 17:31                                             ` Richard Stallman
2007-03-17  0:12                                               ` Nick Roberts
2007-03-17  0:33                                                 ` Miles Bader
2007-03-17  5:00                                                   ` Nick Roberts
2007-03-17  6:02                                                     ` Miles Bader
2007-03-18 12:18                                                     ` Richard Stallman
2007-03-17 15:46                                                 ` Richard Stallman
2007-03-15 23:04                               ` Vinicius Jose Latorre
2007-03-16  5:21                             ` Richard Stallman
2007-03-15 21:06                           ` Glenn Morris
2007-03-15 20:26                         ` NIIMI Satoshi
2007-03-15 20:43                           ` Nick Roberts
2007-03-15 21:05                             ` NIIMI Satoshi
2007-03-14  9:09                 ` Davi Leal
2007-03-14  9:39                   ` Angelo Graziosi
2007-03-14 10:06                   ` Andreas Schwab
2007-03-15 23:35                     ` Angelo Graziosi
2007-03-15 23:54                       ` Vinicius Jose Latorre
2007-03-20 13:04               ` Pretest Angelo Graziosi
2007-03-10 15:50             ` Killing buffers with mouse Richard Stallman
     [not found] <m3bqitle0z.fsf@kfs-l.imdomain.dk>
2007-03-16  9:59 ` Connection to emacs CVS broken ? Herbert Euler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1HSB4Y-0008Lv-10@mail.agora-net.com \
    --to=ttn@gnuvola.org \
    --cc=emacs-devel@gnu.org \
    --cc=ttn@agora-net.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).