[cvsnt] 2.0.58: Problem with rename

Olaf Groeger Olaf.Groeger at gmx.de
Mon Oct 4 17:12:00 BST 2004


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


Hi, i installed 2.0.58 over an older version. Using ext as protocol (ssh) i
could import, add, update, commit without a problem. The only thing which
doesn't work is the renaming feature. The "cvs rename" step performs
without problem, but when i attempt to commit the directory i get the good
old "end of file from server" message. This is what the trace option gives:

olaf:~/temp/servertest/test1$ cvs -ttt commit -m "renamed file"
  -> Tracelevel set to 3.  PID is 5270
  -> Session ID is 149641616f9791c1
  -> Loading protocol /usr/lib/cvsnt/ext_protocol
  -> main loop with CVSROOT=:ext:olaf at localhost:/opt/cvs/server1/repository
  -> Config file name /home/olaf/.cvs/ext
  -> Compression enabled
  -> Server codepage is ISO-8859-1
  -> Client codepage is ISO-8859-1
  -> Requesting server cvsignore
  -> wrap_add(*.gif -kb, 0, 0)
  -> wrap_add(*.pdf -kb, 0, 0)
  -> wrap_add(*.bmp -kb, 0, 0)
  -> wrap_add(*.jpg -kb, 0, 0)
  -> wrap_add(*.jpeg -kb, 0, 0)
  -> wrap_add(*.png -kb, 0, 0)
  -> wrap_add(*.exe -kb, 0, 0)
  -> wrap_add(*.dll -kb, 0, 0)
  -> wrap_add(*.so -kb, 0, 0)
  -> wrap_add(*.a -kb, 0, 0)
  -> wrap_add(*.pdb -kb, 0, 0)
  -> wrap_add(*.lib -kb, 0, 0)
  -> wrap_add(*.o -kb, 0, 0)
  -> wrap_add(*.res -kb, 0, 0)
  -> wrap_add(*.class -kb, 0, 0)
  -> wrap_add(*.ogg -kb, 0, 0)
  -> wrap_add(*.mp3 -kb, 0, 0)
  -> Requesting server cvswrappers
  -> Requesting server cvsrc (read-cvsrc2)
  -> Parsing global cvsrc started
  -> Parsing global cvsrc finished
  -> Name_Repository((null),)
  -> Repository = /opt/cvs/server1/repository/servertest/test1
  -> Mapped repository = /opt/cvs/server1/repository/servertest/test1
  -> open_directory(/opt/cvs/server1/repository/servertest/test1,(null)
(null))
  -> find_dirent_proc
  -> Name_Repository((null),)
  -> Repository = /opt/cvs/server1/repository/servertest/test1
  -> Mapped repository = /opt/cvs/server1/repository/servertest/test1
  -> find_fileproc(file1_neu.cpp)
  -> find_filesdoneproc
  -> close_directory()
  -> Name_Repository((null),)
  -> Repository = /opt/cvs/server1/repository/servertest/test1
  -> Mapped repository = /opt/cvs/server1/repository/servertest/test1
  -> open_directory(/opt/cvs/server1/repository/servertest/test1,(null)
(null))
  -> Name_Repository(.,.)
  -> Name_Repository((null),)
  -> Repository = /opt/cvs/server1/repository/servertest/test1
  -> Mapped repository = /opt/cvs/server1/repository/servertest/test1
  -> close_directory()
cvs [commit aborted]: end of file from server (consult above messages if
any)
olaf:~/temp/servertest/test1$



1) This is what i did: created, added and committed file1.cpp
[i skip this]

2) removed the directory and made checkout:
olaf:~/temp/servertest$ rm -rf test1/
olaf:~/temp/servertest$ cvs update
U test1/file1.cpp
olaf:~/temp/servertest$ ls test1/
CVS  file1.cpp
olaf:~/temp/servertest$ cd test1/


3) rename file1.cpp to file1_neu.cpp
olaf:~/temp/servertest/test1$ cvs -t rename file1.cpp file1_neu.cpp
  -> Tracelevel set to 1.  PID is 4928
  -> Session ID is 1340416151dcb4c0
  -> Loading protocol /usr/lib/cvsnt/ext_protocol
  -> main loop with CVSROOT=:ext:olaf at localhost:/opt/cvs/server1/repository
  -> Config file name /home/olaf/.cvs/ext
  -> Compression enabled
  -> Server codepage is ISO-8859-1
  -> Client codepage is ISO-8859-1
  -> Requesting server cvsignore
  -> Requesting server cvswrappers
  -> Requesting server cvsrc (read-cvsrc2)
  -> Rename_Entry(file1.cpp,file1_neu.cpp)
  -> copy(CVS/Entries,CVS/Entries.Old)
  -> unlink_file(CVS/Entries.Old)
  -> rename(CVS/Entries.Backup,CVS/Entries)
  -> copy(CVS/Entries.Extra,CVS/Entries.Extra.Old)
  -> unlink_file(CVS/Entries.Extra.Old)
  -> rename(CVS/Entries.Extra.Backup,CVS/Entries.Extra)
  -> unlink_file(CVS/Entries.Log)
  -> unlink_file(CVS/Entries.Extra.Log)

4) commit the directory
[see the trace from the beginning of the message]


The status of the renamed files is now:
olaf:~/temp/servertest$ cvs status test1/file1.cpp
===================================================================
File: no file file1.cpp         Status: Needs Checkout

   Working revision:    No entry for file1.cpp
   Repository revision:
1.2     /opt/cvs/server1/repository/servertest/test1/file1.cpp,v
   Expansion option:    kv
   Commit Identifier:   125241614dec39e7

olaf:~/temp/servertest$ cvs status test1/file1_neu.cpp
cvs server: test1/file1_neu.cpp is no longer in the repository
===================================================================
File: file1_neu.cpp     Status: Entry Invalid

   Working revision:    1.2
   Repository revision: No revision control file
   Sticky Tag:          (none)
   Sticky Date:         (none)
   Sticky Options:      -kkv
   Merge From:          (none)


Am i missing something? Or do i need to convert the repository (the former
version was 2.0.21, i think)?

Yours
Olaf






More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook