Re: [asterisk-users] Gerrit usage?

2017-09-29 Thread Richard Mudgett
On Fri, Sep 29, 2017 at 10:16 AM, Daniel Tryba  wrote:

> I'm trying to figure out how to commit some code for review. Following:
> https://wiki.asterisk.org/wiki/display/AST/Gerrit+Usage
>
> Created a ssh alias.
> Cloned using: "git clone ssh://asterisk/asterisk"
> Set name and email.
> Installed the gerrit commit hook: "git review -s"
> Try to change to asterisk 13 for creating a patch: "git checkout 13"
> This fails with:
> error: pathspec '13' did not match any file(s) known to git.
>
>
> "git checkout -b 13" appears to fix this.
>
> Created a new branch:
> git checkout -b ASTERISK-27284
>
> Did some work, added and commited this work. So far so good.
>
> Now trying to submit this: "git review 13"
> Fails with:
>
> >Errors running git rebase -p -i remotes/gerrit/13
> >error: could not apply 5760526... Update UPGRADE.txt for 13 branch
> >
> >When you have resolved this problem, run "git rebase --continue".
> >If you prefer to skip this patch, run "git rebase --skip" instead.
> >To check out the original branch and stop rebasing, run "git rebase
> >--abort".
> >Could not pick 5760526f69ad02189c8e385e2e974be4cba11b6e
> >It is likely that your change has a merge conflict. You may resolve it
> >in the working tree now as described above and then run 'git review'
> >again, or if you do not want to resolve it yet (note that the change can
> >not merge until the conflict is resolved) you may run 'git rebase
> >--abort' then 'git review -R' to upload the change without rebasing.
>
>
> Somehow some way, UPGRADE.txt and UPGRADE-13.txt are changed and I can't
> find any way to discard/ignore/remove/skip these changes. Clearly I
> don't understand git and the way it handles conflicts it created by
> itself.
>
> What is going wrong? What is the magical git command to just commit the
> 2 files I added/commited for review?
>

>From the information you provided in your email, what I suspect happened is
you
simply cloned the Asterisk git repository.  By default the current branch
is the master
branch.  You then did a "git checkout -b 13" which creates a local branch
called "13"
based off of the currently checked out "master" branch.  This "13" branch
is just
another branch of master and not a real 13 branch.  When you tried to put
it up for review
to the real 13 branch using "git review 13", git tried to merge your master
"13" branch
onto the real 13 branch and failed because of conflicts.

Richard
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Gerrit usage?

2017-09-29 Thread Joshua Colp
On Fri, Sep 29, 2017, at 12:16 PM, Daniel Tryba wrote:
> I'm trying to figure out how to commit some code for review. Following:
> https://wiki.asterisk.org/wiki/display/AST/Gerrit+Usage
> 
> Created a ssh alias.
> Cloned using: "git clone ssh://asterisk/asterisk"
> Set name and email.
> Installed the gerrit commit hook: "git review -s"
> Try to change to asterisk 13 for creating a patch: "git checkout 13"
> This fails with:
> error: pathspec '13' did not match any file(s) known to git.
> 
> 
> "git checkout -b 13" appears to fix this.

This did not create a branch from 13. This created a branch named "13"
from the branch you were on, which was most likely master. That is why
your "git review" is not working as you expect, because you are telling
it that you did the work against "13" but it really was against master.

git checkout -b 13 origin/13

Would create a local branch "13" which is from the remote branch "13".
You'll need to do this, or do your "git review" against master and then
cherry pick from inside Gerrit to the appropriate branches.

-- 
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Gerrit usage?

2017-09-29 Thread Daniel Tryba
I'm trying to figure out how to commit some code for review. Following:
https://wiki.asterisk.org/wiki/display/AST/Gerrit+Usage

Created a ssh alias.
Cloned using: "git clone ssh://asterisk/asterisk"
Set name and email.
Installed the gerrit commit hook: "git review -s"
Try to change to asterisk 13 for creating a patch: "git checkout 13"
This fails with:
error: pathspec '13' did not match any file(s) known to git.


"git checkout -b 13" appears to fix this.

Created a new branch:
git checkout -b ASTERISK-27284

Did some work, added and commited this work. So far so good.

Now trying to submit this: "git review 13"
Fails with:

>Errors running git rebase -p -i remotes/gerrit/13
>error: could not apply 5760526... Update UPGRADE.txt for 13 branch
>
>When you have resolved this problem, run "git rebase --continue".
>If you prefer to skip this patch, run "git rebase --skip" instead.
>To check out the original branch and stop rebasing, run "git rebase
>--abort".
>Could not pick 5760526f69ad02189c8e385e2e974be4cba11b6e
>It is likely that your change has a merge conflict. You may resolve it
>in the working tree now as described above and then run 'git review'
>again, or if you do not want to resolve it yet (note that the change can
>not merge until the conflict is resolved) you may run 'git rebase
>--abort' then 'git review -R' to upload the change without rebasing.


Somehow some way, UPGRADE.txt and UPGRADE-13.txt are changed and I can't
find any way to discard/ignore/remove/skip these changes. Clearly I
don't understand git and the way it handles conflicts it created by
itself.

What is going wrong? What is the magical git command to just commit the
2 files I added/commited for review?

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Is it safe to reload pbx_lua.so while there have active calls ?

2017-09-29 Thread 陈杨文
Is it safe to reload pbx_lua.so while there have active calls ?
I changed the extension for debugging. No in use extension has been changed,
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users