comparison hgext/mq.py @ 1839:876e4e6ad82b

Create local ui object per repository, so .hg/hgrc don't get mixed. This is needed for hooks, but may be important for other settings, too. Fixes issue113, also integrated push-hook-lock.sh as a test case for this.
author Thomas Arendsen Hein <thomas@intevation.de>
date Mon, 06 Mar 2006 17:47:41 +0100
parents 7596611ab3d5
children fdf9cbf56ec7
comparison
equal deleted inserted replaced
1838:429bf036f2cb 1839:876e4e6ad82b
850 if name == '.hg.patches.save.line': 850 if name == '.hg.patches.save.line':
851 return True 851 return True
852 852
853 def qrepo(self, create=False): 853 def qrepo(self, create=False):
854 if create or os.path.isdir(os.path.join(self.path, ".hg")): 854 if create or os.path.isdir(os.path.join(self.path, ".hg")):
855 return hg.repository(ui=self.ui, path=self.path, create=create) 855 return hg.repository(self.ui, path=self.path, create=create)
856 856
857 def restore(self, repo, rev, delete=None, qupdate=None): 857 def restore(self, repo, rev, delete=None, qupdate=None):
858 c = repo.changelog.read(rev) 858 c = repo.changelog.read(rev)
859 desc = c[4].strip() 859 desc = c[4].strip()
860 lines = desc.splitlines() 860 lines = desc.splitlines()