From 16a524c980984505914635c9c232366bf5aa27d2 Mon Sep 17 00:00:00 2001 From: Jochen Schmitt Date: Thu, 16 Sep 2010 20:05:45 +0200 Subject: Implenentation of a tag command 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 --- src/fedpkg.bash | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/fedpkg.bash') diff --git a/src/fedpkg.bash b/src/fedpkg.bash index aab9ce2..8c81ccc 100644 --- a/src/fedpkg.bash +++ b/src/fedpkg.bash @@ -37,7 +37,7 @@ _fedpkg() local options_value="-u --user --path" local commands="build chain-build ci clean clog clone co commit compile diff gimmespec giturl help \ import install lint local mockbuild new new-sources patch prep push scratch-build sources srpm \ - switch-branch tag-request unused-patches update upload verrel" + switch-branch tag tag-request unused-patches update upload verrel" # parse main options and get command @@ -148,6 +148,12 @@ _fedpkg() sources) options_dir="--outdir" ;; + tag) + options="--clog -c --force -f --list -l --delete -d" + options_string="--message -m" + options_file="--file -F" + after_more=true + ;; srpm) options="--md5" ;; -- cgit From f9443e37b7ca3863ba79f9603d074bcd7c749abe Mon Sep 17 00:00:00 2001 From: Jochen Schmitt Date: Thu, 16 Sep 2010 20:05:46 +0200 Subject: Implementation of a pull command Hello Jesse, this patch implemts a pull command for fedpkg. Best Regards: Jochen Schmitt --- src/fedpkg.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fedpkg.bash') diff --git a/src/fedpkg.bash b/src/fedpkg.bash index 8c81ccc..bb57b94 100644 --- a/src/fedpkg.bash +++ b/src/fedpkg.bash @@ -36,7 +36,7 @@ _fedpkg() local options="-h --help -v -q" local options_value="-u --user --path" local commands="build chain-build ci clean clog clone co commit compile diff gimmespec giturl help \ - import install lint local mockbuild new new-sources patch prep push scratch-build sources srpm \ + import install lint local mockbuild new new-sources patch prep pull push scratch-build sources srpm \ switch-branch tag tag-request unused-patches update upload verrel" # parse main options and get command -- cgit From 28e4985e215a8313841491c7d5794eb3c597ac8b Mon Sep 17 00:00:00 2001 From: Jochen Schmitt Date: Thu, 16 Sep 2010 20:05:48 +0200 Subject: Add a -c (clog) switch to the commit command Hello Jesse, this patch add a -c (clong) switch for the commit commant. Best Regards: Jochen Schmitt --- src/fedpkg.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fedpkg.bash') diff --git a/src/fedpkg.bash b/src/fedpkg.bash index bb57b94..9ec0f02 100644 --- a/src/fedpkg.bash +++ b/src/fedpkg.bash @@ -108,7 +108,7 @@ _fedpkg() after="package" ;; commit|ci) - options="--push -p" + options="--push -p --clog -c" options_string="--message -m" options_file="--file -F" after="file" -- cgit From c142a78896e27cf6b43135a12379c2f8ae1eb572 Mon Sep 17 00:00:00 2001 From: Jochen Schmitt Date: Thu, 16 Sep 2010 20:05:49 +0200 Subject: Add a -t (tag) switch for the commit command 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 --- src/fedpkg.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fedpkg.bash') diff --git a/src/fedpkg.bash b/src/fedpkg.bash index 9ec0f02..300d0d6 100644 --- a/src/fedpkg.bash +++ b/src/fedpkg.bash @@ -108,7 +108,7 @@ _fedpkg() after="package" ;; commit|ci) - options="--push -p --clog -c" + options="--push -p --clog -c --tag -t" options_string="--message -m" options_file="--file -F" after="file" -- cgit From 5ea2a82354f503ffcaf24c7288c640256a65306b Mon Sep 17 00:00:00 2001 From: Jochen Schmitt Date: Thu, 16 Sep 2010 20:05:50 +0200 Subject: Add -i (info) switch to the lint command Hello Jesse, this patch add a -i (info) tag for the fedpkg lint command. Best Regards: Jochen Schmitt --- src/fedpkg.bash | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/fedpkg.bash') diff --git a/src/fedpkg.bash b/src/fedpkg.bash index 300d0d6..7170637 100644 --- a/src/fedpkg.bash +++ b/src/fedpkg.bash @@ -128,6 +128,9 @@ _fedpkg() options_branch="--branch -b" after="srpm" ;; + lint) + options="--info -i" + ;; local) options="--md5" options_arch="--arch" -- cgit From 72531d43ecceaee02ac1f46a056ea6403ecc3ee4 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Mon, 20 Sep 2010 13:27:39 -0700 Subject: Only list long options in bash completion for tag --- src/fedpkg.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fedpkg.bash') diff --git a/src/fedpkg.bash b/src/fedpkg.bash index 7170637..c04c424 100644 --- a/src/fedpkg.bash +++ b/src/fedpkg.bash @@ -152,7 +152,7 @@ _fedpkg() options_dir="--outdir" ;; tag) - options="--clog -c --force -f --list -l --delete -d" + options="--clog --force --list --delete" options_string="--message -m" options_file="--file -F" after_more=true -- cgit From c726c445a0e2adcc0dccaba4ac49a7b617627ca5 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Mon, 20 Sep 2010 14:08:01 -0700 Subject: No short options in commit completion --- src/fedpkg.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fedpkg.bash') diff --git a/src/fedpkg.bash b/src/fedpkg.bash index c04c424..76423f2 100644 --- a/src/fedpkg.bash +++ b/src/fedpkg.bash @@ -108,7 +108,7 @@ _fedpkg() after="package" ;; commit|ci) - options="--push -p --clog -c --tag -t" + options="--push --clog --tag" options_string="--message -m" options_file="--file -F" after="file" -- cgit From 789d7dcf0527db2339110e6047c525a9486fba2c Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Mon, 20 Sep 2010 14:15:46 -0700 Subject: Minor fixes for lint -i changes --- src/fedpkg.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fedpkg.bash') diff --git a/src/fedpkg.bash b/src/fedpkg.bash index 76423f2..45f6d35 100644 --- a/src/fedpkg.bash +++ b/src/fedpkg.bash @@ -129,7 +129,7 @@ _fedpkg() after="srpm" ;; lint) - options="--info -i" + options="--info" ;; local) options="--md5" -- cgit