git-repo/subcmds
Shawn O. Pearce c95583bf4f Don't permit users to run repo status in a mirror client
If a client was created with "repo init --mirror" then there are
no working directories present, and no files checked out.  Using
a command like "repo status" in this context makes no sense, and
actually throws back a Pytyon traceback at the console when the
underlying commands fail out.

We now tag commands with the MirrorSafeCommand type if they are
able to be executed within a mirror directory safely.  Using a
command in a mirror which lacks this base class results in a
useful error letting you know the command isn't supported.

Bug: REPO-14
Signed-off-by: Shawn O. Pearce <sop@google.com>
2009-03-03 17:47:06 -08:00
..
__init__.py Initial Contribution 2008-10-21 07:00:00 -07:00
abandon.py Introduce 'repo abandon <branchname>' as an alias for 'git branch -D' 2008-11-03 11:24:59 -08:00
diff.py Initial Contribution 2008-10-21 07:00:00 -07:00
download.py Teach repo how to download changes to the local checkout 2008-10-23 14:43:28 -07:00
forall.py Export additional environment variables to repo forall: 2009-03-02 19:32:28 -08:00
help.py Don't permit users to run repo status in a mirror client 2009-03-03 17:47:06 -08:00
init.py Don't permit users to run repo status in a mirror client 2009-03-03 17:47:06 -08:00
prune.py Initial Contribution 2008-10-21 07:00:00 -07:00
stage.py Initial Contribution 2008-10-21 07:00:00 -07:00
start.py Initial Contribution 2008-10-21 07:00:00 -07:00
status.py Initial Contribution 2008-10-21 07:00:00 -07:00
sync.py Don't permit users to run repo status in a mirror client 2009-03-03 17:47:06 -08:00
upload.py Describe upload --replace in upload's help text 2008-12-12 08:04:07 -08:00
version.py Don't permit users to run repo status in a mirror client 2009-03-03 17:47:06 -08:00