[meld] Pass absolute paths on single-file VC open (actually closes bgo#650074)



commit d67b86209c70d01d2c2a966ff5a7dfc1d0ab2eb7
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Tue May 24 07:56:36 2011 +1000

    Pass absolute paths on single-file VC open (actually closes bgo#650074)

 meld/meldwindow.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/meld/meldwindow.py b/meld/meldwindow.py
index 9d84379..4f5e201 100644
--- a/meld/meldwindow.py
+++ b/meld/meldwindow.py
@@ -650,6 +650,7 @@ class MeldWindow(gnomeglade.Component):
             self.scheduler.remove_scheduler(doc.scheduler)
         self.scheduler.add_task(cleanup)
         self.scheduler.add_scheduler(doc.scheduler)
+        path = os.path.abspath(path)
         doc.set_location(path)
         doc.connect("create-diff", lambda obj,arg: self.append_diff(arg))
         doc.run_diff([path])



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]