4892: Cleanly handle symbolic links


What version of Review Board are you running?


What version of Review Bot are you running?


What tool(s) is Review Bot running?


What steps will reproduce the problem?

  1. Create a symbolic link from one python file to another
  2. Submit a code review

What is the expected output? What do you see instead?

One gets an internal error because the downloaded patched file via


returns the path to the new location, not the actual file. I presume this is expected, but the bot needs to somehow know it's a symbolic link, not a .py file.


Please provide any additional information below.