comparison lisp/vc-sccs.el @ 37051:92a0a59a48ee

(vc-sccs-register): Use relative file names.
author André Spiegel <spiegel@gnu.org>
date Thu, 29 Mar 2001 11:49:22 +0000
parents e7e3ef788639
children b174db545cfd
comparison
equal deleted inserted replaced
37050:26cc1684baff 37051:92a0a59a48ee
3 ;; Copyright (C) 1992,93,94,95,96,97,98,99,2000,2001 Free Software Foundation, Inc. 3 ;; Copyright (C) 1992,93,94,95,96,97,98,99,2000,2001 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: Andre Spiegel <spiegel@gnu.org> 6 ;; Maintainer: Andre Spiegel <spiegel@gnu.org>
7 7
8 ;; $Id: vc-sccs.el,v 1.9 2001/02/01 17:42:44 fx Exp $ 8 ;; $Id: vc-sccs.el,v 1.10 2001/03/10 10:51:22 spiegel Exp $
9 9
10 ;; This file is part of GNU Emacs. 10 ;; This file is part of GNU Emacs.
11 11
12 ;; GNU Emacs is free software; you can redistribute it and/or modify 12 ;; GNU Emacs is free software; you can redistribute it and/or modify
13 ;; it under the terms of the GNU General Public License as published by 13 ;; it under the terms of the GNU General Public License as published by
172 (basename (file-name-nondirectory file)) 172 (basename (file-name-nondirectory file))
173 (project-file (vc-sccs-search-project-dir dirname basename))) 173 (project-file (vc-sccs-search-project-dir dirname basename)))
174 (let ((vc-name 174 (let ((vc-name
175 (or project-file 175 (or project-file
176 (format (car vc-sccs-master-templates) dirname basename)))|) 176 (format (car vc-sccs-master-templates) dirname basename)))|)
177 (apply 'vc-do-command nil 0 "admin" nil 177 (apply 'vc-do-command nil 0 "admin" vc-name
178 (and rev (concat "-r" rev)) 178 (and rev (concat "-r" rev))
179 "-fb" 179 "-fb"
180 (concat "-i" file) 180 (concat "-i" (file-relative-name file))
181 (and comment (concat "-y" comment)) 181 (and comment (concat "-y" comment))
182 vc-name
183 switches)) 182 switches))
184 (delete-file file) 183 (delete-file file)
185 (if vc-keep-workfiles 184 (if vc-keep-workfiles
186 (vc-do-command nil 0 "get" (vc-name file))))) 185 (vc-do-command nil 0 "get" (vc-name file)))))
187 186