Patchwork [Bug,6152] New: hg convert of a darcs repository fails with darcs 2.14.1 and newer

login
register
mail settings
Submitter mercurial-bugs@mercurial-scm.org
Date June 13, 2019, 10:57 a.m.
Message ID <bug-6152-285@https.bz.mercurial-scm.org/>
Download mbox | patch
Permalink /patch/40470/
State Not Applicable
Headers show

Comments

mercurial-bugs@mercurial-scm.org - June 13, 2019, 10:57 a.m.
https://bz.mercurial-scm.org/show_bug.cgi?id=6152

            Bug ID: 6152
           Summary: hg convert of a darcs repository fails with darcs
                    2.14.1 and newer
           Product: Mercurial
           Version: 4.5.3
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: convert
          Assignee: bugzilla@mercurial-scm.org
          Reporter: Goetz.Pfeiffer@helmholtz-berlin.de
                CC: durin42@gmail.com, mercurial-devel@mercurial-scm.org

hg convert DARCSREPOSITORY 
fails with: 
---
abort: darcs exited with status 1
---

hg convert DARCSREPOSITORY --debug 
returns:
---
assuming destination bii_scripts-hg
initializing destination bii_scripts-hg repository
running: darcs --version
2.14.1 (release)
running: darcs show repo --no-files
'--repodir=/net/elbe.acc.bessy.de/srv/projects/ctl/pfeiffer/project-elbe/bii_scripts'
command line: unrecognized option `--no-files'
abort: darcs exited with status 1
---
The problem is that newer versions of darcs don't have option "--no-files" any
more. 

Fix: Change hgext/convert/darcs.py, apply this patch:
---

---

Patch

--- darcs.py.orig       2018-04-04 16:35:08.000000000 +0200
+++ darcs.py    2019-06-13 12:56:03.053721605 +0200
@@ -124,7 +124,7 @@ 
         return etree.getroot()

     def format(self):
-        output, status = self.run('show', 'repo', no_files=True,
+        output, status = self.run('show', 'repo', 
                                   repodir=self.path)
         self.checkexit(status)
         m = re.search(r'^\s*Format:\s*(.*)$', output, re.MULTILINE)