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

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Thu Jun 13 10:57:42 UTC 2019


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 at mercurial-scm.org
          Reporter: Goetz.Pfeiffer at helmholtz-berlin.de
                CC: durin42 at gmail.com, mercurial-devel at 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:
---
--- 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)

---

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list