changeset 638:f828d82c35dc

hg2git: call status on newctx, not newctx.rev() There's no benefit to calling rev().
author Siddharth Agarwal <sid0@fb.com>
date Wed, 12 Feb 2014 18:05:12 -0800
parents 23d7caeed05a
children 42ca3ace9a0f
files hggit/hg2git.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hggit/hg2git.py	Wed Feb 12 17:49:14 2014 -0800
+++ b/hggit/hg2git.py	Wed Feb 12 18:05:12 2014 -0800
@@ -105,7 +105,7 @@
         # The only reliable way to get the full set of changes is by looking at
         # the full manifest. And, the easy way to compare two manifests is
         # localrepo.status().
-        modified, added, removed = self._hg.status(self._ctx, newctx.rev())[0:3]
+        modified, added, removed = self._hg.status(self._ctx, newctx)[0:3]
 
         # We track which directories/trees have modified in this update and we
         # only export those.