Kiln » largefiles » largefiles-mercurial-truncated changes working towards inclusion in Mercurial
Clone URL:  

Added Mercurial version comments.

Changeset 15327dad38db

Parent dfbe61aa11b3

by David Golub

Changes to one file · Browse files at 15327dad38db Showing diff from parent dfbe61aa11b3 Diff from another changeset...

Change 1 of 2 Show Entire File kbfiles/​bfutil.py Stacked
 
153
154
155
 
156
157
 
158
159
160
 
273
274
275
 
276
277
 
278
279
280
 
153
154
155
156
157
158
159
160
161
162
 
275
276
277
278
279
280
281
282
283
284
@@ -153,8 +153,10 @@
  '''   admin = repo.join(long_name)   try: + # Mercurial >= 1.9   opener = scmutil.opener(admin)   except ImportError: + # Mercurial <= 1.8   opener = util.opener(admin)   if hasattr(repo.dirstate, '_validate'):   bfdirstate = dirstate.dirstate(opener, ui, repo.root, repo.dirstate._validate) @@ -273,8 +275,10 @@
  the match object\'s bad() method so it does not print any warnings   about missing files or directories.'''   try: + # Mercurial >= 1.9   match = scmutil.match(repo[None], pats, opts)   except ImportError: + # Mercurial <= 1.8   match = cmdutil.match(repo, pats, opts)     if not showbad: