Fix brokenness in previous change: can't pass "." for PATH argument to
authorChris Hanson <org/chris-hanson/cph>
Tue, 18 Dec 2007 03:59:33 +0000 (03:59 +0000)
committerChris Hanson <org/chris-hanson/cph>
Tue, 18 Dec 2007 03:59:33 +0000 (03:59 +0000)
"bzr ls --non-recursive".  Instead pass no PATH arg and it does the
right thing.  Also: don't forget to quote the filename before passing
it to RE-STRING-SEARCH-FORWARD.

v7/src/edwin/vc.scm

index 160930e0332b6947ec72a3cd5415c8cfb688db10..fa8287a013f9b841a8c139c268732ebc5f4a8d8e 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: vc.scm,v 1.107 2007/12/16 01:10:38 cph Exp $
+$Id: vc.scm,v 1.108 2007/12/18 03:59:33 cph Exp $
 
 Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
     1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
@@ -2551,10 +2551,11 @@ the value of vc-log-mode-hook."
   (%bzr-ls-test workfile "--ignored"))
 
 (define (%bzr-ls-test workfile option)
-  (let ((result (%bzr-run-command workfile "ls" "--non-recursive" option ".")))
+  (let ((result (%bzr-run-command workfile "ls" "--non-recursive" option)))
     (and result
-        (re-string-search-forward (string-append "^\\./"
-                                                 (file-namestring workfile)
+        (re-string-search-forward (string-append "^"
+                                                 (re-quote-string
+                                                  (file-namestring workfile))
                                                  "$")
                                   result))))