Commit Graph

5 Commits

Author SHA1 Message Date
Saurabh Singh
c5a2f465ca globalrevs: support global revs for commits created using hgsubversion
Summary:
This commit enables embedding global revisions in commits created via
the `hgsubversion` extension.

Reviewed By: quark-zju

Differential Revision: D8925897

fbshipit-source-id: 17f320dd7b6ca560acb78ba8e5ee26a8a3a6b045
2018-07-23 18:53:16 -07:00
Saurabh Singh
6abe49da8c globalrevs: allow making commits without using pushrebase
Summary:
As an intermediate step in conversion of the `WWW` repository to being
an Mercurial only repository, we will be modifying the `hgsubversion` extension
to start supporting `globalrev` in the commits pulled from the source
Subversion repository.

The `globalrevs` extension needs to allow for creation of commit through means
other than pushrebase for this process to succeed. Therefore, let's introduce a
configuration option for this purpose.

Reviewed By: quark-zju

Differential Revision: D8925894

fbshipit-source-id: ecb253828c0801c1c39f57ccaf2e11992a924e63
2018-07-23 12:58:58 -07:00
Saurabh Singh
b8c1e8b8eb globalrevs: use configitem for configuration defaults.
Summary:
This commit just uses the `configitem` to specify the default for the
configurations items relating to `globalrevs` extension.

Reviewed By: quark-zju

Differential Revision: D8925901

fbshipit-source-id: 6d4cf10a2e623b94d3a94eeb1f411d784374a4d5
2018-07-23 12:58:57 -07:00
Saurabh Singh
b5146cfbfe globalrevs: only wrap pushrebase commit logic if repository is on server
Summary:
Rather than having a comment which specifies that this code path won't
be hit on the client, it's probably better to only execute the new code if the
repository is on the server.

Reviewed By: quark-zju

Differential Revision: D8925902

fbshipit-source-id: 9404ad9e33f95f580d04d5aa3d40225ecc1dc7b4
2018-07-23 12:58:56 -07:00
Saurabh Singh
1f24212cb0 globalrevs: introduce extension for strictly increasing revision numbers
Summary:
With the `globalrevs` extension enabled, Mercurial starts adding a
strictly increasing revision number to each commit which is accessible through
the `globalrev` template.

Reviewed By: DurhamG

Differential Revision: D8364387

fbshipit-source-id: 84bd43f56b9cb1c775cffb875501dd64d10ffa42
2018-06-28 08:19:22 -07:00