Skip to content

westurner/pyrpo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8cd43dd · Oct 3, 2020

History

69 Commits
Apr 15, 2019
Oct 3, 2020
Apr 15, 2019
May 16, 2014
May 16, 2014
May 16, 2014
Apr 15, 2019
May 16, 2014
May 16, 2014
Oct 3, 2020
May 16, 2014
May 16, 2014
Oct 3, 2020
Apr 15, 2019
Apr 15, 2019
May 16, 2014
Oct 3, 2020
Apr 15, 2019

Repository files navigation

pyrpo

GitHub | PyPI | Documentation | Travis-CI

pyrpo: a shell command wrapper for hg, git, bzr, svn

Features

  • Wrap and parse shell commands (largely as a reference)
  • Walk for repository directories
  • Generate reports for one or more repositories
  • Call hg status, git status, etc.
  • Generate mercurial .hgsubs
  • Generate git .gitsubmodule
  • Generate pip requirements.txt
  • Generate shell script (to rebuild environment)
    • TODO: replicate branches/tags/revisions
  • Functional namedtuples, iterators yield -ing generators
  • optparse argument parsing (-h, --help)
  • cookiecutter-pypackage project templating

Installing

Install from PyPi:

pip install pyrpo

Install from GitHub as editable (add a pyrpo.pth in site-packages):

pip install -e git+https://github.com/westurner/pyrpo#egg=pyrpo

Usage

Print help:

pyrpo --help

Scan for files:

# Scan and print a shell report
pyrpo -s . -r sh
pyrpo

Generate a TortoiseHG thg-reporegistry.xml file:

pyrpo -s . --thg

Generate a pip report:

pyrpo -r pip

Generate a status report:

pyrpo -r status

Generate an .hgsubs file:

pyrpo -r hgsub

Generate a .gitmodules file:

pyrpo -r gitmodule

Generate an origin report:

pyrpo -r origin

Generate a string report:

pyrpo -r str

License

BSD Software License