mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
763e41cee8
Summary: Previously, smartlog use `tip` as the fallback master, and prompts: warning: there is no master changeset locally, try pulling from server if master is `tip`. That makes smartlog less friendly for external users. This patch removes the prompt and changes the fallback master to the last public revision so it works out-of-box. Test Plan: `arc unit` Reviewers: #mercurial, durham Reviewed By: durham Subscribers: durham, mjpieters Differential Revision: https://phabricator.intern.facebook.com/D4555346 Signature: t1:4555346:1487036530:35a5fa65d5419e7324d3203fa52de9a82b8132e3
52 lines
1.2 KiB
Perl
52 lines
1.2 KiB
Perl
$ . $TESTDIR/require-ext.sh directaccess evolve inhibit
|
|
$ extpath=`dirname $TESTDIR`
|
|
$ cp $extpath/hgext3rd/smartlog.py $TESTTMP # use $TESTTMP substitution in message
|
|
$ cp $extpath/hgext3rd/fbamend.py $TESTTMP
|
|
$ cat >> $HGRCPATH << EOF
|
|
> [extensions]
|
|
> directaccess =
|
|
> evolve=
|
|
> fbamend=$TESTTMP/fbamend.py
|
|
> inhibit=
|
|
> rebase=
|
|
> smartlog=$TESTTMP/smartlog.py
|
|
> [experimental]
|
|
> evolution = createmarkers
|
|
> evolutioncommands = prev next split fold
|
|
> EOF
|
|
|
|
Test that changesets with visible precursors are rendered as x's, even
|
|
with the inhibit extension enabled.
|
|
$ hg init repo
|
|
$ cd repo
|
|
$ hg debugbuilddag +4
|
|
$ hg book -r 3 test
|
|
$ hg up 1
|
|
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
|
$ hg amend -m "amended"
|
|
warning: the changeset's children were left behind
|
|
(use 'hg rebase --restack' (alias: 'hg restack') to rebase them)
|
|
$ hg smartlog -T '{rev} {bookmarks}'
|
|
@ 4
|
|
|
|
|
| o 3 test
|
|
| |
|
|
| o 2
|
|
| |
|
|
| x 1 59cf2bc6d22f.preamend
|
|
|/
|
|
o 0
|
|
|
|
$ hg unamend
|
|
$ hg up 2
|
|
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
|
$ hg smartlog -T '{rev} {bookmarks}'
|
|
o 3 test
|
|
|
|
|
@ 2
|
|
|
|
|
o 1 59cf2bc6d22f.preamend
|
|
|
|
|
o 0
|
|
|