Commit Graph

14 Commits

Author SHA1 Message Date
Stanislau Hlebik
6f3cfe5684 scmprompt: output only one remote bookmark
Summary:
Recently I had this scm prompt:
{F64910275}

This is not user friendly. I suggest to output at most one remote bookmark

Also this diff copies `seq.py` from upstream hg repo

Test Plan: Run scm prompt tests on devserver and mac and with '--shell=zsh'

Reviewers: rmcelroy

Reviewed By: rmcelroy

Subscribers: simonfar, wez, mjpieters, #sourcecontrol

Differential Revision: https://phabricator.intern.facebook.com/D4197242

Signature: t1:4197242:1483466446:cd1fe943dc99fde0600a4e20994fa4b0f971f72a
2017-01-04 00:23:16 -08:00
Ryan McElroy
d2a6af505b scm-prompt: use double square brackets everywhere
Summary: This is more robust and keeps the style consistent throughout

Test Plan: ran tests against zsh and bash

Reviewers: #sourcecontrol, ttung, zamsden

Reviewed By: zamsden

Subscribers: zamsden, mjpieters

Differential Revision: https://phabricator.intern.facebook.com/D3597346

Signature: t1:3597346:1469073711:de76132bd9c161242d8d8171da765ddb54a806a2
2016-07-22 16:31:51 -07:00
Ryan McElroy
5b650eac6c scm-prompt: documentation update
Test Plan: eyeballs

Reviewers: #sourcecontrol, ttung, zamsden

Reviewed By: zamsden

Subscribers: mjpieters

Differential Revision: https://phabricator.intern.facebook.com/D3597338

Signature: t1:3597338:1469073473:ead7a60fc01e099e8d631b19e3110fa91c6001af
2016-07-22 16:31:51 -07:00
Ryan McElroy
bc6e0f3097 scm-prompt: use proper name for active bookmark
Test Plan: ran tests against bash and zsh

Reviewers: #sourcecontrol, ttung, quark

Reviewed By: quark

Subscribers: zamsden, mjpieters

Differential Revision: https://phabricator.intern.facebook.com/D3597333

Signature: t1:3597333:1469095299:af22e4e5a852d4d9641716c96abae09af1dd99c9
2016-07-22 16:31:51 -07:00
Ryan McElroy
b66be8cc47 scm-prompt: rename d to dir
Test Plan: run tests against bash and zsh

Reviewers: #sourcecontrol, ttung, zamsden

Reviewed By: zamsden

Subscribers: mjpieters

Differential Revision: https://phabricator.intern.facebook.com/D3597324

Signature: t1:3597324:1469061271:509602a2a05e2ef4a1a55bea4859b18435bcd803
2016-07-22 16:31:51 -07:00
Ryan McElroy
77719aac66 scm-prompt: add compatiblity layer
Summary:
The old scm-prompt uses this longer, less awesome name.
Let's be backwards compatible with this and all that jazz.

Test Plan: tests pass under bash and zsh

Reviewers: #sourcecontrol, ttung, quark

Reviewed By: quark

Subscribers: quark, mjpieters

Differential Revision: https://phabricator.intern.facebook.com/D3597315

Signature: t1:3597315:1469153052:98600400bb3cabf561294fd62f7cc601c280a1bd
2016-07-22 16:31:51 -07:00
Ryan McElroy
087100c291 scm-prompt: become robust against aliases
Summary:
Previously, aliases could screw up scm-prompt. We had seen earlier
issues with this (thus the --color=never), but this is a more generic and
robust solution, applied everywhere.

We can't use full paths because they differ on different hosts, so we still
rely on a reasonable $PATH, as we always have.

Test Plan: ran scm-prompt tests under bash and zsh

Reviewers: #sourcecontrol, ttung, zamsden

Reviewed By: zamsden

Subscribers: mjpieters

Differential Revision: https://phabricator.intern.facebook.com/D3597300

Tasks: 12298139

Signature: t1:3597300:1469060969:e88be6bd79234167f039f2964117a738ffbb95f5
2016-07-22 16:31:51 -07:00
Ryan McElroy
c750c7f3b3 scm-prompt: add original branch name to rebases 2016-04-29 09:14:36 -07:00
Ryan McElroy
41c40d9839 scm-prompt: add git cherry-picking and reverting 2016-04-29 09:13:49 -07:00
Ryan McElroy
5cf67fbdea scm-prompt: fix typo bug 2016-04-29 08:24:42 -07:00
Ryan McElroy
78ff089e6a scm-prompt: deal with shared bookmarks 2016-04-29 06:36:09 -07:00
Ryan McElroy
fc6fdac261 scm-prompt: follow physical directories when finding root 2016-04-29 06:36:09 -07:00
Ryan McElroy
e058b78a4e scm-prompt: add quotes to accommodate paths with spaces 2016-04-29 06:36:09 -07:00
Ryan McElroy
6653644dc8 add scm-prompt.sh 2015-05-13 10:49:24 -07:00