unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* vc-dir with Subversion
@ 2009-04-03  8:04 Nick Roberts
  2009-04-03 19:08 ` Richard M Stallman
  2009-04-03 19:21 ` Chong Yidong
  0 siblings, 2 replies; 6+ messages in thread
From: Nick Roberts @ 2009-04-03  8:04 UTC (permalink / raw)
  To: emacs-devel


Using Subversion, vc-dir detects conflicts of two kinds:

1) Prior to updating.
2) After updating.

but labels the status with the keyword `conflict' in both cases.  In the
latter case all other keywords use the past tense: removed, edited,
unregistered etc.  To avoid confusion I suggest that we use the keyword
`conflicted' for this case.  The patch below does this.

OK to apply?

-- 
Nick                                           http://www.inet.net.nz/~nickrob


2009-04-03  Nick Roberts  <nickrob@snap.net.nz>

	* vc-svn.el (vc-svn-after-dir-status): Use "conflicted" for a file
	with conflicts in it.

	* vc-dir.el (vc-default-dir-printer): Use font-lock-warning-face
	for keyword above.


*** vc-svn.el.~1.112.~	2009-02-10 18:59:14.000000000 +1300
--- vc-svn.el	2009-04-03 20:39:29.000000000 +1300
*************** want to force an empty list of arguments
*** 156,162 ****
  ;; but to distinguish the two output formats based on content.
  (defun vc-svn-after-dir-status (callback &optional remote)
    (let ((state-map '((?A . added)
!                      (?C . conflict)
                       (?D . removed)
                       (?I . ignored)
                       (?M . edited)
--- 156,162 ----
  ;; but to distinguish the two output formats based on content.
  (defun vc-svn-after-dir-status (callback &optional remote)
    (let ((state-map '((?A . added)
!                      (?C . conflicted)
                       (?D . removed)
                       (?I . ignored)
                       (?M . edited)


*** vc-dir.el.~1.38.~	2009-03-21 09:41:38.000000000 +1300
--- vc-dir.el	2009-04-03 20:41:57.000000000 +1300
*************** Interactively, a prefix argument means t
*** 1171,1177 ****
       (propertize
        (format "%-20s" state)
        'face (cond ((eq state 'up-to-date) 'font-lock-builtin-face)
! 		  ((memq state '(missing conflict)) 'font-lock-warning-face)
  		  (t 'font-lock-variable-name-face))
        'mouse-face 'highlight)
       " "
--- 1171,1177 ----
       (propertize
        (format "%-20s" state)
        'face (cond ((eq state 'up-to-date) 'font-lock-builtin-face)
! 		  ((memq state '(missing conflict conflicted)) 'font-lock-warning-face)
  		  (t 'font-lock-variable-name-face))
        'mouse-face 'highlight)
       " "




^ permalink raw reply	[flat|nested] 6+ messages in thread
* vc-dir with Subversion
@ 2008-08-05  7:44 Nick Roberts
  0 siblings, 0 replies; 6+ messages in thread
From: Nick Roberts @ 2008-08-05  7:44 UTC (permalink / raw)
  To: emacs-devel


In the past I've remarked that with CVS vc-dir ignores vc-stay-local (and
vc-cvs-stay-local) and consults the repository, in any case.

I now see that with SVN, vc-dir also ignores vc-stay-local but this time
never consults the repository.

I'm not sure if it worked with vc-directory, but for this function, the
command "svn log -u" was used when vc-stay-local was nil.  In Emacs 23.0.60
it always just sends "svn log"

-- 
Nick                                           http://www.inet.net.nz/~nickrob




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-04-03 23:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-03  8:04 vc-dir with Subversion Nick Roberts
2009-04-03 19:08 ` Richard M Stallman
2009-04-03 23:13   ` Nick Roberts
2009-04-03 19:21 ` Chong Yidong
2009-04-03 23:18   ` Nick Roberts
  -- strict thread matches above, loose matches on Subject: below --
2008-08-05  7:44 Nick Roberts

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).