#78 NPE and out of sync warning in repository w/o commits

open
None
5
2007-01-08
2007-01-07
Anonymous
No

With StatCVS-3.0 it seems I get everytime a warning

Log and working copy are out of sync. Reports will be inaccurate.

when doing as instructed in the front page:

cvs co test
cd test
cvs log > test.log
java -jar /tmp/statcvs.jar ./test.log .

Am I doing something wrong or what's going on?

Discussion

  • Richard Cyganiak

    Logged In: YES
    user_id=584620
    Originator: NO

    If the reports come out fine, then there's most likely no reason to worry.

    Try to run "cvs update" before "cvs log" and see if the warning goes away.

    If it persists, then try running StatCVS with the "-verbose" parameter and check if the output provides any clues as to what the problem is. Please post a snippet here if you think something is wrong.

     
  • Nobody/Anonymous

    Logged In: NO

    Now it is clear what causes this: I had just created a test repository with only the initial import:

    Parsing CVS log 'test.log'
    Generating report for prj into
    Using default CSS file (statcvs.css)
    test/testfile should be at 1.1 but is at 1.1.1.1
    Log and working copy are out of sync. Reports will be inaccurate.
    Creating CSS file at 'statcvs.css'

    It should be noted also here that I get an Exception when running StatCVS for a repository without any changes, just the initial import. A single commit will cause the Exception disappear. Should be easy to reproduce, just create a new repo and import something, and make no changes.

    Creating CSS file at 'statcvs.css'
    writing chart 'Activity by Hour of Day' to activity_time.png
    writing chart 'Activity by Day of Week' to activity_day.png
    writing chart 'Commit Activity' to commitscatterauthors.png
    writing chart 'Author Activity' to activity.png
    writing chart 'Lines of Code' to loc.png
    Exception in thread "main" java.lang.NullPointerException
    at net.sf.statcvs.pages.Page.add(Page.java:160)
    at net.sf.statcvs.pages.FileSizesPageMaker.toFile(FileSizesPageMaker.java:53)
    at net.sf.statcvs.pages.ReportSuiteMaker.toFile(ReportSuiteMaker.java:80)
    at net.sf.statcvs.Main.generateDefaultHTMLSuite(Main.java:225)
    at net.sf.statcvs.Main.main(Main.java:75)

     
  • Richard Cyganiak

    Logged In: YES
    user_id=584620
    Originator: NO

    Ah, interesting. Thanks. I'm renaming this and moving it over to the bug tracker.

     
  • Richard Cyganiak

    • assigned_to: nobody --> cyganiak
    • summary: Out of Sync Warning Message --> NPE and out of sync warning in repository w/o commits
     
  • Richard Cyganiak

    Logged In: YES
    user_id=584620
    Originator: NO

    The NPE reported in a comment is fixed. The sync warning still remains.

     
  • David Multer

    David Multer - 2007-05-19

    Logged In: YES
    user_id=1344296
    Originator: NO

    I saw the same problem and got rid of the warning by doing a "cvs log -b" command. I guessed that StatCVS didn't like seeing change log entries for other branches since the doc says they only support the default branch.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks