Rev 346: Removing directory doesn't always work. in http://people.samba.org/bzr/jelmer/bzr-svn/bzr.dev

Jelmer Vernooij jelmer at samba.org
Mon Jan 1 02:55:09 GMT 2007


------------------------------------------------------------
revno: 346
revision-id: jelmer at samba.org-20070101025448-xsv2sdp4yzw12s01
parent: jelmer at samba.org-20070101024256-4j04d2s9gk0p1m9e
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: main
timestamp: Mon 2007-01-01 03:54:48 +0100
message:
  Removing directory doesn't always work.
modified:
  convert.py                     svn2bzr.py-20051018015439-cb4563bff29e632d
=== modified file 'convert.py'
--- a/convert.py	2007-01-01 00:59:21 +0000
+++ b/convert.py	2007-01-01 02:54:48 +0000
@@ -104,12 +104,8 @@
                 except NotBranchError:
                     source_branch = Branch.open("%s/%s" % (url, branch))
                     os.makedirs(target_dir)
-                    try:
-                        source_branch.bzrdir.sprout(target_dir, 
+                    source_branch.bzrdir.sprout(target_dir, 
                                                 source_branch.last_revision())
-                    except:
-                        os.rmdir(target_dir)
-                        raise
                 i+=1
         finally:
             pb.finished()




More information about the bazaar-commits mailing list