Kiln » Unity3D Unity 3D's proposed fixes and extensions to Kiln BFiles
Clone URL:  

Fix problem where current working directory can be nonsense if function called outside repo dir. This is necessary for the MonoDevelop plugin for mercurial/kbfiles.

Changeset d0975634cee1

Parent d93f0b0c60ce

by Profile picture of User 496Na'Tosha Bard <natosha@unity3d.com>

Changes to one file · Browse files at d0975634cee1 Showing diff from parent d93f0b0c60ce Diff from another changeset...

Change 1 of 1 Show Entire File kbfiles/​bfutil.py Stacked
 
225
226
227
 
 
 
 
228
229
230
 
225
226
227
228
229
230
231
232
233
234
@@ -225,6 +225,10 @@
  if pats:   # patterns supplied: search .hgbfiles relative to current dir   cwd = repo.getcwd() + if (os.path.isabs(cwd)): + # This means that the cwd is outside the repo. + # Pass repo-relative path instead. + cwd = ''   pats = [os.path.join(standin_dir, cwd, pat) for pat in pats]   elif os.path.isdir(standin_dir):   # no patterns: relative to repo root