Thanks for your instant reviews! I'll try to summarize and reply to
your comments here (omitting the inline comment to which I reply
later):
Ondrej said:
> I tested it and it works fine for me. It'd be a nice feature to add a support to
> upload several revisions at once, currently it merges them into one patch, but
> it should upload each patch within one issue to rietveld.
Yes, I've thought of this too but I came to no clear decision. So I
ommitted this feature in my patch. I was pretty unsure on how the
revisions that belongs to an issue should be defined by the user on
the command line and how I can get the right base files for such a
diff.
Finally I assumed, that someone who works on a branch has only changes
related to a single issue in this branch. After reading some things on
how people use bzr I came to this conclusion. In fact, there's no
restriction on how to use branches.
So, if there are more changes in a branch than the ones related to an
issue, then a command line option should allow something like '--rev
13,15,17-23' which means: use revison 13, 15 and 17-23 to create the
diff. But how can I get the base files for this diff?
Evan said:
> This looks good in general. My main concern is the way you handle the bzr
> command-line flags. I think it'd be better for only the bzr class to need to
> know about any bzr flags -- perhaps there's a way to pass unknown flags down to
> the VCS class?
Which command-line flags do you mean? In general I agree, only the bzr
class should know about bzr flags and additional flags specified on
the command line should be passed down to the VCS class.
Regarding the '--bzr_rev' flag: After viewing this patch again I think
that the doc for this flag is not clear enough. This flag doesn't
specify any bzr revisions, it is used to fetch the correct base files.
Or is there any better way to grab the info where the base files are
located, e.g. by using 'bzr info'?
When I uploaded the patch I've used '--bzr_rev=ancestor:../master' to
tell 'bzr cat ...' called in GetBaseFile() where it finds the bases
that patch is based on.