Mercurial > emacs
comparison lisp/vc.el @ 38608:cfe886db83f8
#Document prev change.
author | André Spiegel <spiegel@gnu.org> |
---|---|
date | Mon, 30 Jul 2001 18:25:58 +0000 |
parents | 32e167f31eb6 |
children | 2dddcf515155 |
comparison
equal
deleted
inserted
replaced
38607:6752a4952330 | 38608:cfe886db83f8 |
---|---|
3 ;; Copyright (C) 1992,93,94,95,96,97,98,2000,2001 Free Software Foundation, Inc. | 3 ;; Copyright (C) 1992,93,94,95,96,97,98,2000,2001 Free Software Foundation, Inc. |
4 | 4 |
5 ;; Author: FSF (see below for full credits) | 5 ;; Author: FSF (see below for full credits) |
6 ;; Maintainer: Andre Spiegel <spiegel@gnu.org> | 6 ;; Maintainer: Andre Spiegel <spiegel@gnu.org> |
7 | 7 |
8 ;; $Id: vc.el,v 1.302 2001/07/30 08:18:04 gerd Exp $ | 8 ;; $Id: vc.el,v 1.303 2001/07/30 15:01:49 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 |
1425 (vc-finish-logentry (eq comment t))))) | 1425 (vc-finish-logentry (eq comment t))))) |
1426 | 1426 |
1427 (defun vc-checkout (file &optional writable rev) | 1427 (defun vc-checkout (file &optional writable rev) |
1428 "Retrieve a copy of the revision REV of FILE. | 1428 "Retrieve a copy of the revision REV of FILE. |
1429 If WRITABLE is non-nil, make sure the retrieved file is writable. | 1429 If WRITABLE is non-nil, make sure the retrieved file is writable. |
1430 REV defaults to the latest revision." | 1430 REV defaults to the latest revision. |
1431 | |
1432 After check-out, runs the normal hook `vc-checkout-hook'." | |
1431 (and writable | 1433 (and writable |
1432 (not rev) | 1434 (not rev) |
1433 (vc-call make-version-backups-p file) | 1435 (vc-call make-version-backups-p file) |
1434 (vc-up-to-date-p file) | 1436 (vc-up-to-date-p file) |
1435 (vc-make-version-backup file)) | 1437 (vc-make-version-backup file)) |