diff options
author | Loïc Minier <lool@dooz.org> | 2011-01-28 13:20:37 +0100 |
---|---|---|
committer | Loïc Minier <lool@dooz.org> | 2011-01-28 13:20:37 +0100 |
commit | c78712e4631fe1e751aad6a316c4b757723c4f34 (patch) | |
tree | eaee038da5312fdff4f12779974342409f2e002c /do-release | |
parent | 5acc7dd4ed24fdf23ad920f294875686b014f828 (diff) |
Check whether tree is dirty with bzr status before rolling a release.
Diffstat (limited to 'do-release')
-rwxr-xr-x | do-release | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -29,8 +29,13 @@ if [ -z "$version" ]; then exit 1 fi +status=`bzr status` +if [ -n "$status" ]; then + die "Tree is dirty according to bzr status" +fi + if bzr tags | awk '{print $1}' | grep -qFx "$version"; then - die "Tag $version already exists; aborting" + die "Tag $version already exists" fi log_i "Creating tag $version" |