Comments
Patch
@@ -1480,6 +1480,8 @@
raise util.Abort(_('unresolved merge conflicts '
'(see "hg help resolve")'))
+ self.dirstate.write() # for external editor and hooks
+
if editor:
cctx._text = editor(self, cctx, subs)
edited = (text != cctx._text)
@@ -999,10 +999,6 @@
> EOF
$ hg clone -q enabled-but-no-largefiles no-largefiles
-(test rebasing implied by pull: precommit while rebasing unexpectedly
-shows "normal3" as "?", because lfdirstate isn't yet written out at
-that time)
-
$ echo normal2 > enabled-but-no-largefiles/normal2
$ hg -R enabled-but-no-largefiles add enabled-but-no-largefiles/normal2
$ hg -R enabled-but-no-largefiles commit -m '#1@enabled-but-no-largefiles'
@@ -1017,7 +1013,7 @@
$ hg -R no-largefiles -q pull --rebase
Invoking status precommit hook
- M normal3
+ A normal3
(test reverting)
@@ -101,6 +101,7 @@
Test saving last-message.txt:
$ cat > $TESTTMP/editor.sh << EOF
+ > hg parents --template "{rev}\n"
> echo "==== before editing"
> cat \$1
> echo "===="
@@ -165,7 +166,10 @@
$ rm -f .hg/last-message.txt
$ hg status --rev "second-patch^1" -arm
A file2
+ $ hg log -r "." --template "{rev}\n"
+ 1
$ HGEDITOR="sh $TESTTMP/editor.sh" hg qrefresh -e
+ 0
==== before editing
Fifth commit message
This is the 5th log message