Hi George,

The base_commit_id is just one piece of what we use to fetch file contents, and 
it’s really only used for certain repo hosting services we support (like 
Bitbucket) due to their API requirements. It does not work with plain Mercurial 
repositories.

The diffs really need to contain revision info for the files in order to fetch 
them.

How are these diffs being built? Why don’t they contain that information?

Christian

-- 
Christian Hammond - christ...@beanbaginc.com
Review Board - http://www.reviewboard.org
Beanbag, Inc. - http://www.beanbaginc.com

On June 10, 2014 at 11:22:26 AM, George Miroshnykov (gmiroshny...@rebbix.com) 
wrote:

Hello,

I'm using Mercurial repository and I'd like to post a raw diff like this one:

diff --git a/README.md b/README.md
--- a/README.md
+++ b/README.md
@@ -1,3 +1,5 @@
 Commits:

 * First commit
+* Second commit
+* Third commit


You can see that it doesn't have any info about base commit ID.
So in order to post it, I have to explicitly tell RB the base commit against 
which this diff should be applied.

As per docs:
http://www.reviewboard.org/docs/manual/dev/webapi/2.0/resources/draft-diff/#fields
I though I could use base_commit_id field to do that, but that doesn't seem to 
work, see this bug:
https://code.google.com/p/reviewboard/issues/detail?id=3312

Am I doing something wrong here?
Is there an easy way to do what I'm trying to do without using RBTools?

Thanks,
George

--
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 reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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 reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to