Check-in [ab8c12317a]

The development has migrated to github


Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix some typos Submitted by: decke
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:ab8c12317a08ad8b5c06669078ed15925161c1f6
User & Date: bapt 2013-06-21 11:44:44
Context
2013-06-21
12:14
Fix stash save usage check-in: 281f532334 user: bapt tags: trunk
11:44
Fix some typos Submitted by: decke check-in: ab8c12317a user: bapt tags: trunk
11:40
stash sync means svn up for svn. check-in: 9099093e75 user: bapt tags: trunk
Changes

Changes to stash.

38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
...
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
Available cmds:
ls      - display all stashed patshes
show    - view a given patch
save    - save a new patch
apply   - apply a given patch
rm      - delete a given patch from the queue
pop     - apply a patch and delete it
push    - push on freefall
help    - show help" >&2
}

export LC_ALL=C

[ -x `which svn` ] || err 1 "svn is not installed on this system"
svnrp=$(svn info 2>&1 | sed -n 's/Working Copy Root Path: \(.*\)/\1/p')
................................................................................
	cd ${svnrp}
	svn patch --strip 1 "${patch}"
	remove $1
	exit 0
}

push() {
	[ $# -eq 1 ] || err 1 "Usage: stash pop <name>"
	patch="${patchdir}/$1.patch"
	[ -f "${patch}" ] || err 1 "$1: no such patch"
	cd ${svnrp}
	scp "${patch}" freefall.freebsd.org:public_html
	exit 0
}

sync() {
	[ -n "${VCS}" ] || err 1 "the stash is not being versionned"
	cd ${patchdir}
	case ${VCS} in
	hg) hg pull -u && hg push ;;
	git) git pull -r && git push ;;
	fossil) fossil sync && fossil update ;;
	svn) svn update ;;
	esac







|







 







|








|







38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
...
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
Available cmds:
ls      - display all stashed patshes
show    - view a given patch
save    - save a new patch
apply   - apply a given patch
rm      - delete a given patch from the queue
pop     - apply a patch and delete it
push    - push patches to a remote site
help    - show help" >&2
}

export LC_ALL=C

[ -x `which svn` ] || err 1 "svn is not installed on this system"
svnrp=$(svn info 2>&1 | sed -n 's/Working Copy Root Path: \(.*\)/\1/p')
................................................................................
	cd ${svnrp}
	svn patch --strip 1 "${patch}"
	remove $1
	exit 0
}

push() {
	[ $# -eq 1 ] || err 1 "Usage: stash push <name>"
	patch="${patchdir}/$1.patch"
	[ -f "${patch}" ] || err 1 "$1: no such patch"
	cd ${svnrp}
	scp "${patch}" freefall.freebsd.org:public_html
	exit 0
}

sync() {
	[ -n "${VCS}" ] || err 1 "the stash is not being versioned"
	cd ${patchdir}
	case ${VCS} in
	hg) hg pull -u && hg push ;;
	git) git pull -r && git push ;;
	fossil) fossil sync && fossil update ;;
	svn) svn update ;;
	esac