mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
Have verbose flag print the changeset hash when committing
This commit is contained in:
parent
aee5d531f1
commit
4c144a2f64
@ -587,6 +587,7 @@ def commit(ui, repo, *pats, **opts):
|
|||||||
return
|
return
|
||||||
cl = repo.changelog
|
cl = repo.changelog
|
||||||
rev = cl.rev(node)
|
rev = cl.rev(node)
|
||||||
|
ui.note(_('committed changeset %s\n') % short(node))
|
||||||
parents = cl.parentrevs(rev)
|
parents = cl.parentrevs(rev)
|
||||||
if rev - 1 in parents:
|
if rev - 1 in parents:
|
||||||
# one of the parents was the old tip
|
# one of the parents was the old tip
|
||||||
|
@ -2,10 +2,12 @@ adding dir/bar
|
|||||||
adding foo
|
adding foo
|
||||||
dir/bar
|
dir/bar
|
||||||
foo
|
foo
|
||||||
|
committed changeset d44511117907
|
||||||
adding dir/bar_2
|
adding dir/bar_2
|
||||||
adding foo_2
|
adding foo_2
|
||||||
dir/bar_2
|
dir/bar_2
|
||||||
foo_2
|
foo_2
|
||||||
|
committed changeset a85812e0561a
|
||||||
adding a
|
adding a
|
||||||
adding c
|
adding c
|
||||||
removing a
|
removing a
|
||||||
|
@ -5,6 +5,7 @@ a
|
|||||||
% test case collision on rename (issue 750)
|
% test case collision on rename (issue 750)
|
||||||
adding a
|
adding a
|
||||||
a
|
a
|
||||||
|
committed changeset 07f494440405
|
||||||
A: not overwriting - file exists
|
A: not overwriting - file exists
|
||||||
% test case collision between revisions (issue 912)
|
% test case collision between revisions (issue 912)
|
||||||
adding a
|
adding a
|
||||||
|
@ -7,10 +7,6 @@ echo foo > foo
|
|||||||
hg add foo
|
hg add foo
|
||||||
HGEDITOR=true hg commit -m ""
|
HGEDITOR=true hg commit -m ""
|
||||||
hg commit -d '0 0' -m commit-1
|
hg commit -d '0 0' -m commit-1
|
||||||
# An empty date was interpreted as epoch origin
|
|
||||||
echo foo >> foo
|
|
||||||
hg commit -d '' -m commit-no-date
|
|
||||||
hg tip --template '{date|isodate}\n' | grep '1970'
|
|
||||||
echo foo >> foo
|
echo foo >> foo
|
||||||
hg commit -d '1 4444444' -m commit-3
|
hg commit -d '1 4444444' -m commit-3
|
||||||
hg commit -d '1 15.1' -m commit-4
|
hg commit -d '1 15.1' -m commit-4
|
||||||
@ -52,6 +48,10 @@ touch quux
|
|||||||
hg commit -d '0 0' -m commit-16 quux
|
hg commit -d '0 0' -m commit-16 quux
|
||||||
echo >> dir/file
|
echo >> dir/file
|
||||||
hg -v commit -d '0 0' -m commit-17 dir/file
|
hg -v commit -d '0 0' -m commit-17 dir/file
|
||||||
|
# An empty date was interpreted as epoch origin
|
||||||
|
echo foo >> foo
|
||||||
|
hg commit -d '' -m commit-no-date
|
||||||
|
hg tip --template '{date|isodate}\n' | grep '1970'
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
echo % partial subdir commit test
|
echo % partial subdir commit test
|
||||||
|
@ -11,16 +11,19 @@ nothing changed
|
|||||||
abort: file bar not found!
|
abort: file bar not found!
|
||||||
adding dir/file
|
adding dir/file
|
||||||
dir/file
|
dir/file
|
||||||
|
committed changeset d2a76177cb42
|
||||||
adding dir.file
|
adding dir.file
|
||||||
abort: no match under directory dir!
|
abort: no match under directory dir!
|
||||||
abort: no match under directory .!
|
abort: no match under directory .!
|
||||||
abort: no match under directory ../dir2!
|
abort: no match under directory ../dir2!
|
||||||
dir/file
|
dir/file
|
||||||
|
committed changeset 1cd62a2d8db5
|
||||||
does-not-exist: No such file or directory
|
does-not-exist: No such file or directory
|
||||||
abort: file does-not-exist not found!
|
abort: file does-not-exist not found!
|
||||||
abort: file baz not tracked!
|
abort: file baz not tracked!
|
||||||
abort: file quux not tracked!
|
abort: file quux not tracked!
|
||||||
dir/file
|
dir/file
|
||||||
|
committed changeset 49176991390e
|
||||||
% partial subdir commit test
|
% partial subdir commit test
|
||||||
adding bar/bar
|
adding bar/bar
|
||||||
adding foo/foo
|
adding foo/foo
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
A b
|
A b
|
||||||
b
|
b
|
||||||
b: copy a:b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3
|
b: copy a:b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3
|
||||||
|
committed changeset 386a3cc01532
|
||||||
we should see two history entries
|
we should see two history entries
|
||||||
changeset: 1:386a3cc01532
|
changeset: 1:386a3cc01532
|
||||||
tag: tip
|
tag: tip
|
||||||
|
@ -150,4 +150,5 @@ Automatically installed hook
|
|||||||
foo
|
foo
|
||||||
calling hook commit.auto: <function autohook>
|
calling hook commit.auto: <function autohook>
|
||||||
Automatically installed hook
|
Automatically installed hook
|
||||||
|
committed changeset 52998019f625
|
||||||
hooks.commit.auto=<function autohook>
|
hooks.commit.auto=<function autohook>
|
||||||
|
@ -8,6 +8,7 @@ adding a
|
|||||||
b
|
b
|
||||||
b: searching for copy revision for a
|
b: searching for copy revision for a
|
||||||
b: copy a:b80de5d138758541c5f05265ad144ab9fa86d1db
|
b: copy a:b80de5d138758541c5f05265ad144ab9fa86d1db
|
||||||
|
committed changeset 755e75751bf6
|
||||||
checking changesets
|
checking changesets
|
||||||
checking manifests
|
checking manifests
|
||||||
crosschecking files in changesets and manifests
|
crosschecking files in changesets and manifests
|
||||||
|
@ -117,6 +117,7 @@ a
|
|||||||
b
|
b
|
||||||
overwriting a expanding keywords
|
overwriting a expanding keywords
|
||||||
running hook commit.test: cp a hooktest
|
running hook commit.test: cp a hooktest
|
||||||
|
committed changeset ef63ca68695b
|
||||||
% status
|
% status
|
||||||
? hooktest
|
? hooktest
|
||||||
% identify
|
% identify
|
||||||
@ -223,6 +224,7 @@ c
|
|||||||
c
|
c
|
||||||
c: copy a:0045e12f6c5791aac80ca6cbfd97709a88307292
|
c: copy a:0045e12f6c5791aac80ca6cbfd97709a88307292
|
||||||
overwriting c expanding keywords
|
overwriting c expanding keywords
|
||||||
|
committed changeset e22d299ac0c2
|
||||||
% cat a c
|
% cat a c
|
||||||
expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $
|
expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $
|
||||||
do not process $Id:
|
do not process $Id:
|
||||||
@ -280,6 +282,7 @@ M a
|
|||||||
% commit
|
% commit
|
||||||
a
|
a
|
||||||
overwriting a expanding keywords
|
overwriting a expanding keywords
|
||||||
|
committed changeset bb948857c743
|
||||||
% status
|
% status
|
||||||
% verify
|
% verify
|
||||||
checking changesets
|
checking changesets
|
||||||
@ -306,6 +309,7 @@ a
|
|||||||
1: xxx $
|
1: xxx $
|
||||||
2: $Xinfo$
|
2: $Xinfo$
|
||||||
% remove
|
% remove
|
||||||
|
committed changeset d14c71265376
|
||||||
% status
|
% status
|
||||||
% rollback
|
% rollback
|
||||||
rolling back last transaction
|
rolling back last transaction
|
||||||
@ -337,6 +341,7 @@ summary: firstline
|
|||||||
% commit rejecttest
|
% commit rejecttest
|
||||||
a
|
a
|
||||||
overwriting a expanding keywords
|
overwriting a expanding keywords
|
||||||
|
committed changeset 85e279d709ff
|
||||||
% export
|
% export
|
||||||
% import
|
% import
|
||||||
applying ../rejecttest.diff
|
applying ../rejecttest.diff
|
||||||
@ -360,6 +365,7 @@ abort: outstanding uncommitted changes
|
|||||||
x/a
|
x/a
|
||||||
x/a: copy a:779c764182ce5d43e2b1eb66ce06d7b47bfe342e
|
x/a: copy a:779c764182ce5d43e2b1eb66ce06d7b47bfe342e
|
||||||
overwriting x/a expanding keywords
|
overwriting x/a expanding keywords
|
||||||
|
committed changeset cfa68229c116
|
||||||
% cat a
|
% cat a
|
||||||
expand $Id: x/a cfa68229c116 Thu, 01 Jan 1970 00:00:03 +0000 user $
|
expand $Id: x/a cfa68229c116 Thu, 01 Jan 1970 00:00:03 +0000 user $
|
||||||
do not process $Id:
|
do not process $Id:
|
||||||
|
Loading…
Reference in New Issue
Block a user