Forum Discussion

googleid_105344's avatar
New Contributor
10 years ago

[CodeReviewer] How do I upload files with version numbers using an unsupported VCS?

I have sucessfully used addfiles and adddiffs from the command-line utility to create reviews with our unsupported VCS. However I'd like to attach version numbers to these files, just like when using a supported VCS. Is there some way to do that?

1 Reply

  • Ok. I figured it out. If you use the adddiffs command, the filespec in the diff can contain the version. A GNU unified diff file starts out with:

    --- from-file from-file-modification-time
    +++ to-file to-file-modification-time

    I had tried changing the modification-time to be a version number with emacs, but I had convert tabs to space enabled. That space between the file and the modification-time must be a tab character. Now that I've figured that out, I can change that modification-time to whatever I want, and it shows up in the before: and after: drop down boxes in the source view of the review.