Mercurial > emacs
comparison lisp/vc-arch.el @ 91327:606f2d163a64
Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-312
author | Miles Bader <miles@gnu.org> |
---|---|
date | Wed, 09 Jan 2008 01:21:15 +0000 |
parents | 880960b70474 107ccd98fa12 |
children | c70e45a7acfd |
comparison
equal
deleted
inserted
replaced
91326:b1a63d7fa09c | 91327:606f2d163a64 |
---|---|
1 ;;; vc-arch.el --- VC backend for the Arch version-control system | 1 ;;; vc-arch.el --- VC backend for the Arch version-control system |
2 | 2 |
3 ;; Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc. | 3 ;; Copyright (C) 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
4 | 4 |
5 ;; Author: FSF (see vc.el for full credits) | 5 ;; Author: FSF (see vc.el for full credits) |
6 ;; Maintainer: Stefan Monnier <monnier@gnu.org> | 6 ;; Maintainer: Stefan Monnier <monnier@gnu.org> |
7 | 7 |
8 ;; This file is part of GNU Emacs. | 8 ;; This file is part of GNU Emacs. |
191 'names)))) | 191 'names)))) |
192 | 192 |
193 (defun vc-arch-root (file) | 193 (defun vc-arch-root (file) |
194 "Return the root directory of a Arch project, if any." | 194 "Return the root directory of a Arch project, if any." |
195 (or (vc-file-getprop file 'arch-root) | 195 (or (vc-file-getprop file 'arch-root) |
196 (vc-file-setprop | 196 ;; Check the =tagging-method, in case someone naively manually |
197 ;; Check the =tagging-method, in case someone naively manually | 197 ;; creates a {arch} directory somewhere. |
198 ;; creates a {arch} directory somewhere. | 198 (let ((root (vc-find-root file "{arch}/=tagging-method"))) |
199 file 'arch-root (vc-find-root file "{arch}/=tagging-method")))) | 199 (when root |
200 (vc-file-setprop | |
201 file 'arch-root root))))) | |
200 | 202 |
201 (defun vc-arch-register (files &optional rev comment) | 203 (defun vc-arch-register (files &optional rev comment) |
202 (if rev (error "Explicit initial revision not supported for Arch")) | 204 (if rev (error "Explicit initial revision not supported for Arch")) |
203 (dolist (file files) | 205 (dolist (file files) |
204 (let ((tagmet (vc-arch-tagging-method file))) | 206 (let ((tagmet (vc-arch-tagging-method file))) |