[Bug 4304] New: hg record can't edit new files
mercurial-bugs at selenic.com
mercurial-bugs at selenic.com
Tue Jul 15 14:26:32 CDT 2014
http://bz.selenic.com/show_bug.cgi?id=4304
Priority: normal
Bug ID: 4304
CC: mercurial-devel at selenic.com
Assignee: bugzilla at selenic.com
Summary: hg record can't edit new files
Severity: bug
Classification: Unclassified
OS: Mac OS
Reporter: durham at fb.com
Hardware: PC
Status: UNCONFIRMED
Version: 3.0
Component: record
Product: Mercurial
If a new file is added, and a user wants to commit only part of it, the record
extension is the obvious answer, but it doesn't actually allow editing a new
file. This makes simulating a git staging area a bit tricky.
$ hg init foo
$ cd foo
$ echo a > a
$ echo b >> a
$ hg add a
$ hg record
diff --git a/a b/a
new file mode 100644
examine changes to 'a'? [Ynesfdaq?] e
cannot edit patch for whole file
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list