Thank you David, This was helpful and appreciate quick reply from you. On Tuesday, December 10, 2013 2:33:58 AM UTC+5:30, David Trowbridge wrote: > > The ReviewBot codebase does this same thing. I suggest looking at > _translate_line_num in > https://github.com/reviewboard/ReviewBot/blob/master/bot/reviewbot/processing/review.py > > -David > > > On Mon, Dec 9, 2013 at 5:04 AM, Mahen <[email protected] <javascript:>>wrote: > >> Hi, >> >> I am trying to post a review comment using WebAPI and python script. >> >> I first find out filediff_id and then I send review comment using line >> number which is with respect to modified file but what I am observing in >> GUI is that, my comment is posted with respect to original file and not >> with respect to patched file. >> >> So if I am posting comment on line 60 of patched file then comment is >> posted on 60th line of original file. >> >> I am using following call to post comment >> >> review.get_diff_comments().create( >> filediff_id=fileDiffID, >> first_line=patchedFileLineNumber, >> num_lines=1, >> text=Textdata, >> issue_opened= true) >> >> Can anyone tell me how can i do this? >> mahen >> >> -- >> Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ >> --- >> Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ >> --- >> Happy user? Let us know at http://www.reviewboard.org/users/ >> --- >> You received this message because you are subscribed to the Google Groups >> "reviewboard" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> > >
-- Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ --- Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ --- Happy user? Let us know at http://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
