publish =False to True, no change
Sietse Brouwer
sbbrouwer at gmail.com
Tue Nov 13 14:42:24 UTC 2018
Hi Uwe,
Uwe wrote:
> Here is my setting
> [phases]
> local publish = True
> remote publish = True
I see a mistake there: by 'local publish' I meant 'the "publish" setting
of your local respository', not 'a setting called "local publish"'.
To configure your local repository's publish setting, add this to your
local repository's config file:
[phases]
publish = True
To configure your Bitbucket (i.e. remote) repository's publish setting,
visit
https://bitbucket.org/<yourusername>/<yourrepository>/admin
and check/uncheck the checkbox marked "This is a non-publishing repository".
To see all setting files that modify your local phases.publish setting,
run this command from within your repository:
hg config --debug phases.publish
Cheers,
Sietse
On 11/10/2018 22:29, Uwe Brauer wrote:
>>>> "Sietse" == Sietse Brouwer <sbbrouwer at gmail.com> writes:
>
> From Brauer to Brouwer
>
> Thanks very for the this detailed answer, but...
>
> > Uwe Brauer wrote:
> >> After a push the changeset should be marked as public, but it is
> >> not, it is marked as draft. I wounder whether this is a bug?
>
> > A possibly helpful clarification: there are two repositories that can
> > be set to 'publish=True', namely your local and remote repository. It
> > is only the setting of the *receiving* repo that matters:
>
> > - when you push, only the publish setting of the remote repo matters
> > - when you pull, only the publish setting of the local repo matters.
>
> > I've written out the cases in full, below.
>
> > Kind regards from Brouwer to Brauer,
>
> > Sietse Brouwer
>
> > All these cases assume that you are pushing/pulling commits that are
> > in Draft phase.
>
> > Case 1:
> > local publish=True
> > remote publish=True
>
> This the case I started with.
>
> Here is my setting
> [phases]
> local publish = True
> remote publish = True
>
> And indeed
>
> hg config shows
> phases.local publish=True
> phases.remote publish=True
>
> I commit and I push then I run
> hg log -G --template "\x1B[33mcommit {rev}:{node|short}\nBranch: {branch}\nAuthor: {author}\nDate: {date|rfc822date}\nPhase: {phase}\n\n{desc}\n{nofiles}\n"
>
>
> But I see
> @ commit 4:8d5b89cf6a1d
> | Branch: feature
> | Author: Uwe Brauer <oub at mat.ucm.es>
> | Date: Thu, 11 Oct 2018 22:22:36 +0200
> | Phase: draft
> |
> | remotename out, set again the name to default.
> |
> o commit 3:9095e47420f6
> | Branch: feature
> | Author: Uwe Brauer <oub at mat.ucm.es>
> | Date: Thu, 11 Oct 2018 22:21:29 +0200
> | Phase: draft
> |
> | Add the two files and try out local/remote publish.
> |
>
>
> I clone the repo from bitbucket and all my phases are displayed as
> draft.
>
> Is this a BUG?
>
> Uwe
>
>
>
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial
>
More information about the Mercurial
mailing list