sapling/eden/scm/tests/test-commitcloud-debugephemeralcommit.t
Andrey Chursin addfb9f600 simple util for ephemeral commits
Summary:
Production confidence team wants a simple tool to capture current state of the repo and get a commit hash in commitcloud
ephemeralcommit achieves that by making a hidden commit and pushing it to commitcloud

Main purpose of this is to use with ephemeral fbpkg, this produces relatively low volume of commits (comparing to total commit count).

This currently does not add untracked files, but removes missing files

Usage:
```
# note that when invoking from automatic tools need to specify -q
$ hg debugephemeralcommit -q
<hash of the commit>
```

Reviewed By: quark-zju

Differential Revision: D27339320

fbshipit-source-id: 07a4ea8ff80b80ce620fb609096db97f46d383dc
2021-03-30 16:16:47 -07:00

23 lines
451 B
Perl

#chg-compatible
$ configure modern
$ newserver server
$ clone server client
$ cd client
Test pushing of specific sets of commits
$ touch xxx
$ hg add xxx
$ hg debugephemeralcommit -q
15f9adf02fffc4fac0167c73bd193dd346752d08
$ hg show 15f9adf02fffc4fac0167c73bd193dd346752d08
commit: 15f9adf02fff
user: test
date: Thu Jan 01 00:00:00 1970 +0000
files: xxx
description:
Ephemeral commit