Code

Give a better hint if git-p4 submit fails
authorSimon Hausmann <shausman@trolltech.com>
Wed, 16 May 2007 07:43:13 +0000 (09:43 +0200)
committerSimon Hausmann <shausman@trolltech.com>
Wed, 16 May 2007 07:43:13 +0000 (09:43 +0200)
Signed-off-by: Simon Hausmann <shausman@trolltech.com>
contrib/fast-import/git-p4

index eba7a67c68542b94447e981381c54b0f58840f31..c48b257577f22bf7872a11fadfe659fc66802970 100755 (executable)
@@ -193,7 +193,7 @@ class P4Submit(Command):
 
     def start(self):
         if len(self.config) > 0 and not self.reset:
-            die("Cannot start sync. Previous sync config found at %s" % self.configFile)
+            die("Cannot start sync. Previous sync config found at %s\nIf you want to start submitting again from scratch maybe you want to call git-p4 submit --reset" % self.configFile)
 
         commits = []
         for line in mypopen("git rev-list --no-merges %s..%s" % (self.origin, self.master)).readlines():