meld r1209 - trunk/vc



Author: vincele
Date: Tue Mar  3 00:03:28 2009
New Revision: 1209
URL: http://svn.gnome.org/viewvc/meld?rev=1209&view=rev

Log:
Fix VC relative path single file diff'ing


Modified:
   trunk/vc/bzr.py
   trunk/vc/darcs.py
   trunk/vc/git.py
   trunk/vc/mercurial.py

Modified: trunk/vc/bzr.py
==============================================================================
--- trunk/vc/bzr.py	(original)
+++ trunk/vc/bzr.py	Tue Mar  3 00:03:28 2009
@@ -50,8 +50,6 @@
         return [self.CMD,"rm"]
     def revert_command(self):
         return [self.CMD,"revert"]
-    def get_working_directory(self, workdir):
-        return self.root
 
     def cache_inventory(self, rootdir):
         self._tree_cache = self.lookup_tree(rootdir)

Modified: trunk/vc/darcs.py
==============================================================================
--- trunk/vc/darcs.py	(original)
+++ trunk/vc/darcs.py	Tue Mar  3 00:03:28 2009
@@ -71,9 +71,6 @@
         # will not work, since darcs needs interaction it seems
         return [self.CMD, "revert", "-a"]
 
-    def get_working_directory(self, workdir):
-        return self.root
- 
     def cache_inventory(self, rootdir):
         self._cached_statuses = self._calculate_statuses()
 

Modified: trunk/vc/git.py
==============================================================================
--- trunk/vc/git.py	(original)
+++ trunk/vc/git.py	Tue Mar  3 00:03:28 2009
@@ -62,11 +62,6 @@
         return [self.CMD,"rm"]
     def revert_command(self):
         return [self.CMD,"checkout"]
-    def get_working_directory(self, workdir):
-        if workdir.startswith("/"):
-            return self.root
-        else:
-            return ''
 
     def cache_inventory(self, topdir):
         self._tree_cache = self.lookup_tree()

Modified: trunk/vc/mercurial.py
==============================================================================
--- trunk/vc/mercurial.py	(original)
+++ trunk/vc/mercurial.py	Tue Mar  3 00:03:28 2009
@@ -45,8 +45,6 @@
         return [self.CMD,"rm"]
     def revert_command(self):
         return [self.CMD,"revert"]
-    def get_working_directory(self, workdir):
-        return self.root
 
     def _get_dirsandfiles(self, directory, dirs, files):
 



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