[Pkg-bazaar-commits] ./bzr/unstable r262: - gen_file_id: break the file on either / or \ when looking

Martin Pool mbp at sourcefrog.net
Fri Apr 10 07:51:35 UTC 2009


------------------------------------------------------------
revno: 262
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Fri 2005-04-15 12:50:53 +1000
message:
  - gen_file_id: break the file on either / or \ when looking
    for a safe prefix of the name
modified:
  NEWS
  bzrlib/branch.py
-------------- next part --------------
=== modified file 'NEWS'
--- a/NEWS	2005-04-15 02:50:12 +0000
+++ b/NEWS	2005-04-15 02:50:53 +0000
@@ -49,6 +49,9 @@
     * Fix opening of ~/.bzr.log on Windows.  Patch from Andrew
       Bennetts.
 
+    * Some improvements in handling paths on Windows, based on a patch
+      from QuantumG.
+
 
 bzr-0.0.3  2005-04-06
 

=== modified file 'bzrlib/branch.py'
--- a/bzrlib/branch.py	2005-04-15 02:38:27 +0000
+++ b/bzrlib/branch.py	2005-04-15 02:50:53 +0000
@@ -1004,6 +1004,9 @@
     idx = name.rfind('/')
     if idx != -1:
         name = name[idx+1 : ]
+    idx = name.rfind('\\')
+    if idx != -1:
+        name = name[idx+1 : ]
 
     name = name.lstrip('.')
 



More information about the Pkg-bazaar-commits mailing list