Commit graph

730 commits

Author SHA1 Message Date
Dan Nicolaescu
10b5dcad46 (vc-dir-move-to-goal-column): Declare. 2009-07-23 05:41:24 +00:00
Dan Nicolaescu
d6a62b0d7a (vc-print-log-internal): New function, split out from ...
(vc-print-log): ... here.
2009-07-23 05:21:34 +00:00
Dan Nicolaescu
3c3bf6ce8f Remove find-file-not-found-hook VC method. (Bug#2757)
* vc-hooks.el (vc-file-not-found-hook)
(vc-default-find-file-not-found-hook): Remove functions.
(find-file-not-found-functions): Do not add vc-file-not-found-hook.
* vc-rcs.el (vc-rcs-find-file-not-found-hook): Remove function.
* vc.el:
* vc-hg.el:
* vc-git.el: Do not mention find-file-not-found-hook VC method.
2009-06-26 23:53:55 +00:00
Dan Nicolaescu
77bf3f5452 * vc-hooks.el (vc-stay-local-p, vc-state, vc-working-revision):
Add an optional argument for the backend, use it instead of
calling vc-backend.
(vc-mode-line): Add an optional argument for the backend.  Pass
the backend to vc-state and vc-working-revision.  Move code for
special handling for vc-state being a buffer to ...

* vc-rcs.el (vc-rcs-find-file-hook):
* vc-sccs.el (vc-sccs-find-file-hook): ... here.  New functions.

* vc-svn.el (vc-svn-state, vc-svn-dir-status, vc-svn-checkout)
(vc-svn-print-log, vc-svn-diff): Pass 'SVN to vc-state,
vc-stay-local-p and vc-mode-line calls.

* vc-cvs.el (vc-cvs-state, vc-cvs-checkout, vc-cvs-print-log)
(vc-cvs-diff, vc-cvs-annotate-command)
(vc-cvs-make-version-backups-p, vc-cvs-stay-local-p)
(vc-cvs-dir-status): Pass 'CVS to vc-state, vc-stay-local-p and
vc-mode-line calls.

* vc.el (vc-deduce-fileset): Use vc-deduce-fileset instead of
direct comparison.
(vc-next-action, vc-transfer-file, vc-rename-file): Also pass the
backend when calling vc-mode-line.
(vc-register): Do not create a closure for calling the vc register
function, call it directly.
2009-06-23 06:35:40 +00:00
Stefan Monnier
37438e77c2 (vc-default-revision-granularity): Remove to let the normal
error handling kick in (bug#3570).
2009-06-15 20:55:53 +00:00
Johan Bockgård
bea2e9691d (vc-revision-other-window): Fix argument to backend function
revision-completion-table; it expects a list.
2009-06-04 20:31:52 +00:00
Stefan Monnier
97355c3832 (vc-delete-file): Add autoload cookie (bug#3209). 2009-05-05 04:02:45 +00:00
Dan Nicolaescu
bd924903e9 (Todo): Add note on simplifying vc-register. 2009-03-21 15:39:10 +00:00
Dan Nicolaescu
57b037f9bc (vc-checkin): Add an extra argument for the VC backend,
pass it down to vc-start-logentry.
(vc-next-action, vc-transfer-file): Pass the VC backend to
vc-checkin.
(vc-next-action): Do not assume that all backends in
vc-handled-backends are upper case.
2009-03-15 08:58:02 +00:00
Dan Nicolaescu
01cf1a52ea (vc-checkin): Add an extra argument for the VC backend,
pass it down to vc-start-logentry.
(vc-next-action, vc-transfer-file): Pass the VC backend to
vc-checkin.
2009-03-15 08:54:00 +00:00
Dan Nicolaescu
24703c3cc8 (vc-default-receive-file): The 'register method now
expects a list, pass a list.
2009-03-14 16:37:09 +00:00
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Glenn Morris
d2ee9b136d (vc-diff-switches): Doc fix. 2008-12-03 07:45:04 +00:00
Lute Kamstra
9201cc281b * align.el:
* allout.el:
* apropos.el:
* arc-mode.el:
* autoinsert.el:
* avoid.el:
* battery.el:
* bookmark.el:
* buff-menu.el:
* calculator.el:
* chistory.el:
* cmuscheme.el:
* comint.el:
* compare-w.el:
* dabbrev.el:
* delim-col.el:
* desktop.el:
* diff-mode.el:
* diff.el:
* dired-aux.el:
* dired-x.el:
* dired.el:
* dos-vars.el:
* ediff-diff.el:
* ediff-help.el:
* ediff-init.el:
* ediff-merg.el:
* ediff-mult.el:
* ediff-ptch.el:
* ediff-vers.el:
* ediff-wind.el:
* ediff.el:
* emerge.el:
* facemenu.el:
* faces.el:
* ffap.el:
* filecache.el:
* find-dired.el:
* font-core.el:
* font-lock.el:
* forms.el:
* fringe.el:
* help-at-pt.el:
* hippie-exp.el:
* ido.el:
* image-file.el:
* imenu.el:
* indent.el:
* info.el:
* isearchb.el:
* iswitchb.el:
* jit-lock.el:
* jka-compr.el:
* log-edit.el:
* lpr.el:
* ls-lisp.el:
* man.el:
* menu-bar.el:
* midnight.el:
* mouse-sel.el:
* mouse.el:
* msb.el:
* outline.el:
* paren.el:
* pcmpl-cvs.el:
* pcmpl-gnu.el:
* pcomplete.el:
* pcvs-info.el:
* pcvs-parse.el:
* printing.el:
* ps-mule.el:
* ps-print.el:
* replace.el:
* ruler-mode.el:
* saveplace.el:
* sb-image.el:
* scroll-bar.el:
* sha1.el:
* shadowfile.el:
* shell.el:
* sort.el:
* speedbar.el:
* strokes.el:
* tempo.el:
* term.el:
* terminal.el:
* time-stamp.el:
* time.el:
* tree-widget.el:
* type-break.el:
* vc-cvs.el:
* vc-hg.el:
* vc-mcvs.el:
* vc-rcs.el:
* vc-sccs.el:
* vc.el:
* view.el:
* w32-vars.el:
* whitespace.el:
* wid-edit.el: Remove leading * from docstrings of defcustoms,
deffaces, defconsts and defuns.
2008-12-03 05:48:14 +00:00
Chong Yidong
904f87938b (vc-revert): Limit the length of the query string. 2008-10-30 19:21:07 +00:00
Dan Nicolaescu
13ad745788 * vc.el: Rename VC methods that were missed when vc-status was
renamed to vc-dir.
* vc-svn.el (vc-svn-dir-extra-headers): Rename from
vc-svn-status-extra-headers.
* vc-hg.el (vc-hg-dir-printer): Rename from vc-hg-status-printer.
(vc-hg-dir-extra-header): Rename from vc-hg-status-extra-headers.
* vc-git.el (vc-git-dir-printer): Rename from vc-dir-status-printer.
(vc-git-dir-extra-headers): Rename from vc-git-status-extra-headers.
* vc-dir.el (vc-dir-mode): Use vc-dir-printer instead of
vc-dir-status-printer.
(vc-dir-headers): Use `dir-extra-headers' instead of
`status-extra-headers'
(vc-dir-printer): Rename from vc-dir-status-printer.
(vc-default-dir-extra-headers): Rename from
vc-default-status-extra-headers.
* vc-cvs.el (vc-cvs-dir-extra-headers): Rename from
vc-cvs-status-extra-headers.
2008-10-27 07:21:43 +00:00
Glenn Morris
10d5dd8ca5 Fix previous change. 2008-09-28 17:57:00 +00:00
Glenn Morris
559ca68a05 (vc-switches): Give it a doc string. 2008-09-28 17:54:50 +00:00
Chong Yidong
6002d9b956 Fix last fix. 2008-09-25 01:46:06 +00:00
Chong Yidong
f41d99b0b4 (vc-mark-resolved): Move message here from vc-default-mark-resolved.
(vc-default-mark-resolved): Change to an alias for ignore.
2008-09-25 01:44:23 +00:00
Chong Yidong
92d2ea2ce7 (vc-default-mark-resolved): New function. 2008-09-24 19:14:58 +00:00
Stefan Monnier
3dd2acc9d3 * vc-svn.el (vc-svn-root):
* vc-sccs.el (vc-sccs-root):
* vc-rcs.el (vc-rcs-root):
* vc-cvs.el (vc-cvs-root): Delete.
* vc-hooks.el (vc-find-root): Remove `invert' argument.
2008-09-07 20:24:24 +00:00
Glenn Morris
1912f6cf97 (vc-default-previous-version): Move alias here from vc-hooks, and fix
name typos.  (Bug#856)
2008-09-01 21:47:42 +00:00
Chong Yidong
554c98c508 (vc-next-action): Update list var correctly after delete. 2008-08-02 21:31:41 +00:00
Dan Nicolaescu
f6ff0e873f (Todo): Update. 2008-07-22 04:39:27 +00:00
Dan Nicolaescu
f731e2f977 * vc-dir.el (vc-dir-hide-up-to-date): Also hide empty directories.
(vc-string-prefix-p): Move function ...
* vc.el (vc-string-prefix-p): ... here.
2008-06-28 07:30:47 +00:00
Dan Nicolaescu
50925e72de * vc-dir.el (tool-bar): Require.
* vc.el (ewoc, tool-bar): Do no require.
2008-06-26 05:16:49 +00:00
Dan Nicolaescu
2913a58d6e * vc-dir.el (vc-dir-marked-only-files-and-states): Rename from
vc-dir-marked-only-files.  Change the return value.
(vc-dir-child-files-and-states): Rename from vc-dir-child-files.
Change the return value.
(vc-dir-deduce-fileset): New function broken out from ...
* vc.el (vc-deduce-fileset): ... here and ...
(vc-deduce-fileset): ... here.
2008-06-25 03:19:14 +00:00
Dan Nicolaescu
572aed3d4c (Todo): Update. 2008-06-24 03:24:38 +00:00
Dan Nicolaescu
74d0991fc5 * vc.el:
* vc-hooks.el:
* vc-dispatcher.el: Move vc-dir variables and functions ...
* vc-dir.el: ... here.  New file.
* Makefile.in (ELCFILES): Add vc-dir.elc.
2008-06-22 19:04:22 +00:00
Dan Nicolaescu
f439c140ac * vc.el: Move vc-annotate variables and functions ...
* vc-annotate.el: ... here.  New file.
* Makefile.in (ELCFILES): Add vc-annotate.elc.
2008-06-22 17:56:00 +00:00
Dan Nicolaescu
3daebe67ea * vc.el (vc-switch-backend): Simplify.
(Todo): Remove solved items.

* vc-cvs.el (vc-cvs-parse-status, vc-cvs-parse-entry): Do not set
the vc-backend property.
2008-06-20 17:08:55 +00:00
Dan Nicolaescu
3114c2523a (vc-dir-hide-up-to-date): Undo previous change. 2008-06-20 17:05:55 +00:00
Sam Steingold
424ce3bd46 (vc-dir-hide-up-to-date): Accept a prefix argument to also remove DIRECTORY entries. 2008-06-20 15:50:16 +00:00
Stefan Monnier
de7a9afaf3 (vc-deduce-fileset): Add arg `only-files'.
(vc-next-action): Pass the new arg.
(vc-register): Don't use `only-files'.
Don't set `backup-inhibited' in the current buffer.
2008-06-17 15:39:06 +00:00
Dan Nicolaescu
6653c6b769 * log-view.el (log-view-diff-changeset): New function.
(log-view-mode-map, log-view-mode-menu): Bind it.
(log-view-per-file-logs, log-view-vc-fileset)
(log-view-vc-backend): New variables.
(log-view-find-revision, log-view-modify-change-comment)
(log-view-annotate-version): Throw an error if the log is for more
than one file and we can't find the current file.  Get the current
file from log-view-vc-fileset if necessary.
(log-view-diff): Get the current file from log-view-vc-fileset if
necessary.

* vc.el (vc-print-log): Set log-view-vc-fileset and log-view-vc-backend.

* vc-hg.el (vc-hg-log-view-mode): Call the log method only once.
(vc-hg-log-view-mode): Declare for compiler.
(vc-hg-log-view-mode): Set log-view-per-file-logs and
log-view-file-re.
(vc-hg-diff): If no file is passed, use default-directory for cwd.

* vc-bzr.el (vc-bzr-log-view-mode): Set log-view-per-file-logs.

* vc-svn.el (vc-svn-log-view-mode): New derived mode.
2008-06-15 14:58:24 +00:00
Dan Nicolaescu
39693840dc (vc-deduce-fileset): Check if the buffer has a file.
(vc-register): Call the backend function only once, instead of
once for each file.
(vc-next-action): Update call to vc-register.
(vc-dir-register): Remove function.
(vc-dir): Bind vc-register instead of vc-dir-register.
2008-06-15 02:52:44 +00:00
Dan Nicolaescu
38b627cea0 (vc-annotate-show-diff-revision-at-line): Move most of the code to ...
(vc-annotate-show-diff-revision-at-line-internal): ... here.  New
function.
(vc-annotate-show-changeset-diff-revision-at-line): New function.
(vc-annotate-mode-menu): Bind it.
2008-06-13 14:51:06 +00:00
Dan Nicolaescu
05fae1be0c (vc-delete-file): Bound default-directory before calling
the backend.
2008-06-13 14:40:57 +00:00
Sam Steingold
260c15b4b9 (vc-rename-file): DTRT when the destination is a directory name and the source is a file. 2008-06-12 16:56:43 +00:00
Sam Steingold
f0fbfd4372 (vc-update): Use `save-some-buffers' instead of signaling an error on modified buffers. 2008-06-05 15:53:05 +00:00
Dan Nicolaescu
cbb8ec3e03 Add todo. 2008-05-27 00:20:23 +00:00
Dan Nicolaescu
114515eba8 (vc-deduce-fileset): Replace implementation with one based on a
working older version.
(vc-next-action): Use the new form of vc-deduce-fileset.  Fix
dealing with unregistered files.
2008-05-27 00:18:35 +00:00
Dan Nicolaescu
dff34e7e98 (Problems): Remove fixed issues.
(vc-dir-headers): Align labels.
(vc-default-status-printer): Do no call prettify-state-info.
2008-05-27 00:10:53 +00:00
Dan Nicolaescu
476b4d3518 (vc-make-backend-object): Fix name.
(vc-dir-show-fileentry): Fix docstring.
(vc-dir-refresh): Use vc-dir-backend.  Fix docstring.
(vc-dir-refresh-files): Use vc-dir-backend.  Fix docstring.  Reset
the state for directories.
2008-05-27 00:05:22 +00:00
Dan Nicolaescu
918e2ac456 (Problems): Remove fixed issues.
(vc-expand-dirs): Avoid returning directories.
2008-05-26 23:53:33 +00:00
Dan Nicolaescu
4ff615b49f * vc.el (Problems): Remove fixed issues.
* vc-dispatcher.el (vc-dir-menu-map): Fix menu title for the menu bar and the popup menu.
2008-05-26 23:44:59 +00:00
Andreas Schwab
9b06a6bdfe (vc-default-prettify-state-info): Fix formatting of an
unknown state.
2008-05-26 12:08:23 +00:00
Dan Nicolaescu
64e5a32f19 (vc-delete-file): Make sure the buffer is deleted and
vc-dir buffers are updated.
2008-05-23 21:38:32 +00:00
Stefan Monnier
ee91bfdf8c (vc-delete-file): Don't try to resynch the buffer. 2008-05-23 20:59:51 +00:00