hgext/inhibit.py
changeset 1533 74cf5a69f201
parent 1491 8f469f81129c
child 1534 9a78ed4b9765
equal deleted inserted replaced
1532:48547b4c77de 1533:74cf5a69f201
   127     obsolete revision only are created.
   127     obsolete revision only are created.
   128     """
   128     """
   129     if not _inhibitenabled(repo):
   129     if not _inhibitenabled(repo):
   130         return
   130         return
   131 
   131 
   132     newinhibit = repo.set('::%ln and obsolete()', nodes)
   132     newinhibit = list(repo.set('::%ln and obsolete()', nodes))
   133     if newinhibit:
   133     if newinhibit:
   134         lock = tr = None
   134         lock = tr = None
   135         try:
   135         try:
   136             lock = repo.lock()
   136             lock = repo.lock()
   137             tr = repo.transaction('obsinhibit')
   137             tr = repo.transaction('obsinhibit')