cvs-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Cvs-cvs] ccvs/src ChangeLog client.c


From: Derek Robert Price
Subject: [Cvs-cvs] ccvs/src ChangeLog client.c
Date: Mon, 29 Sep 2008 16:06:45 +0000

CVSROOT:        /cvsroot/cvs
Module name:    ccvs
Changes by:     Derek Robert Price <dprice>     08/09/29 16:06:45

Modified files:
        src            : ChangeLog client.c 

Log message:
        * client.c (is_cvsroot_level): Improve commenting, minor cleanup.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/ccvs/src/ChangeLog?cvsroot=cvs&r1=1.3622&r2=1.3623
http://cvs.savannah.gnu.org/viewcvs/ccvs/src/client.c?cvsroot=cvs&r1=1.479&r2=1.480

Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/cvs/ccvs/src/ChangeLog,v
retrieving revision 1.3622
retrieving revision 1.3623
diff -u -b -r1.3622 -r1.3623
--- ChangeLog   29 Sep 2008 02:56:35 -0000      1.3622
+++ ChangeLog   29 Sep 2008 16:06:44 -0000      1.3623
@@ -1,3 +1,7 @@
+2008-09-29  Derek R. Price  <address@hidden>
+
+       * client.c (is_cvsroot_level): Improve commenting, minor cleanup.
+
 2008-09-28  Derek R. Price  <address@hidden>
 
        * checkout.c (checkout): Minor cleanup.

Index: client.c
===================================================================
RCS file: /cvsroot/cvs/ccvs/src/client.c,v
retrieving revision 1.479
retrieving revision 1.480
diff -u -b -r1.479 -r1.480
--- client.c    25 Sep 2008 22:26:00 -0000      1.479
+++ client.c    29 Sep 2008 16:06:45 -0000      1.480
@@ -2798,14 +2798,24 @@
 
 
 
-/* Is this the top level (directory containing CVSROOT)?  */
+/* Does relative path specification PATHNAME specify the top level repository
+ * directory (directory containing the configuration project, CVSROOT) for the
+ * current repository?
+ */
 static bool
 is_cvsroot_level (char *pathname)
 {
+    /* If the current TOPLEVEL_REPOS isn't for the current root, return
+     * false.  The server can sometimes set TOPLEVEL_REPOS to a subpath of
+     * CURRENT_PARSED_ROOT->directory.
+     */
     if (!STREQ (toplevel_repos, current_parsed_root->directory))
        return false;
 
-    return STREQ (pathname, "")
+    /* An empty (relative) repository, or one trailing ./, specifies the top
+     * level.
+     */
+    return !*pathname
           /* or PATHNAME == "./" */
           || pathname[0] == '.' && ISSLASH (pathname[1]) && !pathname[2];
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]