87ad3858e9
Change-Id: I9e7f1d79939a52f44e72a6823fe9ca4c8a5064c6
55 lines
1.2 KiB
Plaintext
55 lines
1.2 KiB
Plaintext
= gerrit sequence set
|
|
|
|
== NAME
|
|
gerrit sequence set - Set new sequence value.
|
|
|
|
== SYNOPSIS
|
|
[verse]
|
|
--
|
|
_ssh_ -p <port> <host> _gerrit sequence set_ <NAME> <VALUE>
|
|
--
|
|
|
|
== DESCRIPTION
|
|
Gerrit maintains the generation of the next available sequence numbers for
|
|
account, group and change entities. The sequences are stored as UTF-8 text in
|
|
a blob pointed to by the `refs/sequences/accounts`, `refs/sequences/groups`
|
|
and `refs/sequences/changes` refs. Those refs are stored in `All-Users` and
|
|
`All-Projects` git repositories correspondingly.
|
|
|
|
This command allows to set a new sequence value for those sequences.
|
|
|
|
The link:cmd-sequence-show.html[sequence-show] command displays current
|
|
sequence value.
|
|
|
|
== ACCESS
|
|
Caller must be a member of the privileged 'Administrators' group.
|
|
|
|
== SCRIPTING
|
|
This command is intended to be used in scripts.
|
|
|
|
== OPTIONS
|
|
<NAME>::
|
|
Sequence name to set a new value for.
|
|
Currently supported values:
|
|
* accounts
|
|
* groups
|
|
* changes
|
|
|
|
<VALUE>::
|
|
New value for the sequence.
|
|
|
|
== EXAMPLES
|
|
Set a new value for the 'changes' sequence:
|
|
|
|
----
|
|
$ ssh -p 29418 review.example.com gerrit sequence set changes 42
|
|
The value for the changes sequence was set to 42.
|
|
----
|
|
|
|
GERRIT
|
|
------
|
|
Part of link:index.html[Gerrit Code Review]
|
|
|
|
SEARCHBOX
|
|
---------
|