summaryrefslogtreecommitdiff
path: root/unclean.d
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2012-04-20 13:38:26 -0400
committerJoey Hess <joey@kitenet.net>2012-04-20 13:38:26 -0400
commit40eeedebb6be23035aea9d15aed1be706479ce79 (patch)
tree4fa62701c24a00202156d99fc48ccfa4c8bcca5a /unclean.d
parenta9cbf1185ddcc462fce11788c395725ea2d294b6 (diff)
bzr: Improve detection of unclean repos, to work when there are shelved changes.
Diffstat (limited to 'unclean.d')
-rwxr-xr-xunclean.d/50test2
1 files changed, 1 insertions, 1 deletions
diff --git a/unclean.d/50test b/unclean.d/50test
index 173d6e2..e52003f 100755
--- a/unclean.d/50test
+++ b/unclean.d/50test
@@ -6,7 +6,7 @@ if [ "$VCS" = git ]; then
elif [ "$VCS" = hg ]; then
[ -d .hg ] && ! hg status 2>&1 | wc -l | grep -q "^0$"
elif [ "$VCS" = bzr ]; then
- [ -d .bzr ] && ! bzr status 2>/dev/null | wc -l | grep -q "^0$"
+ [ -d .bzr ] && ! bzr version-info --custom --template="{clean}\n" | grep -q "^1$"
elif [ "$VCS" = darcs ]; then
[ -d _darcs ] && darcs whatsnew -l >/dev/null
fi