summaryrefslogtreecommitdiffstats
path: root/src/fedpkg.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/fedpkg.py')
-rwxr-xr-xsrc/fedpkg.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py
index aab1373..a216abb 100755
--- a/src/fedpkg.py
+++ b/src/fedpkg.py
@@ -617,8 +617,13 @@ def switch_branch(args):
except pyfedpkg.FedpkgError, e:
log.error('Unable to list branches: %s' % e)
sys.exit(1)
- print('Locals:\n %s\nRemotes:\n %s' %
- ('\n '.join(locals), '\n '.join(remotes)))
+ # This is some ugly stuff here, but trying to emulate
+ # the way git branch looks
+ locals = [' %s ' % branch for branch in locals]
+ local_branch = pyfedpkg._find_branch(args.path)
+ locals[locals.index(' %s ' % local_branch)] = '* %s' % local_branch
+ print('Locals:\n%s\nRemotes:\n %s' %
+ ('\n'.join(locals), '\n '.join(remotes)))
def tagrequest(args):
# not implimented