Mercurial > hg
comparison tests/test-rebase-scenario-global.t @ 30849:763031a7690d stable
tests: use an absolute path to get around '..' being invalid on a dead CWD
Only FreeBSD seems to be this picky. Note that this explicit
absolute-path `cd` exposes a defect in the test, in that we end up
still inside the cwd-vanish repository, but that's not a regression in
this change. Since we're in a code freeze, I'm doing the smallest
thing possible to try and fix bugs on FreeBSD, rather than cleaning up
the entire problem. I'll follow up with a more complete fix after the
freeze.
author | Augie Fackler <augie@google.com> |
---|---|
date | Thu, 19 Jan 2017 16:23:49 -0500 |
parents | 318a24b52eeb |
children | 628600bf55e4 |
comparison
equal
deleted
inserted
replaced
30848:7080652af6e6 | 30849:763031a7690d |
---|---|
768 rebasing 2:779a07b1b7a0 "first source commit" | 768 rebasing 2:779a07b1b7a0 "first source commit" |
769 rebasing 3:a7d6f3a00bf3 "second source with subdir" (tip) | 769 rebasing 3:a7d6f3a00bf3 "second source with subdir" (tip) |
770 saved backup bundle to $TESTTMP/cwd-vanish/.hg/strip-backup/779a07b1b7a0-853e0073-backup.hg (glob) | 770 saved backup bundle to $TESTTMP/cwd-vanish/.hg/strip-backup/779a07b1b7a0-853e0073-backup.hg (glob) |
771 #endif | 771 #endif |
772 | 772 |
773 Get back to the root of cwd-vanish. Note that even though `cd ..` | |
774 works on most systems, it does not work on FreeBSD 10, so we use an | |
775 absolute path to get back to the repository. | |
776 $ cd $TESTTMP/cwd-vanish | |
777 | |
773 Test that rebase is done in topo order (issue5370) | 778 Test that rebase is done in topo order (issue5370) |
774 | 779 |
775 $ cd .. | |
776 $ hg init order | 780 $ hg init order |
777 $ cd order | 781 $ cd order |
778 $ touch a && hg add a && hg ci -m A | 782 $ touch a && hg add a && hg ci -m A |
779 $ touch b && hg add b && hg ci -m B | 783 $ touch b && hg add b && hg ci -m B |
780 $ touch c && hg add c && hg ci -m C | 784 $ touch c && hg add c && hg ci -m C |