programatically marking conflicts as resolved

Martin Pool mbp at sourcefrog.net
Sun Nov 4 14:47:56 GMT 2007


On 11/4/07, Sandy Dunlop <sandy.dunlop at gmail.com> wrote:
> Hi,
> If I have a WorkingTree object, and a file or list of files that I
> want to change from being conflicts to being resolved programatically
> in Python using bzrlib, what is the correct way to do this?
>
> I know there is a resolve method in Bazaar's conflicts.py, but I'm
> wondering what's the proper way to access this.
>
> I'm guessing this is not the way...
>
>          from bzrlib.conflicts import resolve
>          resolve(self.wt,fileList,ignore_misses=True)

That looks like the correct way to me.  (It might be better to move
that function to being a tree method.)

-- 
Martin



More information about the bazaar mailing list