Also, another bug is not supporting the spaces in the file names.

The code: 

  if 1 == toadd:
    tstr = line.split(" ")
    tmpdata["file"] = tstr[1]
    log.append(copy.deepcopy(tmpdata))

Should be:

  if 1 == toadd:
    tstr = line.split(" ", 1)  # Only one split.
    tmpdata["file"] = tstr[1]
    # sys.stderr.write(tmpdata["file"]+"\n")
    log.append(copy.deepcopy(tmpdata))



On Sat, 4 Apr 2015 00:49:24 +0300
John Found <[email protected]> wrote:

> There seems to be at least one bug in the script. The line:
> 
>     log.append(tmpdata)
> 
> ...should be something like:
> 
>     log.append(copy.deepcopy(tmpdata))
> 
> ...well, at least according to my very low python skills. 
> 
> Otherwise, adding a new entry to log changes the previous ones and this way
> creates duplicate items instead of the really changed files.
> 
> As I said, I don't know python, so maybe there is better solution... 
> 
> On Fri, 3 Apr 2015 18:29:32 +0200
> klaute <[email protected]> wrote:
> 
> > Hi,
> > 
> > last days I have written a small script to convert the fossil timeline
> > (verbose commandline) to a gource [1] readable output.
> > 
> > It works fine for me, so its just FYI.
> > 
> > You can find the tool here [2].
> > 
> > Kai
> > 
> > --
> > 
> > gource [1]: https://code.google.com/p/gource/
> > fossil to gource [2]: https://github.com/klaute/fossil-scm_to_gource
> > _______________________________________________
> > fossil-users mailing list
> > [email protected]
> > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
> 
> 
> -- 
> http://fresh.flatassembler.net
> http://asm32.info
> John Found <[email protected]>
> _______________________________________________
> fossil-users mailing list
> [email protected]
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


-- 
http://fresh.flatassembler.net
http://asm32.info
John Found <[email protected]>
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to