git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Introduction and Wikipedia and Git Blame

From
jamesmikedupont@googlemail.com <jamesmikedupont@googlemail.com>
Date
Oct 17, 2009, 16:42 UTC
Message-ID
<ee9cc730910170942p7869d62ra08571948675d696@mail.gmail.com>
In-Reply-To
<ee9cc730910162350p250b8afak767b0626bede34e4@mail.gmail.com>

I have done a workaround hack, today I attempted to hack the blame code but I need to do more research, it did not work.

But I did get a new version of the import script running and word level blame going.

http://fmtyewtk.blogspot.com/2009/10/mediawiki-git-word-level-blaming-one.html
Next step is ready :
1. I have a single script that will pull a given article and check in
the revisions into git,
it is not perfect, but works.

http://bazaar.launchpad.net/~jamesmikedupont/+junk/wikiatransfer/revision/8 you run it like this,from inside a git repo :

perl GetRevisions.pl "Article_Name"

git blame Article_Name/Article.xml git push origin master

The code that splits up the line is in Process File, this splits all spaces into newlines. that way we get a word level blame.

     if ($insidetext)
     {
  ## split all lines on the space
  s/(\ )/\\\n/g;
  print OUT  $_;
     }

The Article is here: http://github.com/h4ck3rm1k3/KosovoWikipedia/blob/master/Wiki/2008_Kosovo_declaration_of_independence/article.xml

here are the blame results. http://github.com/h4ck3rm1k3/KosovoWikipedia/blob/master/Wiki/2008_Kosovo_declaration_of_independence/wordblame.txt

Problem is that github does not like this amount of processor power begin used and kills the process, you can do a local git blame.

Now we have the tool to easily create a repository from wikipedia, or any other export enabled mediawiki.

mike

On Sat, Oct 17, 2009 at 8:50 AM, jamesmikedupont@googlemail.com <jamesmikedupont@googlemail.com> wrote:

Show 18 quoted lines
> Thank you very much for your input and advice,
> I have a lot of learn about this great tool.
> I am working on learning how the existing blame tool runs now.
> Will report back when I have some code.
> mike
>
> On Sat, Oct 17, 2009 at 1:25 AM, Junio C Hamano <gitster@pobox.com> wrote:
>> "jamesmikedupont@googlemail.com" <jamesmikedupont@googlemail.com> writes:
>>
>>> What do you think of my idea to create blames along a specific user
>>> defined byte positions ?
>>
>> Overly complicated and not enough time for _review_.  If you are blaming
>> one-byte (or one-char) per line, wouldn't it be enough to consider the
>> line number in the output as byte (or char) position when reconstituting
>> the original text?
>>
>
Previous: jamesmikedupont@googlemail.comNext: jamesmikedupont@googlemail.com
Message 14 of 15 in “Introduction and Wikipedia and Git Blame”
  1. jamesmikedupont@googlemail.comOct 16, 2009
  2. Johannes SchindelinOct 16, 2009
  3. Martin LanghoffOct 16, 2009
  4. jamesmikedupont@googlemail.comOct 16, 2009
  5. Johannes SchindelinOct 16, 2009
  6. jamesmikedupont@googlemail.comOct 16, 2009
  7. Junio C HamanoOct 16, 2009
  8. jamesmikedupont@googlemail.comOct 16, 2009
  9. Junio C HamanoOct 16, 2009
  10. Junio C HamanoOct 16, 2009
  11. jamesmikedupont@googlemail.comOct 16, 2009
  12. Junio C HamanoOct 16, 2009
  13. jamesmikedupont@googlemail.comOct 17, 2009
  14. jamesmikedupont@googlemail.comOct 17, 2009
  15. jamesmikedupont@googlemail.comOct 22, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.