-
-
-
-
-
I know we do this elsewhere, but given that
file
is a reserved word, we should usefilename
or something. -
-
-
-
-
Given that this function doesn't seem to depend on anything in the parent scope, can we move it into its own proper method on the class? The parent function's pretty large as it is.
-
-
I'm hoping we can work toward getting rid of
die
, since it's not exactly safe when called from anything but an RBTools command. Can we raise exceptions instead?There was another somewhere else as well that this also applies to.
-
Implement submitted changeset posting for Perforce.
Review Request #5196 — Created Jan. 5, 2014 and submitted
Implement submitted changeset posting for Perforce.
This change implements posting for submitted changesets in Perforce. In order
to do this, we fetch the filelog between those revisions, which will give us a
list of every change to every file within those revisions. This is then
processed to accumulate changes together. At the end of this, for each file,
we'll have one of four operations: add, delete, edit, or move. Move operations
can also include edits. This is a little bit complicated to track moves within
the revision range. Just diffing the two trees would handle adds, deletes, and
edits, but not moved files.
- Ran unit tests
- Posted a variety of revision range changes which included all four of the
overall change types.
Description | From | Last Updated |
---|---|---|
No need for the outer parens. |
chipx86 | |
""" on the next line. |
chipx86 | |
I know we do this elsewhere, but given that file is a reserved word, we should use filename or something. |
chipx86 | |
We should catch and make sure any issues here are at least logged. |
chipx86 | |
Can we define this on the class so we don't end up building this list every iteration? |
chipx86 | |
Same comment here about catching errors. |
chipx86 | |
You can use setdefault here instead. |
chipx86 | |
Given that this function doesn't seem to depend on anything in the parent scope, can we move it into its … |
chipx86 | |
I'm hoping we can work toward getting rid of die, since it's not exactly safe when called from anything but … |
chipx86 | |
Can we raise an exception here? |
chipx86 | |
Just realized, this will break on Python 2.4. You can't use super with exceptions. |
chipx86 |