##// END OF EJS Templates
record: return code from underlying commit
Philippe Pepiot -
r30158:1baa0e2c default
parent child Browse files
Show More
@@ -70,7 +70,7 b' def record(ui, repo, *pats, **opts):'
70 backup = ui.backupconfig('experimental', 'crecord')
70 backup = ui.backupconfig('experimental', 'crecord')
71 try:
71 try:
72 ui.setconfig('experimental', 'crecord', False, 'record')
72 ui.setconfig('experimental', 'crecord', False, 'record')
73 commands.commit(ui, repo, *pats, **opts)
73 return commands.commit(ui, repo, *pats, **opts)
74 finally:
74 finally:
75 ui.restoreconfig(backup)
75 ui.restoreconfig(backup)
76
76
@@ -77,6 +77,7 b' Select no files'
77 examine changes to 'empty-rw'? [Ynesfdaq?] n
77 examine changes to 'empty-rw'? [Ynesfdaq?] n
78
78
79 no changes to record
79 no changes to record
80 [1]
80
81
81 $ hg tip -p
82 $ hg tip -p
82 changeset: -1:000000000000
83 changeset: -1:000000000000
General Comments 0
You need to be logged in to leave comments. Login now