Re: git-p4.skipSubmitEdit
- From
- Michael Horowitz <michael.horowitz@ieee.org>
- Date
- Dec 17, 2011, 00:46 UTC
- Message-ID
- <CAFLRbor3Gnqhudmg8G_U37Nbo7ENoCEy0iFVGRP4i_AmatJHxw@mail.gmail.com>
- In-Reply-To
- <4EEBA106.9010001@diamand.org>
Actually, it is the opposite. Bailout works fine, it is when I ":wq" in Vi for example, that it fails to submit and reverts all my changes.
if os.stat(template_file).st_mtime <= mtime:
while True:
response = raw_input("Submit template unchanged.
Submit anyway? [y]es, [n]o (skip this patch) ")
if response == 'y':
return True
if response == 'n':
return False
# I think this else needs to be added here, so when the file
has been modified since it was opened in the editor, it will properly
submit the change.
else:
return TrueMike
On Fri, Dec 16, 2011 at 2:50 PM, Luke Diamand <luke@diamand.org> wrote:
Show 27 quoted lines
> > On 16/12/11 15:38, Michael Horowitz wrote: >> >> All, >> >> It appears that this change has introduced a bug that causes submit to >> fail every time if you do not skip the submit edit. >> >> From what I can tell, this is because the new edit_template method >> does not return True at the end. > > > Could you say exactly what you're doing? > > I've just tried it myself and it seems to work fine: > > git-p4 clone > git commit -m 'a change' > git-p4 submit > <quit from editor, with/without modifying it> > > And I couldn't see any paths in edit_template that returned without a value of True, except the one where the user decides to bail out. > > This is with Pete's skipSubmitEdit change. > > Thanks! > Luke