mercurial/commands.py
changeset 25658 e93036747902
parent 25652 2882d6886919
child 25660 328739ea70c3
--- a/mercurial/commands.py	Tue Jun 23 14:28:15 2015 -0700
+++ b/mercurial/commands.py	Tue Jun 23 22:30:33 2015 -0700
@@ -3001,10 +3001,10 @@
         else:
             timestr = time.strftime("%Y-%m-%d %H:%M:%S ",
                                     time.localtime(ent[3]))
-        if ent[1] & 020000:
+        if ent[1] & 0o20000:
             mode = 'lnk'
         else:
-            mode = '%3o' % (ent[1] & 0777 & ~util.umask)
+            mode = '%3o' % (ent[1] & 0o777 & ~util.umask)
         ui.write("%c %s %10d %s%s\n" % (ent[0], mode, ent[2], timestr, file_))
     for f in repo.dirstate.copies():
         ui.write(_("copy: %s -> %s\n") % (repo.dirstate.copied(f), f))