Commit 5cef5640 authored by Christophe Dumez's avatar Christophe Dumez

- added "show unmodified files" feature. Usefull to watch infos/history of an unmodified file)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7247 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 80f59a19
......@@ -832,7 +832,7 @@ class SubversionTool(BaseTool, UniqueObject, Folder):
for file in list:
removeAll(file)
def getModifiedTree(self, bt) :
def getModifiedTree(self, bt, show_unmodified=False) :
# Remove trailing slash if it's present
path = self.getSubversionPath(bt)
root = Dir(path, "normal")
......@@ -841,7 +841,7 @@ class SubversionTool(BaseTool, UniqueObject, Folder):
for statusObj in self.status(path) :
# can be (normal, added, modified, deleted, conflicted, unversioned)
msg_status = statusObj.getTextStatus()
if str(msg_status) != "normal" and str(msg_status) != "unversioned":
if (show_unmodified or str(msg_status) != "normal") and str(msg_status) != "unversioned":
somethingModified = True
full_path = statusObj.getPath()
full_path_list = full_path.split(os.sep)[1:]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment