Mercurial > hg4j
diff src/org/tmatesoft/hg/core/HgPushCommand.java @ 668:d25f0324a27a
Delete bundle with push/pull changes once command completes successfully. Test for bundle generator
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 11 Jul 2013 18:41:40 +0200 |
parents | ae2d439fbed3 |
children | 52af7f62e731 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgPushCommand.java Thu Jul 11 17:54:08 2013 +0200 +++ b/src/org/tmatesoft/hg/core/HgPushCommand.java Thu Jul 11 18:41:40 2013 +0200 @@ -135,6 +135,7 @@ } // XXX WTF is obsolete in namespaces key?? progress.worked(5); + b.unlink(); // keep the file only in case of failure } catch (IOException ex) { throw new HgIOException(ex.getMessage(), null); // XXX not a nice idea to throw IOException from BundleGenerator#create } catch (HgRepositoryNotFoundException ex) {