all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Masatake YAMATO <jet@gyve.org>
Subject: *-MIRROR and *-SOURCE in vc-arch.el
Date: Sun, 17 Oct 2004 12:07:59 +0900 (JST)	[thread overview]
Message-ID: <20041017.120759.112621295.jet@gyve.org> (raw)

When I open a file which is in a directory retrieved by gnuarch(tla get)
from local mirror archives or remote mirror archives of my local archives,
I get an error:

     vc-arch-workfile-version: Opening directory: No such a file or a directory, /tmp/xtla-mirror/{arch}/xtla/xtla--jet/xtla--jet--0.2/jet@gyve.org--xtla-MIRROR/patch-log

("No such file or directory" is my translation. The original message is Japanese.)

vc-arch-workfile-version doesn't handle mirror archives.

In some case, tla uses -MIRROR or -SOURCE as suffix archive name:

    $ tla make-archive -H
    create a new archive directory
    usage: tla make-archive [options] [name] location
    ...
    With --mirror, label the new archive as a mirror of MASTER.
    Ordinary commits can not be made to a mirror archive, however
    the command "tla archive-mirror" can write to a mirror.

    Two special forms of this command are available:

       tla make-archive --mirror MASTER LOCATION

    is equivalent to:

       tla make-archive --mirror MASTER MASTER-MIRROR LOCATION
                                              ^^^^^^^
    and thus "tla archive-mirror MASTER" will push changes
    from MASTER to the newly created mirror.

       tla make-archive --mirror-from MASTER-SOURCE LOCATION
                                            ^^^^^^^
    is equivalent to:

       tla make-archive --mirror MASTER-SOURCE MASTER LOCATION

    and thus "tla archive-mirror MASTER" will pull changes
    from MASTER-SOURCE to the newly created mirror.

2004-10-17  Masatake YAMATO  <jet@gyve.org>

	* vc-arch.el (vc-arch-workfile-version): Cut down mirror suffixes
	from the archive name.

Index: lisp/vc-arch.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/vc-arch.el,v
retrieving revision 1.12
diff -u -r1.12 vc-arch.el
--- lisp/vc-arch.el	13 Sep 2004 20:39:59 -0000	1.12
+++ lisp/vc-arch.el	16 Oct 2004 16:29:40 -0000
@@ -282,6 +282,11 @@
 	(setq logdir (expand-file-name branch logdir))
 	(setq logdir (expand-file-name version logdir))
 	(setq logdir (expand-file-name archive logdir))
+	(setq logdir (if (and (not (file-directory-p logdir))
+			      (or (string-match "\\(.+\\)-MIRROR$" logdir)
+				  (string-match "\\(.+\\)-SOURCE$" logdir)))
+			 (match-string 1 logdir)
+		       logdir))
 	(setq logdir (expand-file-name "patch-log" logdir))
 	;; Revision names go: base-0, patch-N, version-0, versionfix-N.
 	(dolist (file (directory-files logdir))

             reply	other threads:[~2004-10-17  3:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-17  3:07 Masatake YAMATO [this message]
2004-10-17 22:57 ` *-MIRROR and *-SOURCE in vc-arch.el Stefan Monnier
2004-10-18  2:11   ` [Gnu-arch-users] " Aaron Bentley

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

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

  git send-email \
    --in-reply-to=20041017.120759.112621295.jet@gyve.org \
    --to=jet@gyve.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.