Starting another plugin project
I have looked over your plugin and a the code from push and update. My company wanted to auto update a bound master location so that everyone can see changes in the code. They did not desire to use branching and management prefers the "central" repository method like SVN, SourceSafe, etc. So I created a plugin that updates on post-commit on the master location. This may be a bad post-commit operation, but I wanted to know how I could share the plugin if it was a safe idea and others desired it. It seems I should also check if it is bound to a central location.
"""Update master from bound checkout plugin for Bazaar"""
import subprocess
from bzrlib import (
branch,
bzrdir,
errors,
)
def update_
"""Update the target branch's working copy.
Code borrowed from bzr-automirror."""
print 'Trying to call updatemaster on Master repository . . .'
# Place the following two in a precommit hook so that it works there
#lt = master.
#lt.update()
try:
wt = master.
wt.update()
except errors:
print 'Cannot update Master repository. See other errors.'
else:
print 'Master repository updated.'
branch.
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask m1st0 for more information if necessary.