summaryrefslogtreecommitdiff
path: root/usr/src/tools/scripts
AgeCommit message (Collapse)AuthorFilesLines
2011-12-19Merge branch 'git-tools' of git://github.com/richlowe/illumos-gateJohn Sonnenschein9-123/+588
2011-12-15[OS-714] Illumos mergeJohn Sonnenschein1-1/+1
2011-12-07webrev: Detect and handle renamesRichard Lowe1-10/+25
While gathering the list of _really_ changed files, record the name they used to have such that we can deal with renames. Git does not really support renames, and calculates this at runtime also providing a 'score' indicating the likelyhood of being a rename. We currently only treat as renames those situations with a score > 75 (out of 100).
2011-12-07webrev: Don't care about ephemerally changed filesRichard Lowe1-16/+29
If files are added then removed, or changed and then reset, don't show them in the webrev. We do this by moving the call to whatchanged into the perl itself, and then effectively doing a join on filename between the 'diff' file list, and the whatchanged file list.
2011-12-07webrev: Display full checkin comments (again)Richard Lowe1-14/+16
As with mercurial, display the full set of checkin comments, rudely concatenated, rather than just the first 'subject' comment line that normal people would use, but Illumos steadfastly refuses to.
2011-12-06webrev: Document how git determines parenthood, and what it acceptsRichard Lowe1-1/+8
We made git function fundamentally differently, in terms of the webrev "parent". Document (to the best degree I can). - That the parent is the branch this branch is tracking, or origin/master - That a specified parent is anything at all that git accepts as a tree, including reflog entries, etc, etc.
2011-12-05git-pbchk: Add a simple script to run putback checks over gitRichard Lowe3-2/+400
2011-12-05Merge branch 'master' of http://github.com/illumos/illumos-gate into tools/gitRichard Lowe1-1/+1
2011-11-11webrev: chomp not chop when parsing git file list.Richard Lowe1-1/+1
All these years, and still making that mistake...
2011-11-03ws: Support git in the most rudimentary wayRichard Lowe1-2/+14
In keeping with the rest of our support, there's no concept of "parent workspace" so this is really just a matter of choosing where to put the protodefs. In passing fix the classic bug where GNU dirname of no arguments is an error, and the rest of the script cries.
2011-11-03flg.flp: Support git file-list generation (and thus xref)Richard Lowe1-3/+5
Similar to Mercurial support, list all files in the repository (which is fast), then pair it down.
2011-11-291816 hgsetup should use anonymous ssh clone, not httpJoshua M. Clulow1-1/+1
Reviewed by: Richard Lowe <richlowe@richlowe.net> Reviewed by: Garrett D'Amore <garrett@nexenta.com> Approved by: Richard Lowe <richlowe@richlowe.net>
2011-05-13[OS-411] Guava Illumos syncJohn Sonnenschein5-130/+9
2011-05-10Merge remote-tracking branch 'illumos/master' into tools/gitRichard Lowe7-136/+57
2011-04-30webrev: Store absolute paths to parent webrevRichard Lowe1-2/+2
Since the git build_old_new changes directory, we need to store absolute paths for the parent webrev support to function correctly.
2011-04-30webrev: Add support for parent webrevs to the git supportRichard Lowe1-11/+16
build_old_new_* sadly need to be aware if the parent "workspace" is actually a webrev, so they can get the old version of the file with cp rather than whatever native means.
2011-04-30webrev: Don't choke on file-less revisionsRichard Lowe1-8/+9
Adjust the way we build the file list, so that we don't trip over revisions containing no files. We now build a list of revision --> message mappings, and then get the file lists for each revision, which is inefficient but otherwise does the right things.
2011-04-30webrev: Quote arguments to dirnameRichard Lowe1-3/+3
2011-04-30webrev: Get the git 'new' version of files from the workspaceRichard Lowe1-12/+4
Make the git webrev act like the others, and get the 'new' side of the diff from the working copy, not the most recent commit.
2011-04-29webrev: Sort the git file listRichard Lowe1-16/+14
We previously processed files in whichever order the nawk associative array stored its keys, which is hard to read. Instead, do so sorted by file name.
2011-04-29webrev: use $GIT not 'git'Richard Lowe1-2/+2
A couple of places lost their use of $GIT, restore it
2011-03-11OS-264 Merge from upstream (illumos)John Sonnenschein3-5/+47
2011-02-21webrev: Default parent to branch we're trackingRichard Lowe1-3/+13
It seems most logical for webrev to default to comparing against the branch from which 'git pull' would pull, only falling back to 'origin/master' if we can't figure that out.
2011-02-21webrev: build_old_new_git needs to run from workspace rootRichard Lowe1-0/+4
It seems git ls-tree uses somewhat CWD-relative paths, and doesn't work at all when in a directory not under git control)
2011-02-17689 nightly.sh doesn't do fresh bringoversRoland Mainz1-2/+12
Reviewed by: Dan McDonald <danmcd@nexenta.com> Reviewed by: Olga Kryzhanoska <olga.kryzhanovska@gmail.com> Approved by: Garrett D'Amore <garrett@nexenta.com>
2011-02-03692 ws needs to set CLOSED_IS_PRESENTDan McDonald1-1/+9
Reviewed by: roland.mainz@nexenta.com Reviewed by: garrett@nexenta.com Approved by: garrett@nexenta.com
2011-04-27224 findunref build shouldn't fail if SCM can't be determinedRichard Lowe2-16/+3
Reviewed by: Robert Gordon <rbg@openrbg.com> Reviewed by: Gordon Ross <gwr@nexenta.com> Reviewed by: George Wilson <gwilson@zfsmail.com> Approved by: Garret D'Amore <garrett@nexenta.com>
2011-01-21450 RFE: Do a small illumos.sh cleanupRoland Mainz2-4/+28
Reviewed by: matt@greenviolet.net Reviewed by: alan.coopersmith@gmail.com Reviewed by: jason.brian.king@gmail.com Approved by: garrett@nexenta.com
2011-04-07754 Build of illumos-gate fails with perl-5.10.0 as default perlRichard Lowe1-3/+5
Reviewed by: Gordon Ross <gordon.w.ross@gmail.com> Reviewed by: Albert Lee <trisk@opensolaris.org> Approved by: Garrett D'Amore <garrett@nexenta.com>
2011-04-05842 src/lib/Makefile has libc_i18n vestigesGarrett D'Amore3-111/+1
Reviewed by: Rich Lowe <richlowe@richlowe.net> Reviewed by: Albert Lee <trisk@nexenta.com> Approved by: Gordon Ross <gwr@nexenta.com>
2011-01-06Merge branch 'master' of https://github.com/illumos/illumos-gate into developJohn Sonnenschein1-3/+3
2010-12-22Revert f06a78f2c7,2f456a16bf,23519ef963 due to build breakage.John Sonnenschein2-3716/+3
2010-12-22merge with illumos-gate (fix missing files)John Sonnenschein1-0/+3713
2010-12-21sync with illumosJohn Sonnenschein1-3/+3
2010-12-20Merge remote branch 'illumos/master' into git-toolsRichard Lowe3-26/+21
2010-12-09436 webrev URLs need updatedChris Love1-3/+3
Reviewed by: garrett@nexenta.com Reviewed by: matt@greenviolet.net Approved by: garrett@nexenta.com
2010-12-06webrev: Document Git supportRichard Lowe1-3/+10
Bare minimum documentation of the support for Git - How we find the workspace root - How we (don't) determine the parent workspace
2010-12-06webrev: Include origin URI in git parent headerRichard Lowe1-1/+9
If the parent branch name includes a '/', take the first part to be an origin name, translate it to a URI (using the first found), and include it in the pretty parent header, so people can more usefully know what a particular ref name actually means.
2010-12-06webrev: Rearrange so SCMs create their own pretty headersRichard Lowe1-25/+28
Rearrange the code to add PRETTY_CWS and PRETY_PWS, set by each SCM supporting it to a string to be used as the "pretty" name of the current and parent workspace, respectively. At present this is used to avoid duplication of the "(at <node>)" logic for Mercurial and Git.
2010-12-06webrev: Use commit-ish things as parents with gitRichard Lowe1-13/+11
The parent (webrev -p) can now be any commit-shaped thing (see git-rev-parse(1)), it cannot, however, be the conventional filesystem path or URL.
2010-12-06webrev: Fix some hanging references to git-activeRichard Lowe1-24/+21
Remove some hanging references to git-active in uncommon use cases (an explicitly specified, non-wx format file list), and some references in commentary.
2010-12-05webrev: Don't assume new file existsRichard Lowe1-3/+5
When building the old and new directories for git, check that the new path exists before trying to chmod it -- in the case of files that were deleted, it won't.
2010-12-05webrev: Build file list directlyRichard Lowe3-144/+34
Remove git-active, and build the filelist within webrev itself. Unlike with Mercurial, git-active was purely doing text-processing that could be done easily, and tidily, within webrev itself.
2010-12-05webrev: Fix one more instance of --git-dir=$CODEMGR_WSRichard Lowe1-3/+3
2010-10-22Merge from illumos branchJosh Wilsdon4-36/+21
2010-10-15346 validate_pkg uses now-removed action.get_variants()Richard Lowe1-7/+16
Reviewed by: johnsonnenschein@gmail.com, garrett@nexenta.com Approved by: garrett@nexenta.com --HG-- extra : rebase_source : 8c86d0860bfe3facd8bffa7ccdf7988b92945dd9
2010-10-14334 "make check" fails if MULTI_PROTO is yes and only building non-debugAlbert Lee1-1/+2
303 mdb's tigen should use terminfo database from proto Reviewed by: richlowe@richlowe.net Reviewed by: garrett@nexenta.com Approved by: garrett@nexenta.com
2010-10-08259 SCM tools should work with wider range of Mercurial versionsRichard Lowe1-3/+3
Reviewed by: garrett@nexenta.com Approved by: gwr@nexenta.com --HG-- extra : rebase_source : 226d476ba44d6290017d6774aab7ea3b07dce615
2010-10-07add git support to webrev, which_scm, and general buildjerry6-12/+343
2010-09-21webrev: Follow normal CODEMGR_WS conventionsRichard Lowe2-15/+14
With all of the other SCMs supported by webrev, CODEMGR_WS, CWS, etc. refer to the root of the workspace, not the root of the SCM metadata directory. Make git follow this pattern, and append '.../.git' as necessary