equal
deleted
inserted
replaced
41 obsinhibit.add(raw[i:i+20]) |
41 obsinhibit.add(raw[i:i+20]) |
42 return obsinhibit |
42 return obsinhibit |
43 |
43 |
44 def commit(self, *args, **kwargs): |
44 def commit(self, *args, **kwargs): |
45 newnode = super(obsinhibitedrepo, self).commit(*args, **kwargs) |
45 newnode = super(obsinhibitedrepo, self).commit(*args, **kwargs) |
46 _inhibitmarkers(repo, [newnode]) |
46 if newnode is not None: |
|
47 _inhibitmarkers(repo, [newnode]) |
47 return newnode |
48 return newnode |
48 |
49 |
49 repo.__class__ = obsinhibitedrepo |
50 repo.__class__ = obsinhibitedrepo |
50 # Wrapping this to inhibit obsolete revs resulting from a transaction |
51 # Wrapping this to inhibit obsolete revs resulting from a transaction |
51 extensions.wrapfunction(localrepo.localrepository, |
52 extensions.wrapfunction(localrepo.localrepository, |