[Cvsnt] Repository prefix and cvs status

Anthony Williams anthwil at nortelnetworks.com
Tue Jun 11 11:00:41 BST 2002


A while ago, I noted that if you set up a repository prefix, this still
appears in the "repository revision" part of the "cvs status" output, which
seems wrong to me --- the prefix should not be discoverable from the client.
Below is a patch to status.c to remove the prefix.

Anthony
--
Anthony Williams
Software Engineer, Nortel Networks Optical Components Ltd
The opinions expressed in this message are not necessarily those of my
employer

*** sol7/cvsnt-1.11.1.3/src/status.c Thu Jan 17 22:41:38 2002
--- cvsnt-1.11.1.3/src/status.c Tue Jun 11 10:50:52 2002
***************
*** 247,253 ****
   cvs_output ("   Repository revision:\t", 0);
   cvs_output (vers->vn_rcs, 0);
   cvs_output ("\t", 0);
!  cvs_output (vers->srcfile->path, 0);
   cvs_output ("\n", 0);
      }

--- 247,260 ----
   cvs_output ("   Repository revision:\t", 0);
   cvs_output (vers->vn_rcs, 0);
   cvs_output ("\t", 0);
!  if(CVSroot_prefix!=NULL &&
!strncmp(vers->srcfile->path,CVSroot_prefix,strlen(CVSroot_prefix)))
!  {
!      cvs_output (vers->srcfile->path+strlen(CVSroot_prefix), 0);
!  }
!  else
!  {
!      cvs_output (vers->srcfile->path, 0);
!  }
   cvs_output ("\n", 0);
      }






_______________________________________________
Cvsnt mailing list
Cvsnt at cvsnt.org
http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt




More information about the cvsnt mailing list