https://bz.mercurial-scm.org/show_bug.cgi?id=5375

            Bug ID: 5375
           Summary: hg import crash
           Product: Mercurial
           Version: default branch
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzi...@selenic.com
          Reporter: r...@fb.com
                CC: mercurial-de...@selenic.com

This crashes hg:

echo -e "diff --git a/a b/b\nrename from a\nrename to b" | hg import -

Stacktrace:

+  applying patch from stdin
+  a not tracked!
+  ** unknown exception encountered, please report by visiting
+  ** https://mercurial-scm.org/wiki/BugTracker
+  ** Python 2.7.5 (default, Nov 20 2015, 02:00:19) [GCC 4.8.5 20150623 (Red
Hat 4.8.5-4)]
+  ** Mercurial Distributed SCM (version 3.9+200-e2b35a4ff9c3)
+  ** Extensions loaded:
+  Traceback (most recent call last):
+    File "/data/users/rmcelroy/facebook-hg-rpms/hg-crew/hg", line 45, in
<module>
+      mercurial.dispatch.run()
+    File
"/data/users/rmcelroy/facebook-hg-rpms/hg-crew/mercurial/dispatch.py", line 60,
in run
+      sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
+    File
"/data/users/rmcelroy/facebook-hg-rpms/hg-crew/mercurial/dispatch.py", line
126, in dispatch
+      ret = _runcatch(req)
+    File
"/data/users/rmcelroy/facebook-hg-rpms/hg-crew/mercurial/dispatch.py", line
216, in _runcatch
+      return callcatch(ui, _runcatchfunc)
+    File
"/data/users/rmcelroy/facebook-hg-rpms/hg-crew/mercurial/dispatch.py", line
225, in callcatch
+      return func()
+    File
"/data/users/rmcelroy/facebook-hg-rpms/hg-crew/mercurial/dispatch.py", line
205, in _runcatchfunc
+      return _dispatch(req)
+    File
"/data/users/rmcelroy/facebook-hg-rpms/hg-crew/mercurial/dispatch.py", line
897, in _dispatch
+      cmdpats, cmdoptions)
+    File
"/data/users/rmcelroy/facebook-hg-rpms/hg-crew/mercurial/dispatch.py", line
650, in runcommand
+      ret = _runcommand(ui, options, cmd, d)
+    File
"/data/users/rmcelroy/facebook-hg-rpms/hg-crew/mercurial/dispatch.py", line
906, in _runcommand
+      return cmdfunc()
+    File
"/data/users/rmcelroy/facebook-hg-rpms/hg-crew/mercurial/dispatch.py", line
894, in <lambda>
+      d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
+    File "/data/users/rmcelroy/facebook-hg-rpms/hg-crew/mercurial/util.py",
line 1035, in check
+      return func(*args, **kwargs)
+    File
"/data/users/rmcelroy/facebook-hg-rpms/hg-crew/mercurial/commands.py", line
4963, in import_
+      msgs, hg.clean)
+    File "/data/users/rmcelroy/facebook-hg-rpms/hg-crew/mercurial/cmdutil.py",
line 998, in tryimportone
+      files=files, eolmode=None, similarity=sim / 100.0)
+    File "/data/users/rmcelroy/facebook-hg-rpms/hg-crew/mercurial/patch.py",
line 2099, in patch
+      similarity)
+    File "/data/users/rmcelroy/facebook-hg-rpms/hg-crew/mercurial/patch.py",
line 2072, in internalpatch
+      return patchbackend(ui, backend, patchobj, strip, prefix, files,
eolmode)
+    File "/data/users/rmcelroy/facebook-hg-rpms/hg-crew/mercurial/patch.py",
line 2057, in patchbackend
+      eolmode=eolmode)
+    File "/data/users/rmcelroy/facebook-hg-rpms/hg-crew/mercurial/patch.py",
line 1908, in applydiff
+      prefix=prefix, eolmode=eolmode)
+    File "/data/users/rmcelroy/facebook-hg-rpms/hg-crew/mercurial/patch.py",
line 1954, in _applydiff
+      assert data is not None
+  AssertionError
+  [1]

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to