pip install revbranch
git clone https://github.com/noamraph/revbranch.git
cd revbranch
python3 -m venv venv
venv/bin/pip install -e .[dev]
venv/bin/pytest
To view revbranch in git log
:
git config notes.displayRef refs/notes/revbranch
(or, without config, use git log --notes=revbranch
)
To view the notes commit history:
git log notes/revbranch
To undo the last notes commit (saving a backup in refs/notes/revbranch-backup):
git update-ref refs/notes/revbranch-backup refs/notes/revbranch
git update-ref refs/notes/revbranch refs/notes/revbranch^
Push revbranch data to server:
revbranch push
which does:
git push origin refs/notes/revbranch
Fetch revbranch data from server:
revbranch fetch
which does:
git fetch origin refs/notes/revbranch:refs/notes/revbranch
To always fetch revbranch data from server:
git config --add remote.origin.fetch '+refs/notes/revbranch:refs/notes/revbranch'
Install a virtualenv with TortoiseHG that can show the revbranches:
python3 -m venv venv
venv/bin/pip install -U pip wheel
venv/bin/pip install pyqt5 QScintilla pygit2
venv/bin/pip install -U hg+https://code.rhodecode.com/u/noamraph/hg@noam
venv/bin/pip install -U hg+https://code.rhodecode.com/u/noamraph/thg@noam
Based on this.
venv/bin/pytest
- Update setup.py with the new version number.
- Commit the change.
- Tag with the version number (
git tag 0.3
) git push origin <tagname>
- Publish to pypi:
python3 -m pip install --upgrade setuptools wheel twine
rm -rf dist build
python3 setup.py sdist bdist_wheel
twine upload dist/*