summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
| * Move diff function out of the PackageModule classJochen Schmitt2010-09-202-31/+29
| | | | | | | | | | | | | | | | | | | | | | hello Jesse, because you have wrote, that you want a minimum set of functions in the PackageModule clase, I have move the diff function out of their. Best Regards: Jochen Schmitt
| * Distlinguish between new empty repositories and retiered packagesJochen Schmitt2010-09-201-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | Hello Jesse, I have add an test to distlinguish a new package in which a package should been imported form a package which is retired. Best Regards: Jochen Schmitt
| * Add -i (info) switch to the lint commandJochen Schmitt2010-09-203-3/+13
| | | | | | | | | | | | | | | | | | | | | | Hello Jesse, this patch add a -i (info) tag for the fedpkg lint command. Best Regards: Jochen Schmitt
| * Add a -t (tag) switch for the commit commandJochen Schmitt2010-09-202-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | Hello Jesse, this patch implenents a -t (tag) switch for the commit command. Because you have wrote, that you don't like to see additional function in the PackageModule class, I have refactor this patch to fullfill your requirements. Best Regards: Jochen Schmitt
| * Add a -c (clog) switch to the commit commandJochen Schmitt2010-09-202-1/+13
| | | | | | | | | | | | | | | | | | | | Hello Jesse, this patch add a -c (clong) switch for the commit commant. Best Regards: Jochen Schmitt
| * Move pull and push function out of PackageModuleJochen Schmitt2010-09-202-18/+16
| | | | | | | | | | | | | | | | | | | | | | Hello Jesse, I have move the pull() and push() function in the __init__.py module out of the PackageModule class. Best Regards: Jochen Schmitt
| * Implementation of a pull commandJochen Schmitt2010-09-203-1/+22
| | | | | | | | | | | | | | | | | | | | Hello Jesse, this patch implemts a pull command for fedpkg. Best Regards: Jochen Schmitt
| * Implenentation of a tag commandJochen Schmitt2010-09-203-5/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | Hello Jesse, this patch contains a tag command for fedpkg. I have divede the tag function in __init__.py into three functions for add, delete and list tags. All this functions lives outside of the PackageModule class. Best Regards: Jochen Schmitt
* | fedpkg: Don't mix options and commands, drop redundant short optionsTodd Zullinger2010-09-201-12/+22
|/ | | | | | | | | Completing options along with command and values is not generally done by completion scripts and tends to garble up the output needlessly. Only complete options when the -<TAB> is typed. It's also unnecessary to complete both the long and short versions of an option, (e.g. -h and --help).
* Remove stream keyword in logging.StreamHandlerJochen Schmitt2010-09-191-1/+1
| | | | | | | | | | | Hello Jesse, using the stream keyword caused an error on python 2.6. So I have remove this keyword. Best Regards: Jochen Schmitt
* Don't use log.error from within the libraryJesse Keating2010-09-101-6/+2
| | | | Just raise it, let the caller figure out what to do.
* fedpkg: Complete --srpm for the build commandTodd Zullinger2010-09-101-1/+2
|
* fedpkg: Use git plumbing to complete branch namesTodd Zullinger2010-09-101-3/+4
| | | | | The output of 'git branch' is not guaranteed to remain constant. Using the for-each-ref plumbing command should work reliably for longer.
* fedpkg: Remove filenames option from completionTodd Zullinger2010-09-101-1/+1
| | | | | | | | | | | | | | | The bash completion 'filenames' option prevents proper completion of local refs like tmz/f13. On systems with bash-completion >= 1.2, this should have little effect because the _filedir command sets the option as needed (or emulates it on older bash releases that lack compopt). On systems with older bash-completion (like EL-5 currently), there is a minor downside in that filename completion won't append trailing slashes to directories without the 'filenames' option. Ideally, bash-completion will be updated on EL-5 and this minor inconvenience will vanish sometime soon.
* fedpkg: Use _filedir for path completionTodd Zullinger2010-09-101-11/+16
| | | | | The _filedir function is a bit more robust than using compgen directly. A wrapper function is used to filter out .git directories from results.
* Fix up the logger for what goes whereJesse Keating2010-09-101-5/+22
| | | | | | Make sure that WARN, ERROR, and CRITICAL go to stderr, and that DEBUG and INFO go to stdout. This involves more configuration than it aught to, but that's python logging for ya.
* Make our logger print to stdoutJesse Keating2010-09-101-1/+2
| | | | | | It's of my opinion that only errors should go to stderr. For that reason I'll have all logger stuff to go stdout and any errors I'll use print() on.
* Also redirect stderr over to stdout on non-termsJesse Keating2010-09-101-1/+2
| | | | Again this is just because rpmbuild does some stupid things.
* Name the process variables right (#632097)Jesse Keating2010-09-101-2/+2
|
* Minor whitespace fixJesse Keating2010-09-081-1/+1
|
* Remove errornous dots at the end of the help messages of the commitJesse Keating2010-09-081-2/+2
| | | | | | command From Jochen@herr-schmitt.de
* Fefactoring: Use getuser to determinate fas useridJochen Schmitt2010-09-081-25/+23
| | | | | | | | | | | Hello Jesse, because I don't like duplicate code, I have create a getuser() function which determinate the userid of the fas account. Best Regards: Jochen Schmitt
* bash-completion < 1.2 compatibility (tmz@pobox.com)Jesse Keating2010-09-081-1/+8
| | | | | | | | The _get_comp_words_by_ref is provided by bash-completion >= 1.2, which EL-5 lacks. Attempting to use fedpkg completion on EL-5 results in errors: $ fedpkg <TAB>-bash: _get_comp_words_by_ref: command not found Fall back to using ${COMP_WORDS[COMP_CWORD]}.
* fedpkg: Try not to add redundant gitignore entriesTodd Zullinger2010-09-081-1/+11
| | | | | | | | | | | If there is a entry which matches the filename we're about to add already in the gitignore file, we don't need to bother adding another entry. This adds a match() method to GitIgnore which uses fnmatch. Under the hood, this is what git uses. It doesn't catch some of the special cases git has, but it should simply fail to match in those cases and will add a potentially redundant entry -- no different than previously.
* fedpkg: better bash completionJan Vcelak2010-09-081-117/+222
| | | | | - completes koji targets, sytem architectures, git branches, filenames and SRPM names after specific options
* Fix setting push.default when cloning with dirsJesse Keating2010-08-241-2/+4
|
* Remove build --test option in bash completionJesse Keating2010-08-231-1/+1
|
* Error check the update call. #625679Jesse Keating2010-08-231-1/+5
|
* Use the correct remote when listing revsJeroen van Meeuwen (Ergo Project)2010-08-231-2/+5
|
* Send stderr over to the pipe command tooJesse Keating2010-08-231-1/+4
| | | | | | | I don't like doing this, but I'm failing at coming up with a clever way to only do it in cases we know we want it, such as rpmbuild calls. Since that's the only thing we're piping right now, call it good, but I still don't like it.
* Documented bash completion scriptLéon Keijser2010-08-231-3/+15
|
* make fedora-cvs only do anonymous chackouts since cvs is read only now.Dennis Gilmore2010-08-231-7/+1
| | | | We should just remove this at some point soon
* re-fix dist defines.Jesse Keating2010-08-231-2/+2
| | | | One of these times I'll get it right.
* Short cut the failure on repeated buildsJesse Keating2010-08-201-0/+8
| | | | | Saves a bunch of time waiting for the srpm creation and koji to figure out what n-v-r we're trying to build. Ticket #27
* Allow passing srpms to the build commandJesse Keating2010-08-201-0/+2
|
* Set the prog name right.Jesse Keating2010-08-201-0/+1
| | | | This might only effect running from a checkout.
* Add an epilog to help folks outJesse Keating2010-08-201-1/+3
|
* clone: set repo's push.default to trackingHans Ulrich Niedermann2010-08-201-0/+4
| | | | clone: set repo's push.default to tracking
* Make sure we get the right path to the fileJesse Keating2010-08-201-1/+5
|
* Make use of _run_command's cwd option.Jesse Keating2010-08-201-7/+1
|
* Add support for running a command from a specific dirJesse Keating2010-08-201-7/+15
|
* Update docstring for _run_commandJesse Keating2010-08-201-0/+2
|
* Move commit out of the PackageModule object.Jesse Keating2010-08-202-37/+42
| | | | | | Outside of clog, there is no reason why commit should need data from the spec file. This fixes a bug when marking a package as dead so that one can commit again. Ticket #54
* Avoid function calls as default param valuesHans Ulrich Niedermann2010-08-191-8/+26
| | | | | | | | | | | | | A function call used as a default parameter value is evaluated once when the module code is first read in. However, the os.getcwd() function might give different results at run time than at module reading time. This replaces those default param values with None, and has the function bodies call os.getcwd() if the param happens to be None. See also http://docs.python.org/reference/compound_stmts.html#function-definitions
* Add some new commands to the bash completionJesse Keating2010-08-191-10/+10
|
* Fix whitespaceJesse Keating2010-08-191-1/+1
|
* Add bash-completion script for fedpkgLéon Keijser2010-08-191-0/+134
|
* pull the username from fedora_cert to pass to bodhiDennis Gilmore2010-08-191-5/+11
|
* Catch double ^c's from build. RHBZ #620465Jesse Keating2010-08-171-1/+4
|
* Fix up chain buildingJesse Keating2010-08-172-10/+21
| | | | | We were not setting up the chains right, and our logging was all funky. We now handle chains properly and log it sensibly