diff -r fffa9f17c3ef -r dbff8c119cf6 hgext/patchbomb.py --- a/hgext/patchbomb.py Wed Mar 19 00:19:54 2014 +0100 +++ b/hgext/patchbomb.py Mon Apr 07 23:10:20 2014 +0200 @@ -291,7 +291,11 @@ return [str(r) for r in revs] def getpatches(revs): + prev = repo['.'].rev() for r in scmutil.revrange(repo, revs): + if r == prev and (repo[None].files() or repo[None].deleted()): + ui.warn(_('warning: working directory has ' + 'uncommitted changes\n')) output = cStringIO.StringIO() cmdutil.export(repo, [r], fp=output, opts=patch.diffopts(ui, opts))