1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-05 11:01:13 +02:00
Commit graph

75 commits

Author SHA1 Message Date
Daniel Shahaf
57be7b743f 34673: vcs_info git: Fix error message when rebase hasn't started 2015-03-09 20:03:37 +00:00
Daniel Shahaf
9d25fd7255 vcs_info hg: Support inactive bookmarks
(Similar to git detached heads)
2015-01-25 01:42:05 +01:00
Marc Finet
9ea817acda PATCH: 34333: vcs_info quilt: fix unapplied detection in subdir
When patches are applied, let quilt use .pc without forcing the
patch directory, this will fix the unapplied detection when being in
subdir.
When no patches are applied, use zstyle quilt-patch-dir then
QUILT_PATCHES then "patches" for path to search for patches.

Note: prefer setting quilt-patch-dir rather than QUILT_PATCHES for
absolute path because when patches are applied, quilt unapplied will
not return the correct list (i.e. the whole list rather that the one
specified by .pc/.quilt_series).
2015-01-22 00:15:20 +01:00
Frank Terbeck
a03227de23 33405: vcs_info: Make sure maxexports is set when VCS_INFO_set is called
Reported-by: From: Marco Hinz <mh.codebro@gmail.com>
2014-10-09 18:36:13 +02:00
Marc Finet
0f73b35f4e 33391: vcs_info git: fix applied patch detection on git am
git-am also uses .git/rebase-apply for patch list but
the file original-commit does not exist (as no commit exist).
This patch handles both git rebase and git am. Also:
 - get the first line (rather than the first char) when the message
   contains only one line;
 - remove unused function (ironically that should have been used here).
2014-10-09 18:11:08 +02:00
Frank Terbeck
4a529201b8 33277: Fix VCS_INFO_reposub's command expansion
Reported-by: Marco Hinz <mh.codebro@gmail.com>
2014-09-29 19:20:11 +02:00
Daniel Hahler
64e2b4426e 33217: vcs_info: use --ignore-submodules=dirty with diff/diff-index
This will detect changes to submodules from the superproject's
perspective, e.g. after `git rm submodule`.

>From GIT-DIFF-INDEX(1)/GIT-DIFF(1):

    Using "dirty" ignores all changes to the work tree of submodules,
    only changes to the commits stored in the superproject are shown
    (this was the behavior until 1.7.0).
2014-09-22 23:23:03 +02:00
Marc Finet
9c29a4f1f6 33184: vcs_info git: consider patches for rebase
Since a rebase contains a list of patches to re-apply, re-use the
facility for stgit to have the same mechanism.
The patch list given to the gen-{un,}applied-string hooks is an array
with the sha1 and the subject of the commit. On rebase merge, the
applied patches prior to current contains only a number and "?".
2014-09-16 23:20:55 +02:00
Marc Finet
2c2d4f9627 33188: vcs_info git: set rrn before using it
This would fix handling get-revision, check-for-changes or
check-for-staged-changes when set per repository.
2014-09-16 23:20:52 +02:00
Marc Finet
d5f574e20a 33145: vcs_info git: fix applied-string name
Documentation and hg backend use applied-string. patch-string does not
appear anywhere.
2014-09-14 12:02:37 +02:00
Marc Finet
06e03e7234 33148: vcs_info quilt: refactor standalone detection
Since VCS_INFO_bydir_detect always uses the
vcs_comm[detect_need_file], it should be cleared when querying
it without file.
2014-09-14 12:02:36 +02:00
Marc Finet
5e40996891 33147: vcs_info git: detect revert or cherry-pick with multiple commits
When revert or cherry-pick involve many commits the .git/sequencer
directory holds context for the action and no CHERRY_PICK_HEAD exist.
2014-09-14 12:02:36 +02:00
Peter Stephenson
cc6e9db29d 33047: use git to simplify massively source distribution file selection 2014-08-23 21:01:58 +01:00
Daniel Shahaf
b85b09b78b 32662: vcs_info git: Fix stagedstr for empty repos
In empty repositories, HEAD is an unresolvable symbolic ref.  Start computing
stagedstr/unstagedstr in that case; for the former, use a different method
than the non-empty-repository case.
2014-06-02 15:17:04 +02:00
Daniel Shahaf
55d5feed30 32621: vcs_info svn: 'Fix set-branch-format' when in subdirs
The previous code would fail to detect the wcroot with Subversion 1.7+
when cwd is at least two levels below the root (i.e., ../../.svn exists
and ../.svn doesn't), and would then pass to the hook the revision and
basename of cwd rather than of the wcroot.
2014-05-29 16:50:07 +02:00
Daniel Shahaf
bb271217fe 32619: vcs_info svn: Use the revision of cwd
Previously, the value of the wc root would be used.  In Subversion,
it makes more sense to use the revision of cwd, since all commands
(e.g., 'svn ci', 'svnversion') operate only on cwd and below, not on
wcroot and below.
2014-05-29 16:50:07 +02:00
Daniel Shahaf
6a201af341 32597: vcs_info git: Describe detached heads symbolically.
This makes %b expand to a refname rather than a sha1 when HEAD is detached but
happens to match some ref (branch, tag, etc).  The resulting output will
typically contain a slash (e.g., "tags/v1.0.2", "heads/mybranch"), which helps
distinguish it from the output in the "HEAD is a symbolic ref" case.
2014-05-06 14:22:10 +02:00
Daniel Shahaf
eb4c70d0b7 32528: vcs_info: Add check-for-staged-changes 2014-04-05 10:56:52 +02:00
Frank Terbeck
82a3591f57 32264: vcs_info, hg: Support detecting repos using ShareExtension 2014-01-17 08:58:52 +01:00
Daniel Shahaf
c1a15fb152 32089: tweak to detect Subversion repository 2013-12-05 20:06:34 +00:00
Barton E. Schaefer
9972fdeead 32066: fix %r and %S in vcs_info formats when a repository subdirectory is accessed via a symlink
31985 Clemens Hammacher and 32064 Hong Xu
2013-11-29 12:32:36 -08:00
Frank Terbeck
88599a0508 31485: vcs_info, git: Avoid error messages for `guilt' users
Guilt uses the same internal directory for keeping state as stgit, but
it doesn't use the same files (not surprisingly). This caused error
messages due to missing files.

This fixes that by making the "stgit-active?" test stricter.

Reported-by: Axel Beckert <abe@debian.org>
2013-06-18 09:16:59 +02:00
Mikael Magnusson
44907223ff 31136: vcs_info: just set parameters instead of passing over a pipe 2013-03-10 13:18:32 +00:00
Mikael Magnusson
0c8625299a 30639: Add support for showing the current action is cherry-pick to vcs_info git backend 2013-03-10 12:47:39 +00:00
Frank Terbeck
2e6363ed50 Baptiste Daroussin: 30703: VCS_INFO_detect_fossil: Fix fossil detection on unix 2012-09-28 22:11:32 +00:00
Frank Terbeck
feb6169bcd Seth House: 30702: contrib.yo, VCS_INFO_get_data_hg: Removed --debug flag from the hg vcs_info backend 2012-09-28 22:07:29 +00:00
Frank Terbeck
3aae0ef8fe Stepan Koltsov: vcs_info: %a to output number of all patches in (no)?patch-format styles 2012-08-17 08:22:52 +00:00
Frank Terbeck
c45bb3e70c Juliano Ravasi: VCS_INFO_get_data_git: Fix initialisation of `$stgit_unapplied' 2012-05-23 07:39:48 +00:00
Mikael Magnusson
150dc9021b 30461, 30462 (tweaked): add missing local for match, mbegin and mend 2012-05-02 13:09:37 +00:00
Frank Terbeck
0d15215d86 30114: VCS_INFO_check_com: Remove a superfluous stat() 2012-01-19 16:57:40 +00:00
Frank Terbeck
ee03cac7fe 30046: VCS_INFO_get_data_svn: Fix support for subversion version 1.7 2011-12-30 13:32:51 +00:00
Frank Terbeck
6ed7fab103 Akinori MUSHA: 29900: Backends/VCS_INFO_detect_svn: Adjust detection to support subversion 1.7. 2011-11-09 17:49:25 +00:00
Frank Terbeck
f028b97e8f 29526: vcs_info: Set max-exports' early after certain start-up' hooks. 2011-06-30 07:43:53 +00:00
Frank Terbeck
5e2a1cf4cc Jan Pobrislo: 29411: vcs_info: Major bzr backend update. 2011-05-31 19:07:06 +00:00
Frank Terbeck
eb46727d3a 28959: Make the nvcsformats style be used if vcs_info is disabled. 2011-03-30 21:24:42 +00:00
Frank Terbeck
7c50fa1262 28961: Add `no-vcs' hook. 2011-03-30 21:19:17 +00:00
Frank Terbeck
abe0ee3936 28960: Add functions to add/remove static hooks. 2011-03-30 21:17:07 +00:00
Frank Terbeck
d7bcf2bb96 28958: Support registering hooks independent of the context. 2011-03-30 21:13:37 +00:00
Frank Terbeck
15779b019d Add new vcs_info backend files to corresponding `.distfiles' file. 2011-03-30 20:11:17 +00:00
Frank Terbeck
ae6fb299f3 Mike Meyer: 28956, 28957: Add fossil support to vcs_info. 2011-03-30 20:07:05 +00:00
Frank Terbeck
3c020a9a9c 28776: Let vcs_info detect very old mercurial repositories. 2011-02-19 11:54:41 +00:00
Frank Terbeck
f5b07d4868 Lennart Weller: 28739: Fix svn detection in vcs_info 2011-02-11 07:05:09 +00:00
Frank Terbeck
01b4a67310 Seth House: 28114: vcs_info, git: Fix revision lookup with packed repositories. 2010-08-02 21:11:08 +00:00
Frank Terbeck
bb95aef24f 28095: Fix two hard-coded invocations of the "git" command. 2010-07-19 20:05:22 +00:00
Frank Terbeck
9b2334cf55 28093, based on Michel Lespinasse: 28090: Fix a problem with `check-for-changes' and freshly initialised repositories. 2010-07-19 19:20:27 +00:00
Frank Terbeck
17b7471fbc Seth House: 27971: vcs_info: Fix a bug that caused the mercurial backend to always return `default' as the branch name. 2010-05-27 10:06:16 +00:00
Frank Terbeck
88ea63adf2 Simon Ruderich: 27953: vcs_info: changed default formats and actionformats. 2010-05-14 07:58:37 +00:00
Frank Terbeck
0501efc54a Seth House, Simon Ruderich and myself: 27948: various vcs_info changes
Here's a diff-stat:

 Doc/Zsh/contrib.yo                                |  506 ++++++++++++++-------
 Functions/VCS_Info/.distfiles                     |    1 +
 Functions/VCS_Info/Backends/VCS_INFO_detect_hg    |   14 +-
 Functions/VCS_Info/Backends/VCS_INFO_get_data_git |   35 +-
 Functions/VCS_Info/Backends/VCS_INFO_get_data_hg  |  295 +++++++++----
 Functions/VCS_Info/VCS_INFO_formats               |   26 +-
 Functions/VCS_Info/VCS_INFO_hook                  |   10 +-
 Functions/VCS_Info/VCS_INFO_quilt                 |  190 ++++++++
 Functions/VCS_Info/vcs_info                       |   30 +-
 Misc/.distfiles                                   |    1 +
 Misc/vcs_info-examples                            |  496 ++++++++++++++++++++
 11 files changed, 1303 insertions(+), 301 deletions(-)

The major changes are vast improvements for the mercurial (hg) backend
(which was done almost entirely by Seth); improved documentation (mostly
done by Simon and again Seth); quilt support (as an addon and stand
alone, see the manual for details); a number of new hooks and a fair
share of bugfixes.
2010-05-10 10:46:48 +00:00
Frank Terbeck
4277121662 27908: Functions/VCS_Info/vcs_info: Avoid locale related problems 2010-04-26 18:58:33 +00:00
Frank Terbeck
ff22b24f1b Simon Ruderich: 27779: Fix mistakes in vcs_info's documentation. 2010-03-11 12:39:38 +00:00