jenndhemus / editra-plugins

Automatically exported from code.google.com/p/editra-plugins
0 stars 0 forks source link

[projects] Contents of bzr subdirectories on Windows always show unmodified #105

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What Plugin does this relate to? What version of the Plugin?
Projects

What steps will reproduce the problem?
1. Modify a versioned file in a subdirectory of a bzr repository
2.
3.

What is the expected output? What do you see instead?
The file should show as modified.
It actually shows as unmodified.

What version of Editra are you using? On what operating system?
Editra 0.4.88
Projects 1.1
Windows XP sp3 (the bug is specific to Windows)
Python 2.5.2
wxPython 2.8.9.2

Please provide any additional information below.

This is caused by the way bzr outputs file lists.  The plugin assumes that
the platform specific path separator will be used, whereas in fact bzr uses
a forward slash even on Windows.

This can be fixed by replacing:

                fname = fname.strip().rstrip(os.sep)

with:

                fname = fname.replace('/', os.sep).strip().rstrip(os.sep)

in BZR.status in BZR.py

I've tested this on both Windows and Linux.

Original issue reported on code.google.com by idcoll...@gmail.com on 5 May 2009 at 6:55

GoogleCodeExporter commented 8 years ago
applied

Thanks,

cody

Original comment by CodyPrec...@gmail.com on 6 May 2009 at 12:11