Mercurial > public > mercurial-scm > hg-stable
diff mercurial/util.py @ 6877:1d38f3605b20
util: set_flags shouldn't know about repo flag formats
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 10 Aug 2008 21:55:06 -0500 |
parents | 08d9e0f974d9 |
children | 202d178ec706 |
line wrap: on
line diff
--- a/mercurial/util.py Sun Aug 10 18:01:03 2008 -0500 +++ b/mercurial/util.py Sun Aug 10 21:55:06 2008 -0500 @@ -996,7 +996,7 @@ '''return False if pid dead, True if running or not known''' return True - def set_flags(f, flags): + def set_flags(f, l, x): pass def set_binary(fd): @@ -1143,10 +1143,8 @@ """check whether a file is executable""" return (os.lstat(f).st_mode & 0100 != 0) - def set_flags(f, flags): + def set_flags(f, l, x): s = os.lstat(f).st_mode - x = "x" in flags - l = "l" in flags if l: if not stat.S_ISLNK(s): # switch file to link