mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 07:49:11 +03:00
Revert changeset 0ba7f6134a4a2cbd767c5ec5cc497dbecf1b4e36.
I inadvertantly used "hg import" on a message I saved, expecting it to do the right thing, but instead it made the commit look like I authored it, and filled the description with the email header. Changeset 238f05c9201ffe16c81e32a55d4d6b563cc9f605 contains a guard against "hg import" doing this again.
This commit is contained in:
parent
31ab427b7b
commit
1c87d60be4
10
doc/hg.1.txt
10
doc/hg.1.txt
@ -266,16 +266,13 @@ import [-p <n> -b <base> -f] <patches>::
|
||||
|
||||
aliases: patch
|
||||
|
||||
incoming [-p] [source]::
|
||||
incoming [source]::
|
||||
Show new changesets found in the specified repo or the default
|
||||
pull repo. These are the changesets that would be pulled if a pull
|
||||
was requested.
|
||||
|
||||
Currently only local repositories are supported.
|
||||
|
||||
options:
|
||||
-p, --patch show patch
|
||||
|
||||
aliases: in
|
||||
|
||||
init [dest]::
|
||||
@ -330,14 +327,11 @@ manifest [revision]::
|
||||
The manifest is the list of files being version controlled. If no revision
|
||||
is given then the tip is used.
|
||||
|
||||
outgoing [-p] [dest]::
|
||||
outgoing [dest]::
|
||||
Show changesets not found in the specified destination repo or the
|
||||
default push repo. These are the changesets that would be pushed
|
||||
if a push was requested.
|
||||
|
||||
options:
|
||||
-p, --patch show patch
|
||||
|
||||
aliases: out
|
||||
|
||||
parents::
|
||||
|
@ -1064,7 +1064,7 @@ def import_(ui, repo, patch1, *patches, **opts):
|
||||
addremove(ui, repo, *files)
|
||||
repo.commit(files, message, user)
|
||||
|
||||
def incoming(ui, repo, source="default", **opts):
|
||||
def incoming(ui, repo, source="default"):
|
||||
"""show new changesets found in source"""
|
||||
source = ui.expandpath(source)
|
||||
other = hg.repository(ui, source)
|
||||
@ -1079,10 +1079,6 @@ def incoming(ui, repo, source="default", **opts):
|
||||
o.reverse()
|
||||
for n in o:
|
||||
show_changeset(ui, other, changenode=n)
|
||||
if opts['patch']:
|
||||
prev = other.changelog.parents(n)[0]
|
||||
dodiff(ui, ui, other, prev, n)
|
||||
ui.write("\n")
|
||||
|
||||
def init(ui, dest="."):
|
||||
"""create a new repository in the given directory"""
|
||||
@ -1164,7 +1160,7 @@ def manifest(ui, repo, rev=None):
|
||||
for f in files:
|
||||
ui.write("%40s %3s %s\n" % (hex(m[f]), mf[f] and "755" or "644", f))
|
||||
|
||||
def outgoing(ui, repo, dest="default-push", **opts):
|
||||
def outgoing(ui, repo, dest="default-push"):
|
||||
"""show changesets not found in destination"""
|
||||
dest = ui.expandpath(dest)
|
||||
other = hg.repository(ui, dest)
|
||||
@ -1173,10 +1169,6 @@ def outgoing(ui, repo, dest="default-push", **opts):
|
||||
o.reverse()
|
||||
for n in o:
|
||||
show_changeset(ui, repo, changenode=n)
|
||||
if opts['patch']:
|
||||
prev = repo.changelog.parents(n)[0]
|
||||
dodiff(ui, ui, repo, prev, n)
|
||||
ui.write("\n")
|
||||
|
||||
def parents(ui, repo, rev=None):
|
||||
"""show the parents of the working dir or revision"""
|
||||
@ -1671,9 +1663,7 @@ table = {
|
||||
('b', 'base', "", 'base path'),
|
||||
('m', 'mail-like', None, 'apply a patch that looks like email')],
|
||||
"hg import [-f] [-p NUM] [-b BASE] PATCH..."),
|
||||
"incoming|in": (incoming,
|
||||
[('p', 'patch', None, 'show patch')],
|
||||
'hg incoming [-p] [SOURCE]'),
|
||||
"incoming|in": (incoming, [], 'hg incoming [SOURCE]'),
|
||||
"^init": (init, [], 'hg init [DEST]'),
|
||||
"locate":
|
||||
(locate,
|
||||
@ -1691,9 +1681,7 @@ table = {
|
||||
('p', 'patch', None, 'show patch')],
|
||||
'hg log [-I] [-X] [-r REV]... [-p] [FILE]'),
|
||||
"manifest": (manifest, [], 'hg manifest [REV]'),
|
||||
"outgoing|out": (outgoing,
|
||||
[('p', 'patch', None, 'show patch')],
|
||||
'hg outgoing [-p] [DEST]'),
|
||||
"outgoing|out": (outgoing, [], 'hg outgoing [DEST]'),
|
||||
"parents": (parents, [], 'hg parents [REV]'),
|
||||
"paths": (paths, [], 'hg paths [NAME]'),
|
||||
"^pull":
|
||||
|
Loading…
Reference in New Issue
Block a user