git-review

How do I fix “StrictVersion instance has no attribute 'version'” in git review

谁都会走 提交于 2019-12-24 09:05:23
问题 I get: Traceback (most recent call last): File "/usr/local/bin/git-review", line 863, in <module> main() File "/usr/local/bin/git-review", line 796, in main needs_update = latest_is_newer() File "/usr/local/bin/git-review", line 147, in latest_is_newer if latest_version > StrictVersion(version): File "/usr/lib/python2.7/distutils/version.py", line 140, in __cmp__ compare = cmp(self.version, other.version) AttributeError: StrictVersion instance has no attribute 'version' How do I fix git

git-review -> promote draft to code-review

爷,独闯天下 提交于 2019-12-23 12:35:13
问题 I have created a Gerrit draft: git review -D Once I am done working on the draft, how do I create the code-review so it can eventually be merged to master? If I just do: git-review I get this output: $ git review remote: remote: Processing changes: refs: 1, done To ssh://jonbri@gerrit-foo.com:29418/fooProject ! [remote rejected] HEAD -> refs/publish/master/p-jonbri-gitReviewBranch (no new changes) error: failed to push some refs to 'ssh://jonbri@gerrit-foo.com:29418/fooProject' 回答1: There are

How to review a specific commit on Git

你。 提交于 2019-12-17 19:24:33
问题 I sent a commit (named "A commit") to review (Gerrit) using git review command. Now, I make a new commit (named "B commit") and I want to send it to review as well, but I don't want to re-send the "A commit". There is no dependencies each other. How to send a review to gerrit for a specific commit?. UPDATE : $ git add --all $ git status # On branch delete_role # Changes to be committed: # (use "git reset HEAD <file>..." to unstage) # # modified: path/to/file.ext $ git status # On branch

How split a huge code to small patches in Gerrit

瘦欲@ 提交于 2019-12-12 03:06:59
问题 Currently, I want to contribute to OpenStack and I am new to Gerrit. In Gerrit, I created a new branch my_branch but actually my code is very huge. Please kindly let me know how I can split my code to smaller changes with the same branch my_branch . 回答1: Pleaas tray git gui tools - citool, gitk. git citool gives possibility to choose which files and even which lines you put in new commit. Very useful maybe also gitk command which show your commits tree. gitk gives also posibility to run some

How to review a specific commit on Git

戏子无情 提交于 2019-11-28 10:16:59
I sent a commit (named "A commit") to review (Gerrit) using git review command. Now, I make a new commit (named "B commit") and I want to send it to review as well, but I don't want to re-send the "A commit". There is no dependencies each other. How to send a review to gerrit for a specific commit?. UPDATE : $ git add --all $ git status # On branch delete_role # Changes to be committed: # (use "git reset HEAD <file>..." to unstage) # # modified: path/to/file.ext $ git status # On branch delete_role nothing to commit (working directory clean) $ git branch *delete_role master $ git log --graph -

pip connection failure: cannot fetch index base URL http://pypi.python.org/simple/

故事扮演 提交于 2019-11-26 12:24:07
问题 I run sudo pip install git-review , and get the following messages: Downloading/unpacking git-review Cannot fetch index base URL http://pypi.python.org/simple/ Could not find any downloads that satisfy the requirement git-review No distributions at all found for git-review Storing complete log in /home/sai/.pip/pip.log Does anyone has any idea about this? 回答1: I know this is an old thread, but I encountered this issue today and wanted to share my solution to the problem because I haven't seen