Branch: refs/heads/master
Home: https://github.com/openSUSE/osc2
Commit: 6854d67cb971ac1910b3b73ad1766b02795f60b4
https://github.com/openSUSE/osc2/commit/6854d67cb971ac1910b3b73ad1766b02795f...
Author: Marcus Huewe
Date: 2012-09-25 (Tue, 25 Sep 2012)
Changed paths:
M osc/cli/cli.py
Log Message:
-----------
- osc.cli.cli: fixed typo in doc str
Commit: d4b12b16f10d8ec49691c276e7c0d04fe491b9f6
https://github.com/openSUSE/osc2/commit/d4b12b16f10d8ec49691c276e7c0d04fe491...
Author: Marcus Huewe
Date: 2012-10-05 (Fri, 05 Oct 2012)
Changed paths:
M osc/cli/description.py
Log Message:
-----------
- osc.cli.description: support multiple calls to CommandDescription.add_arguments
Added "set_parser" method to class MutexGroup. It has to be called
in "CommandDescription._mutex_groups" because the passed parser
might have changed.
Commit: d1db419fb1fecb9d35484f78c3f49d1cd6ee017d
https://github.com/openSUSE/osc2/commit/d1db419fb1fecb9d35484f78c3f49d1cd6ee...
Author: Marcus Huewe
Date: 2012-10-05 (Fri, 05 Oct 2012)
Changed paths:
M osc/cli/description.py
Log Message:
-----------
- osc.cli.description: use correct alias/replacement class when aliasing/extending a command
Commit: d5a78bbb5eb9fc0eaeb52b471b1afba10cae4829
https://github.com/openSUSE/osc2/commit/d5a78bbb5eb9fc0eaeb52b471b1afba10cae...
Author: Marcus Huewe
Date: 2012-10-05 (Fri, 05 Oct 2012)
Changed paths:
M test/test_oscargs.py
Log Message:
-----------
- osc.test.test_oscargs: added testcases for the "plain entry" concept
Commit: c6bef6b98925991a537cd86c9abf602db1fed7ca
https://github.com/openSUSE/osc2/commit/c6bef6b98925991a537cd86c9abf602db1fe...
Author: Marcus Huewe
Date: 2012-10-05 (Fri, 05 Oct 2012)
Changed paths:
M osc/oscargs.py
Log Message:
-----------
- osc.oscargs: added support for the "plain entry" concept
'plain_arg' is a plain argument entry. Any value can be passed to
a plain argument entry ('foo', 'foo/bar', 'api://x/y' etc. are valid).
Commit: f95720160ea141689b2a59530214e10f8402a728
https://github.com/openSUSE/osc2/commit/f95720160ea141689b2a59530214e10f8402...
Author: Marcus Huewe
Date: 2012-10-05 (Fri, 05 Oct 2012)
Changed paths:
M test/test_oscargs.py
Log Message:
-----------
- test.test_oscargs: 'wc_' is an illegal wc path entry
Commit: e8ac6a9822d39be2e87be3d63a1aa8f2a9197a0a
https://github.com/openSUSE/osc2/commit/e8ac6a9822d39be2e87be3d63a1aa8f2a919...
Author: Marcus Huewe
Date: 2012-10-05 (Fri, 05 Oct 2012)
Changed paths:
M osc/oscargs.py
Log Message:
-----------
- osc.oscargs: 'wc_' is an illegal wc path entry
Raises a ValueError.
Commit: 4c7861dbeab2a1008c78fd4bdfde1166c41f0ad4
https://github.com/openSUSE/osc2/commit/4c7861dbeab2a1008c78fd4bdfde1166c41f...
Author: Marcus Huewe
Date: 2012-10-05 (Fri, 05 Oct 2012)
Changed paths:
M test/test_oscargs.py
Log Message:
-----------
- test.oscargs: added testcases to handle name clashes
A name clash occurs if multiple oargs are specified with the same
"name": "repo/arch repo/xyz" leads to a name clash. By default
the argument bound to "repo/xyz" is stored in the info's repo
attribute. If "ignore_clashes=False" is passed to the OscArgs' __init__
method both attributes (the one bound to "repo/arch" and "repo/xyz")
will be stored in a list to which the info's repo attribute refers to.
Commit: 2a23166c50a1adaef610b4fdc488a7ed83d88d4c
https://github.com/openSUSE/osc2/commit/2a23166c50a1adaef610b4fdc488a7ed83d8...
Author: Marcus Huewe
Date: 2012-10-05 (Fri, 05 Oct 2012)
Changed paths:
M osc/oscargs.py
Log Message:
-----------
- osc.oscargs: added support to handle name clashes in the format entries/oargs
Commit: 3a3685f70f0818ac9dd68d2859a7da8e805db997
https://github.com/openSUSE/osc2/commit/3a3685f70f0818ac9dd68d2859a7da8e805d...
Author: Marcus Huewe
Date: 2012-10-05 (Fri, 05 Oct 2012)
Changed paths:
M osc/oscargs.py
Log Message:
-----------
- osc.oscargs: added "set" method to class ResolvedInfo
"set" can be used to set a specific "attribute" to value value: even
if "ignore_clashes=False" was passed to ResolvedInfo's __init__
method set overwrites the existing value.
Commit: 2a6d519deecbcccca528e0a6b9e8d2cd10c56860
https://github.com/openSUSE/osc2/commit/2a6d519deecbcccca528e0a6b9e8d2cd10c5...
Author: Marcus Huewe
Date: 2012-10-05 (Fri, 05 Oct 2012)
Changed paths:
M osc/cli/description.py
Log Message:
-----------
- osc.cli.description: introduced extended oargs syntax
The extended oargs syntax can be used to tell argparse how often
a positional argument can be repeated. Example:
"(plain_args)*" means that any number of arguments can be specified
by the user.
"(plain_args)+" means that any number of arguments can be specified
by the user but at least one.
"(plain_args)N" means that exactly N arguments have to be specified
by the user.
"(plain_args)R" is also supported and is transformed to
nargs=argparse.REMAINDER
Commit: e3e424c4a47170c5c82f98691881104ce950dc92
https://github.com/openSUSE/osc2/commit/e3e424c4a47170c5c82f98691881104ce950...
Author: Marcus Huewe
Date: 2012-10-05 (Fri, 05 Oct 2012)
Changed paths:
M osc/cli/cli.py
A osc/cli/parse.py
Log Message:
-----------
- osc.cli.cli: added support for textual aliases
- osc.cli.parse: moved parsing related code from osc.cli.cli into a
new parse module
A textual alias is a user specified alias for an existing command.
It can be specified as follows:
class ReviewListGroupAlias(TextualAlias, ReviewList):
"""Alias for "review list --group opensuse-review-team"
Examples:
osc review glist api://
# also show declined states
osc review glist api://openSUSE:Factory -s declined
"""
cmd = 'glist'
alias = 'review list --group opensuse-review-team'
Afterwards it can be executed via "osc review glist api://openSUSE:Factory".
Compare: https://github.com/openSUSE/osc2/compare/57149c908781...e3e424c4a471