summaryrefslogtreecommitdiff
path: root/Functions/VCS_Info
AgeCommit message (Collapse)AuthorFilesLines
2015-09-0536410: vcs_info git: Present merge heads as patchesDaniel Shahaf1-0/+17
This shows, during 'git merge', the revision hashes of the "remote" head (the one that will become second parent of the commit) in the %m expando. Review-by: Frank Terbeck
2015-08-1836209: vcs_info: avoid grep error message when file is missingbrian m. carlson1-1/+3
When running git rebase -m and a conflict occurs, the git-rebase-todo file is not present. This leads to an error from grep every time the shell prompt is printed when vcs_info is enabled. Avoid this message by checking if the file exists before trying to grep it.
2015-08-1236077: vcs_info: stop exporting everythingMikael Magnusson12-21/+22
2015-03-0934673: vcs_info git: Fix error message when rebase hasn't startedDaniel Shahaf1-0/+1
2015-01-25vcs_info hg: Support inactive bookmarksDaniel Shahaf1-0/+17
(Similar to git detached heads)
2015-01-22PATCH: 34333: vcs_info quilt: fix unapplied detection in subdirMarc Finet1-13/+17
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).
2014-10-0933405: vcs_info: Make sure maxexports is set when VCS_INFO_set is calledFrank Terbeck1-0/+1
Reported-by: From: Marco Hinz <mh.codebro@gmail.com>
2014-10-0933391: vcs_info git: fix applied patch detection on git amMarc Finet1-10/+7
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-09-2933277: Fix VCS_INFO_reposub's command expansionFrank Terbeck1-3/+4
Reported-by: Marco Hinz <mh.codebro@gmail.com>
2014-09-2233217: vcs_info: use `--ignore-submodules=dirty` with diff/diff-indexDaniel Hahler1-3/+3
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-1633184: vcs_info git: consider patches for rebaseMarc Finet1-42/+74
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-1633188: vcs_info git: set rrn before using itMarc Finet1-2/+2
This would fix handling get-revision, check-for-changes or check-for-staged-changes when set per repository.
2014-09-1433145: vcs_info git: fix applied-string nameMarc Finet1-1/+1
Documentation and hg backend use applied-string. patch-string does not appear anywhere.
2014-09-1433148: vcs_info quilt: refactor standalone detectionMarc Finet1-5/+3
Since VCS_INFO_bydir_detect always uses the vcs_comm[detect_need_file], it should be cleared when querying it without file.
2014-09-1433147: vcs_info git: detect revert or cherry-pick with multiple commitsMarc Finet1-0/+5
When revert or cherry-pick involve many commits the .git/sequencer directory holds context for the action and no CHERRY_PICK_HEAD exist.
2014-08-2333047: use git to simplify massively source distribution file selectionPeter Stephenson2-44/+0
2014-06-0232662: vcs_info git: Fix stagedstr for empty reposDaniel Shahaf1-4/+10
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-05-2932621: vcs_info svn: 'Fix set-branch-format' when in subdirsDaniel Shahaf1-7/+15
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-2932619: vcs_info svn: Use the revision of cwdDaniel Shahaf1-3/+5
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-0632597: vcs_info git: Describe detached heads symbolically.Daniel Shahaf1-1/+1
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-04-0532528: vcs_info: Add check-for-staged-changesDaniel Shahaf1-5/+16
2014-01-1732264: vcs_info, hg: Support detecting repos using ShareExtensionFrank Terbeck1-1/+1
2013-12-0532089: tweak to detect Subversion repositoryDaniel Shahaf1-1/+1
2013-11-2932066: fix %r and %S in vcs_info formats when a repository subdirectory is ↵Barton E. Schaefer2-3/+3
accessed via a symlink 31985 Clemens Hammacher and 32064 Hong Xu
2013-06-1831485: vcs_info, git: Avoid error messages for `guilt' usersFrank Terbeck1-1/+3
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-03-1031136: vcs_info: just set parameters instead of passing over a pipeMikael Magnusson1-12/+9
2013-03-1030639: Add support for showing the current action is cherry-pick to vcs_info ↵Mikael Magnusson1-0/+11
git backend
2012-09-28Baptiste Daroussin: 30703: VCS_INFO_detect_fossil: Fix fossil detection on unixFrank Terbeck1-1/+1
2012-09-28Seth House: 30702: contrib.yo, VCS_INFO_get_data_hg: Removed --debug flag ↵Frank Terbeck1-3/+6
from the hg vcs_info backend
2012-08-17Stepan Koltsov: vcs_info: %a to output number of all patches in ↵Frank Terbeck3-8/+11
(no)?patch-format styles
2012-05-23Juliano Ravasi: VCS_INFO_get_data_git: Fix initialisation of `$stgit_unapplied'Frank Terbeck1-1/+1
2012-05-0230461, 30462 (tweaked): add missing local for match, mbegin and mendMikael Magnusson1-0/+1
2012-01-1930114: VCS_INFO_check_com: Remove a superfluous stat()Frank Terbeck1-1/+1
2011-12-3030046: VCS_INFO_get_data_svn: Fix support for subversion version 1.7Frank Terbeck1-1/+17
2011-11-09Akinori MUSHA: 29900: Backends/VCS_INFO_detect_svn: Adjust detection to ↵Frank Terbeck1-2/+2
support subversion 1.7.
2011-06-3029526: vcs_info: Set `max-exports' early after certain `start-up' hooks.Frank Terbeck1-0/+3
2011-05-31Jan Pobrislo: 29411: vcs_info: Major bzr backend update.Frank Terbeck1-6/+83
2011-03-3028959: Make the nvcsformats style be used if vcs_info is disabled.Frank Terbeck2-7/+3
2011-03-3028961: Add `no-vcs' hook.Frank Terbeck1-0/+1
2011-03-3028960: Add functions to add/remove static hooks.Frank Terbeck4-0/+71
2011-03-3028958: Support registering hooks independent of the context.Frank Terbeck1-3/+15
2011-03-30Add new vcs_info backend files to corresponding `.distfiles' file.Frank Terbeck1-0/+2
2011-03-30Mike Meyer: 28956, 28957: Add fossil support to vcs_info.Frank Terbeck2-0/+37
2011-02-1928776: Let vcs_info detect very old mercurial repositories.Frank Terbeck3-6/+8
2011-02-11Lennart Weller: 28739: Fix svn detection in vcs_infoFrank Terbeck1-1/+1
2010-08-02Seth House: 28114: vcs_info, git: Fix revision lookup with packed repositories.Frank Terbeck1-5/+2
2010-07-1928095: Fix two hard-coded invocations of the "git" command.Frank Terbeck1-2/+2
2010-07-1928093, based on Michel Lespinasse: 28090: Fix a problem with ↵Frank Terbeck1-2/+2
`check-for-changes' and freshly initialised repositories.
2010-05-27Seth House: 27971: vcs_info: Fix a bug that caused the mercurial backend to ↵Frank Terbeck1-2/+3
always return `default' as the branch name.
2010-05-14Simon Ruderich: 27953: vcs_info: changed default formats and actionformats.Frank Terbeck1-2/+2