From 3fecd9c80076f80ba7bf9c2686c3628c6b7a6889 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Mon, 16 Apr 2012 15:39:48 -0400 Subject: [PATCH] remove usage information and documentation from jsvn just keep one copy of this in README --- jsvn | 113 ++--------------------------------------------------------- 1 file changed, 2 insertions(+), 111 deletions(-) diff --git a/jsvn b/jsvn index 78c5f88..d6538bc 100755 --- a/jsvn +++ b/jsvn @@ -2,117 +2,8 @@ # Josh's SVN wrapper script # -# This wrapper script to Subversion supplements normal svn behavior by -# adding additional functionality or modifying the output of the default -# svn subcommands. Much of the functionality implemented here was inspired -# by the way that git works. -# -# It is recommended to put this script in your $PATH as 'jsvn' or something -# other than 'svn' and to make an alias svn='jsvn'. -# For example, this .bash_aliases stanza will check if 'jsvn' is in your -# path and automatically alias 'svn' to it if so: -# if [[ "$(which jsvn 2>/dev/null)" != "" ]]; then -# alias svn='jsvn' -# fi -# -# Implemented subcommands: -# add ... -# - add files as usual; add recursive contents of directories -# bisect -# operations: -# - init initialize a new bisect operation -# - bad mark the current revision as bad - containing the change sought -# - good mark the current revision as good - older than the change sought -# - reset terminate the bisect operation and return to the original revision -# branch[es] [[-d] ] -# - with no arguments, list branches with '*' by the current one -# - with -d, delete -# - otherwise, create a new branch from the current one -# tag[s] [[-d] ] | [-m ] -# - with no arguments, list tags -# - with -d, delete -# - with -m, rename to -# - otherwise, create a new tag from the current branch -# switch -# - switch to 'trunk', branch name, or tag name without having to specify -# the full URL -# - falls back to Subversion "switch" if doesn't exist -# merge -# - merge branch into the current WC path -# - falls back to Subversion "merge" if doesn't exist -# root -# - output root URL (for use on shell such as "svn log $(svn root)/tags") -# url -# - output repository URL of current working directory -# watch-lock -# - block until the lock on a file/URL is released -# users -# - show a list of contributing users to a SVN path -# binaries [--set-lock] -# - show a list of versioned binary files under the current path, with -# a prepended '*' for those with svn:needs-lock set -# - with --set-lock, set svn:needs-lock to '*' for binaries -# lockable [--remove] | [--status] -# - with no switches, set svn:needs-lock to '*' for file[s] -# - with --remove, remove svn:needs-lock' for file[s] -# - with --status, prepended '*' for those with svn:needs-lock set -# externals -# - print a list of the externals in the repository -# stash [command] -# - allow temporarily saving changes to the working copy without committing -# - the stashes behaves as a "stack" where "save" pushes a new stash object -# and "pop" pops the newest one from the top of the stack -# commands: -# save (default if not specified): -# - save changes as a "stash" object and revert them from working copy -# - this currently only works with changes to already-versioned files -# list: -# - show a list of all stash objects -# pop [id]: -# - apply the stash object back to the working copy -# - the stash object is removed if it was successfully applied -# - defaults to the newest stash object created -# show [id]: -# - display the diff stored in stash with ID -# - defaults to the newest stash object created -# drop [id]: -# - delete stash object -# - defaults to the newest stash object created -# -# The following subcommands are executed using their native handler, but -# have their output simplified and/or colorized: -# - diff -# - log -# - status -# - update -# -# If the subcommand name begins with two leading underscores ("__"), the -# underscores will be stripped and the command will be handled by native -# Subversion without any jsvn processing. -# -# Configuration: -# -# jsvn will execute the file ~/.jsvn, if it exists, as a Python script. -# Variables written to will be used as configuration directives. -# Available configuration directives: -# use_color: True or False to enable/disable colorization of svn output -# use_pager: True or False to enable/disable automatic piping of svn -# output to a pager program -# pager: A string specifying the pager program (and args) to execute -# aliases['XXX']: A string or list defining the alias 'XXX'. A string -# can be used if the alias expands to a single argument. A -# list must be used to pass multiple arguments to svn. -# -# Configuration Examples: -# pager = 'less -FRXi' # enable case-insensitive searching in less -# aliases['revert'] = ['revert', '-R'] # default to recursive reverts -# aliases['s'] = ['status', '--ignore-externals'] -# aliases['status'] = '__status' # ignore jsvn processing of status command -# -# Author: Josh Holtrop -# -# History: -# v1.0 - functional release on github +# Please view the README file from the jsvn repository or online at +# https://github.com/holtrop/jsvn import sys import os