hgext/convert/subversion.py
changeset 5274 694eb9ccb54d
parent 5246 585471802a01
child 5287 c6f932d3e0f6
equal deleted inserted replaced
5273:4287590a63af 5274:694eb9ccb54d
   312         """Avoid certain revision numbers.
   312         """Avoid certain revision numbers.
   313         It is not uncommon for two nearby revisions to cancel each other
   313         It is not uncommon for two nearby revisions to cancel each other
   314         out, e.g. 'I copied trunk into a subdirectory of itself instead
   314         out, e.g. 'I copied trunk into a subdirectory of itself instead
   315         of making a branch'. The converted repository is significantly
   315         of making a branch'. The converted repository is significantly
   316         smaller if we ignore such revisions."""
   316         smaller if we ignore such revisions."""
   317         self.blacklist = set()
   317         self.blacklist = util.set()
   318         blacklist = self.blacklist
   318         blacklist = self.blacklist
   319         for line in file("blacklist.txt", "r"):
   319         for line in file("blacklist.txt", "r"):
   320             if not line.startswith("#"):
   320             if not line.startswith("#"):
   321                 try:
   321                 try:
   322                     svn_rev = int(line.strip())
   322                     svn_rev = int(line.strip())