Mercurial > jhg
comparison 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 |
comparison
equal
deleted
inserted
replaced
667:fba85bc1dfb8 | 668:d25f0324a27a |
---|---|
133 } | 133 } |
134 } | 134 } |
135 } | 135 } |
136 // XXX WTF is obsolete in namespaces key?? | 136 // XXX WTF is obsolete in namespaces key?? |
137 progress.worked(5); | 137 progress.worked(5); |
138 b.unlink(); // keep the file only in case of failure | |
138 } catch (IOException ex) { | 139 } catch (IOException ex) { |
139 throw new HgIOException(ex.getMessage(), null); // XXX not a nice idea to throw IOException from BundleGenerator#create | 140 throw new HgIOException(ex.getMessage(), null); // XXX not a nice idea to throw IOException from BundleGenerator#create |
140 } catch (HgRepositoryNotFoundException ex) { | 141 } catch (HgRepositoryNotFoundException ex) { |
141 final HgInvalidStateException e = new HgInvalidStateException("Failed to load a just-created bundle"); | 142 final HgInvalidStateException e = new HgInvalidStateException("Failed to load a just-created bundle"); |
142 e.initCause(ex); | 143 e.initCause(ex); |