Check-in [c3d2bbcf1a]

The development has migrated to github


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

Overview
Comment:Now remove unversionned file when saving
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:c3d2bbcf1a94797703e607294236b1b57d2021a0
User & Date: bapt 2013-06-21 09:35:00
Context
2013-06-21
09:39
Implement stash save -u check-in: 41dda1b627 user: bapt tags: trunk
09:35
Now remove unversionned file when saving check-in: c3d2bbcf1a user: bapt tags: trunk
2013-06-14
12:21
save: Speedup by only running 'svn status' on specified files check-in: b5c33a11fb user: bryan tags: trunk
Changes

Changes to stash.

61
62
63
64
65
66
67

68
69
70
71
72
73
74
	[ ! -f "${patch}" ] || err 1 "A patch named $1 already exists"
	shift
	files="$@"
	changes=$(svn st -q ${files})
	[ "${changes}" != "" ] || err 1 "No changes to save"
	svn diff --git ${files:-.} > "${patch}"
	svn revert --depth=infinity ${files:-.}

	echo "stashed"
	exit 0
}

list() {
	for p in ${patchdir}/*.patch; do
		[ "$p" = "${patchdir}/*.patch" ] && break







>







61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
	[ ! -f "${patch}" ] || err 1 "A patch named $1 already exists"
	shift
	files="$@"
	changes=$(svn st -q ${files})
	[ "${changes}" != "" ] || err 1 "No changes to save"
	svn diff --git ${files:-.} > "${patch}"
	svn revert --depth=infinity ${files:-.}
	svn st ${files} | awk '/^?/ { print $1 }' | xargs rm -f
	echo "stashed"
	exit 0
}

list() {
	for p in ${patchdir}/*.patch; do
		[ "$p" = "${patchdir}/*.patch" ] && break