From 7cd12cb501a14a0a0819320a96bcc30d7ee3b739 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20H=C3=BCwe?= Date: Sun, 22 Mar 2009 16:04:19 +0000 Subject: [PATCH] - fixed #462389 ("Ask for commit before creating a new submitreq") --- osc/commandline.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index 73dd5e90..343b32fa 100755 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -532,7 +532,12 @@ class Osc(cmdln.Cmdln): else: sys.exit('Package \'%s\' is not a source link, so I cannot guess the submit target.\n' 'Please provide it the target via commandline arguments.' % p.name) - + modified = [i for i in p.filenamelist if p.status(i) != ' ' and p.status(i) != '?'] + if len(modified) > 0: + print 'Your working copy has local modifications.' + repl = raw_input('Proceed without committing the local changes? (y|N) ') + if repl != 'y': + sys.exit(1) elif len(args) >= 3: # get the arguments from the commandline src_project, src_package, dst_project = args[0:3]