[Bug 5745] New: hg import --exact yields crasgh
mercurial-bugs at mercurial-scm.org
mercurial-bugs at mercurial-scm.org
Fri Nov 17 14:50:36 UTC 2017
https://bz.mercurial-scm.org/show_bug.cgi?id=5745
Bug ID: 5745
Summary: hg import --exact yields crasgh
Product: Mercurial
Version: 4.3.1
Hardware: PC
OS: Windows
Status: UNCONFIRMED
Severity: feature
Priority: wish
Component: Mercurial
Assignee: bugzilla at mercurial-scm.org
Reporter: david.a.hollman at carrier.utc.com
CC: mercurial-devel at mercurial-scm.org
Created file called export using:
hg export -o export -r e8118e6e186d
The changeset being exported contained a single file deletion.
If I import it without --exact it seems to fail silently. The changset is not
imported. But if I use --exact then I get the error below.
λ hg import --exact ..\repo\export
applying ..\repo\export
** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64
bit (AMD64)]
** Mercurial Distributed SCM (version 4.3.1)
** Extensions loaded: convert, graphlog, eol, strip, transplant, rebase,
relink, extdiff
Traceback (most recent call last):
File "hg", line 61, in <module>
File "mercurial\dispatch.pyo", line 81, in run
File "mercurial\dispatch.pyo", line 162, in dispatch
File "mercurial\dispatch.pyo", line 302, in _runcatch
File "mercurial\dispatch.pyo", line 310, in _callcatch
File "mercurial\scmutil.pyo", line 150, in callcatch
File "mercurial\dispatch.pyo", line 292, in _runcatchfunc
File "mercurial\dispatch.pyo", line 896, in _dispatch
File "mercurial\dispatch.pyo", line 658, in runcommand
File "mercurial\dispatch.pyo", line 904, in _runcommand
File "mercurial\dispatch.pyo", line 893, in <lambda>
File "mercurial\util.pyo", line 1077, in check
File "mercurial\commands.pyo", line 3024, in import_
File "mercurial\cmdutil.pyo", line 1297, in tryimportone
TypeError: b2a_hex() argument 1 must be string or buffer, not None
Here's the patch file called "export":
λ type export
# HG changeset patch
# User cleanbuild
# Date 1510922542 18000
# Fri Nov 17 07:42:22 2017 -0500
# Branch xxxxx
# Node ID e8118e6e186d32642afd20bf06d0bcb0f7917692
# Parent e4f55415d598eb942d8c7f2b36bc1abc7bd312bb
remove binary from source control
diff -r e4f55415d598 -r e8118e6e186d path/to/file/filename
Binary file path/to/file/filename has changed
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list