eric6/Plugins/VcsPlugins/vcsMercurial/HgDiffGenerator.py

branch
maintenance
changeset 8043
0acf98cd089a
parent 7924
8a96736d465e
parent 7971
ff2971513d6d
child 8142
43248bafe9b2
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgDiffGenerator.py	Sun Jan 17 13:53:08 2021 +0100
+++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgDiffGenerator.py	Mon Feb 01 10:38:16 2021 +0100
@@ -59,10 +59,10 @@
         Public slot to start the hg diff command.
         
         @param fn filename to be diffed (string)
-        @keyparam versions list of versions to be diffed (list of up to
+        @param versions list of versions to be diffed (list of up to
             2 strings or None)
-        @keyparam bundle name of a bundle file (string)
-        @keyparam qdiff flag indicating qdiff command shall be used (boolean)
+        @param bundle name of a bundle file (string)
+        @param qdiff flag indicating qdiff command shall be used (boolean)
         @return flag indicating a successful start of the diff command
             (boolean)
         """
@@ -99,12 +99,11 @@
                     elif rev1 is None:
                         args.append(':{0}'.format(rev2))
         
-        if isinstance(fn, list):
-            dname, fnames = self.vcs.splitPathList(fn)
-            self.vcs.addArguments(args, fn)
-        else:
-            dname, fname = self.vcs.splitPath(fn)
-            args.append(fn)
+        if fn:
+            if isinstance(fn, list):
+                self.vcs.addArguments(args, fn)
+            else:
+                args.append(fn)
         
         self.__oldFile = ""
         self.__oldFileLine = -1

eric ide

mercurial