convert: don't pass --no-files to "darcs show repo" command
authorYuya Nishihara <yuya@tcha.org>
Sat, 23 Jun 2018 19:23:53 +0900
changeset 38466 2c2e82469b89
parent 38465 a8f99334ae31
child 38467 09b09fe7ee90
convert: don't pass --no-files to "darcs show repo" command The test fails with darcs 2.14.0 because --no-files is no longer supported. It was removed at the patch 97973a52bf496657558412562d6fad2ee651b1e0, which says "show repo: removed --files option, removed manual flags parsing." As far as I can tell, --no-files was specified just for optimization, so old darcs should work without it.
hgext/convert/darcs.py
--- a/hgext/convert/darcs.py	Tue May 29 00:15:44 2018 +0200
+++ b/hgext/convert/darcs.py	Sat Jun 23 19:23:53 2018 +0900
@@ -126,8 +126,7 @@
         return etree.getroot()
 
     def format(self):
-        output, status = self.run('show', 'repo', no_files=True,
-                                  repodir=self.path)
+        output, status = self.run('show', 'repo', repodir=self.path)
         self.checkexit(status)
         m = re.search(r'^\s*Format:\s*(.*)$', output, re.MULTILINE)
         if not m: