Submitter | Durham Goode |
---|---|
Date | May 5, 2015, 8:13 p.m. |
Message ID | <17736d09e2f251133e0b.1430856798@dev2000.prn2.facebook.com> |
Download | mbox | patch |
Permalink | /patch/8905/ |
State | Accepted |
Headers | show |
Comments
On Tue, May 05, 2015 at 01:13:18PM -0700, Durham Goode wrote: > # HG changeset patch > # User Durham Goode <durham@fb.com> > # Date 1430849717 25200 > # Tue May 05 11:15:17 2015 -0700 > # Branch stable > # Node ID 17736d09e2f251133e0b1d57055aa7f01b697a62 > # Parent 41cd8171e58f991373dcd0b4897dc1e5978d42dd > histedit: fix test-histedit-edit on vfat Queued for stable, thanks > > test-histedit-edit was broken because it relied on the HGEDITOR script being > executable. Instead, lets just execute 'sh' and pass it the script to run. This > seems to be the pattern followed in other tests. > > diff --git a/tests/test-histedit-edit.t b/tests/test-histedit-edit.t > --- a/tests/test-histedit-edit.t > +++ b/tests/test-histedit-edit.t > @@ -71,15 +71,14 @@ edit the history > When you are finished, run hg histedit --continue to resume. > > edit the plan via the editor > - $ cat >> ../editplan.sh <<EOF > + $ cat >> $TESTTMP/editplan.sh <<EOF > > cat > \$1 <<EOF2 > > drop e860deea161a e > > drop 652413bf663e f > > drop 3c6a8ed2ebe8 g > > EOF2 > > EOF > - $ chmod a+x ../editplan.sh > - $ HGEDITOR=../editplan.sh hg histedit --edit-plan > + $ HGEDITOR="sh $TESTTMP/editplan.sh" hg histedit --edit-plan > $ cat .hg/histedit-state > v1 > 055a42cdd88768532f9cf79daa407fc8d138de9b > _______________________________________________ > Mercurial-devel mailing list > Mercurial-devel@selenic.com > http://selenic.com/mailman/listinfo/mercurial-devel
Patch
diff --git a/tests/test-histedit-edit.t b/tests/test-histedit-edit.t --- a/tests/test-histedit-edit.t +++ b/tests/test-histedit-edit.t @@ -71,15 +71,14 @@ edit the history When you are finished, run hg histedit --continue to resume. edit the plan via the editor - $ cat >> ../editplan.sh <<EOF + $ cat >> $TESTTMP/editplan.sh <<EOF > cat > \$1 <<EOF2 > drop e860deea161a e > drop 652413bf663e f > drop 3c6a8ed2ebe8 g > EOF2 > EOF - $ chmod a+x ../editplan.sh - $ HGEDITOR=../editplan.sh hg histedit --edit-plan + $ HGEDITOR="sh $TESTTMP/editplan.sh" hg histedit --edit-plan $ cat .hg/histedit-state v1 055a42cdd88768532f9cf79daa407fc8d138de9b