-
-
rbtools/postreview.py (Diff revision 2) Use double quotes instead of escapes if needed. Grammar: File %r does not exist or unknown viewtype (%s)
ClearCase UnboundLocalError instead communicate with informations
Review Request #1508 — Created April 6, 2010 and discarded
Information | |
---|---|
jan.koprowski | |
RBTools | |
master | |
1599 | |
Reviewers | |
reviewboard | |
When there is some problems with view open function just raise an exception instead return some human readable information
DJ
Change Summary:
New diff with change allowing pass ClearCase --view-type in parameters
Diff: |
Revision 3 (+20 -8) |
---|
DJ
-
The word should be 'adequate' not 'adequat'. I suggested 'unknown' because I'm not quite sure what you were trying to suggest. I have some knowledge of CC and have tested RB with CC, but I don't normally use, so I'm not quite sure what state everything is in. Last I checked, I could only get post-review to work with dynamic views. Is your error message meant to indicate this? I imagine we could detect the type of view with a cleartool command, instead of specifying it as an option.
Change Summary:
Fix quotes and fatal error with stderr.write() mistake. Replay
Diff: |
Revision 6 (+19 -8) |
---|
-
-
-
rbtools/postreview.py (Diff revision 7) The variable should be named "clearcase_view_type". Would it make sense to default this parameter to "snapshot" for existing users?
-
rbtools/postreview.py (Diff revision 7) "The view type used when generating the diff (ClearCase Only)"
-
-
rbtools/postreview.py (Diff revision 7) This makes it sound like the parameter doesn't exist. The error message should better describe that the view type isn't set and needs to be. Something like: "The --clearcase-view-type parameter must be specified for ClearCase repositories."
-
-
rbtools/postreview.py (Diff revision 8) This is going to break some existing setups, I'd imagine. I'd be much happier if this could work like repository information for other SCMs. Make it a customizable setting in .reviewboardrc for the repository, so that the user will only have to pass it if it's not found there.
Change Summary:
Only dynamic view is able to show any version existing in repository. Snapshot view is unable to be used as information about other versions then checked out (this is like a photo of the repository take in selected moment. You can't see what was happen before or after). Only way to implement snapshot views in ClearCase is to add something like --compare-directories="/path/to/directory1:/path/to/directory2". I show similar implementation in one compering tool which get two distinct snapshot views to compare them.
Diff: |
Revision 9 (+4 -1) |
---|